每次执行sqoop job时,会提示输入密码,如何避免呢,有两种方法:
1、在sqoop-site.xml 文件中设置:sqoop.metastore.client.record.password=true
sqoop-site.xml的位置:${SQOOP_HOME}/conf下面,例如:/opt/cloudera/parcels/CDH-5.13.0-1.cdh5.13.0.p0.29/lib/sqoop/conf目录下
增加如下内容:
<property><name>sqoop.metastore.client.record.password</name>
<value>true</value>
<description>If true, allow saved passwords in the metastore.
</description>
</property>
2、You can save your password in a file and specify the path to this file with the parameter --password-file.