#!/bin/bash #-------------------------------------------- #Date: 2022/05/6 #Author:LuGuangChen export LANG="en_US.UTF-8" source /etc/profile source ~/.bash_profile; source /home/bireport/TDH-Client/init.sh ################################################ shanglifeecif_sql=" BEGIN dbms_output.put_line(to_char(sysdate,'yyyy-MM-dd HH:mm:ss') || '跑批开始!'); -- ok -- shanglifeecif.customertotaltemp(); -- ok -- DELETE FROM shanglifeecif.individual; --初始化客户信息 -- shanglifeecif.init_all_individual(); --更新用户等级信息 ok -- shanglifeecif.up_t_customers_class_1(); --更新其它信息 -- shanglifeecif.up_other_customerinfo(); --更新被保人信息 -- shanglifeecif.update_insuredinfo(); shanglifeecif.same_customer(); shanglifeecif.data_cleaning(); shanglifeecif.init_insurancearrangement_main(); shanglifeecif.insuranceclaimthread_main(); shanglifeecif.init_indrelationship_main(); shanglifeecif.partytimeline_main(); shanglifeecif.age_sex_distribution(); shanglifeecif.customer_risk_temp(); shanglifeecif.riskcode_statistics(); shanglifeecif.bdnum_distribution(); shanglifeecif.surrender_protection_temp(); shanglifeecif.updateIndividualLable(); shanglifeecif.effective_customer(); -- 2022/05/20 start 陆光晨 分渠道展示 -- 初始化用户渠道关系表 -- shanglifeecif.init_customerno_salecom_relation(); --客户信息添加渠道 -- shanglifeecif.init_Individual_salecom(); -- 分渠道重新计算标签值,并更新到用户渠道关系表中 -- shanglifeecif.update_customerno_salecom_relation_labels(); -- 2022/05/20 end 陆光晨 分渠道展示 dbms_output.put_line(to_char(sysdate,'yyyy-MM-dd HH:mm:ss') || '跑批完成!'); END;" beeline -u "jdbc:hive2://10.50.254.45:10000" --hiveconf hive.metastore.client.socket.timeout=86400000 --hiveconf hive.server2.idle.session.timeout=43200000 --hiveconf hive.server2.session.check.interval=900000 --hiveconf hive.zookeeper.session.timeout=86400000 -e "${shanglifeecif_sql}"