sqoop job执行时避免输入密码

每次执行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目录下

增加如下内容:


    sqoop.metastore.client.record.password
    true
    If true, allow saved passwords in the metastore.
   


2、You can save your password in a file and specify the path to this file with the parameter --password-file.

你可能感兴趣的:(sqoop)