Commit 58b1f066 58b1f066b2fcc10b451bff830794889113d9bbc5 by zhanghao

commit

1 parent c6be12b6
......@@ -8,7 +8,7 @@ hive -f ./shell_debug/load_data.hql
hive -f ./shell_debug/method_count.hql
hive -f ./shell_debug/biz_data_count.hql
hive -f ./shell_debug/biz_data_response.hql
hive -f ./shell_debug/huo_dong_ru_kou.hql
hive -f ./shell_debug/tc_response_debug.hql
hadoop fs -rm /input/debug/data/app.out
......@@ -24,6 +24,6 @@ mysql -uroot -pzidonghua -e "truncate bigdata.biz_data_response_debug;"
sleep 3
sqoop export --connect "jdbc:mysql://127.0.0.1:3306/bigdata" --username root --password zidonghua --table biz_data_response_debug --export-dir /user/hive/warehouse/testdb.db/biz_data_response_debug --input-fields-terminated-by '\t'
sleep 3
mysql -uroot -pzidonghua -e "truncate bigdata.huo_dong_ru_kou_debug;"
mysql -uroot -pzidonghua -e "truncate bigdata.tc_response_debug;"
sleep 3
sqoop export --connect "jdbc:mysql://127.0.0.1:3306/bigdata" --username root --password zidonghua --table huo_dong_ru_kou_debug --export-dir /user/hive/warehouse/testdb.db/huo_dong_ru_kou_debug --input-fields-terminated-by '\t'
sqoop export --connect "jdbc:mysql://127.0.0.1:3306/bigdata" --username root --password zidonghua --table tc_response_debug --export-dir /user/hive/warehouse/testdb.db/tc_response_debug --input-fields-terminated-by '\t'
......
......@@ -41,7 +41,7 @@ CREATE TABLE project_config_debug(
timestamp string
) ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t';
CREATE TABLE huo_dong_ru_kou_debug(
CREATE TABLE tc_response_debug(
method string,
biz_data string,
uid string,
......
use testdb;
INSERT OVERWRITE TABLE huo_dong_ru_kou_debug
INSERT OVERWRITE TABLE tc_response_debug
select method,biz_data,uid,timestamp,response
from qa_log_debug
where method is not null and method!='N/A'
and (method='com.lejane.handler.common.sidebar.operate.query.new.v3' or method='com.lejane.handler.common.sidebar.operate.query.list');
\ No newline at end of file
and (method='com.lejane.handler.common.sidebar.operate.query.new.v3'
or method='com.lejane.handler.common.sidebar.operate.query.list');
\ No newline at end of file
......