wudianlong 3 년 전
부모
커밋
0e6a9d122c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      energy/dayTask/mysql_to_hdfs.sh

+ 1 - 1
energy/dayTask/mysql_to_hdfs.sh

@@ -23,7 +23,7 @@ mysql_to_hdfs_lzo() {
 	--target-dir /warehouse/saga_dw/ods/tmp/$7/$do_date \
 	--delete-target-dir \
 	--columns $5 \
-	--query "select building, func_id, meter, data_time, data_value from energy_15_min where dt = '$do_date' and \$CONDITIONS" \
+	--query "$6 and \$CONDITIONS" \
 	--num-mappers 1 \
 	--hive-drop-import-delims \
 	--fields-terminated-by '\001' \