#cd /letv/release/log_aggregation/sdk_data_sum/create_table
#sh create_sum_sdk_phone_beat_day.sh
#hive -e " use data_sum;
#alter table sum_sdk_phone_env_day add columns(server_time string);
#alter table sum_sdk_phone_env_day add columns(first_active_date string);
#"
#hive -e " use data_sum;
#alter table sum_sdk_phone_beat_day add columns(start_time string);
#alter table sum_sdk_phone_beat_day add columns(cp_version string);
#alter table sum_sdk_phone_beat_day add columns(build_version string);
#alter table sum_sdk_phone_beat_day add columns(product_vendor string);
#alter table sum_sdk_phone_beat_day add columns(product_model string);
#alter table sum_sdk_phone_beat_day add columns(is_root string);
#alter table sum_sdk_phone_beat_day add columns(first_active_date string);
#"
#hive -e"
#use data_sum;
#ALTER TABLE sum_sdk_phone_imei_his_day RENAME TO sum_sdk_phone_imei_his_day_old;
#"
#hive -e"
#use data_sum;
#ALTER TABLE sum_sdk_phone_imei_his_day_v2 RENAME TO sum_sdk_phone_imei_his_day;
#"
#hadoop fs -mkdir /user/jenkins/dim_code_rate_cdn/
#hive -e " use data_sum;
#alter table sum_user_uuid_play_day add columns(flow bigint);
#alter table sum_user_uuid_play_day add columns(app_version string);
#"
#hive -e"
#use data_sum;
#ALTER TABLE sum_sdk_phone_source_day RENAME TO sum_phone_source_day;
#"
#hive -e"
#select dt,count(1) from data_agnes.agnes_simcard_hour where dt >= '20150608' and dt<='20150611' and source = 'env' group by dt ;
#"
#hive -e"
#select vid,cnt from(
#select vid,count(1) cnt from data_raw.tbl_play_hour
#where dt='20150613' and product='1'
#group by vid) t order by cnt desc limit 100;
#"
echo "remote triger ................ $datetime"