|
@@ -45,21 +45,22 @@ object TestCompanyDynamic {
|
|
|
, Args(tableName = "company_annual_report_out_guarantee", bName = 1)
|
|
|
, Args(tableName = "company_zxr_restrict", bName = 1)
|
|
|
|
|
|
+ , Args(tableName = "company_own_tax", bName = 1) //终本案件
|
|
|
, Args(tableName = "company_zxr_final_case", bName = 1) //终本案件
|
|
|
, Args(tableName = "company_license_creditchina", bName = 1) //行政许可-信用中国
|
|
|
, Args(tableName = "company_license_entpub", bName = 1) //行政许可-企业公示
|
|
|
, Args(tableName = "company_license", bName = 1) //行政许可
|
|
|
, Args(tableName = "company_check_info", bName = 1) //抽查检查
|
|
|
- , Args(tableName = "company_court_announcement_list", bName = 1) //法院公告
|
|
|
- , Args(tableName = "company_court_open_announcement_list", bName = 1) //开庭公告
|
|
|
- , Args(tableName = "company_court_register_list", bName = 1) //立案信息
|
|
|
+ , Args(tableName = "company_court_announcement_list", bName = 2) //法院公告
|
|
|
+ , Args(tableName = "company_court_open_announcement_list", bName = 2) //开庭公告
|
|
|
+ , Args(tableName = "company_court_register_list", bName = 2) //立案信息
|
|
|
, Args(tableName = "company_double_random_check_info", bName = 1) //双随机抽查
|
|
|
, Args(tableName = "company_judicial_sale_combine_list", bName = 1) //司法拍卖
|
|
|
, Args(tableName = "company_tax_contravention", bName = 1) //税收违法
|
|
|
, Args(tableName = "wenshu_detail_combine", bName = 1) //裁判文书
|
|
|
)
|
|
|
val seq = List(
|
|
|
- "company_mortgage_info"
|
|
|
+ "company_own_tax"
|
|
|
, "company_check_info"
|
|
|
, "company_court_announcement_list"
|
|
|
, "company_court_open_announcement_list"
|
|
@@ -76,6 +77,8 @@ object TestCompanyDynamic {
|
|
|
|
|
|
def main(args: Array[String]): Unit = {
|
|
|
|
|
|
+ val ds = args(0)
|
|
|
+ println(s"$ds")
|
|
|
val project = "winhc_eci_dev"
|
|
|
|
|
|
val config = EsConfig.getEsConfigMap ++ mutable.Map(
|
|
@@ -83,7 +86,11 @@ object TestCompanyDynamic {
|
|
|
"spark.hadoop.odps.spark.local.partition.amt" -> "1000"
|
|
|
)
|
|
|
val spark = SparkUtils.InitEnv("CompanyDynamic", config)
|
|
|
- TestCompanyDynamic(spark, project, "20200817").calc()
|
|
|
+ val s = spark.sparkContext.statusTracker
|
|
|
+ s.getExecutorInfos.map(x=>{
|
|
|
+ x.numRunningTasks()
|
|
|
+ })
|
|
|
+ TestCompanyDynamic(spark, project, ds).calc()
|
|
|
spark.stop()
|
|
|
}
|
|
|
|