sqoop从phoenix抽取数据到hdfssqoopimport\--driverorg.apache.phoenix.jdbc.PhoenixDriver\--connectjdbc:phoenix:192.168.111.45:2181\--query"selectcs_mine_code,cs_data_time,ss_station_code,ss_transducer_code,ss_transducer_state,ss_analog_valuefromAQSS_mWHEREsubstr(cs_data_time,0,10)='2020-07-24'and\$CONDITIONS"\--target-dir/origin_data/phoenix/dwd/aqss_m/2020-07-24/\--delete-target-dir\--num-mappers1\--direct\--fields-terminated-by','
2023/4/9 20:22:37
4KB
hive
1