1、impala-shell导出数据
impala-shell -i ip:port -l -u username–ldap_password_cmd=‘echo -n password’ --auth_creds_ok_in_clear -f sql文件.sql --delimited --print_header --output_delimiter “,” -o 输出文件.csv
注意:执行过程有显示结果行数(参考值)
impala-shell -h
-i IMPALAD, --impalad=IMPALAD
<host:port> of impalad to connect to
[default: emr-header-2.cluster-111290:21000]
-l, --ldap Use LDAP to authenticate with Impala. Impala must be
configured to allow LDAP authentication.
-u USER, --user=USER User to authenticate with. [default: hadoop]
--ldap_password_cmd

6297

被折叠的 条评论
为什么被折叠?



