<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: How to use sqoop password-alias  together with sqoop option file ? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-sqoop-password-alias-together-with-sqoop-option/m-p/222100#M66844</link>
    <description>&lt;P&gt;Thank you &lt;A rel="user" href="https://community.cloudera.com/users/12636/ssahi.html" nodeid="12636"&gt;@Sonu Sahi&lt;/A&gt; for the response. I checked your colleague's blog.  He is using password file but not the password alias (credential provider) which is saving password in keystore instead of file. &lt;/P&gt;&lt;P&gt; Any way I finally figure out how to make it work.  In case some one else need this in the future, I paste my solution here:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;The option file: &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;import &lt;/P&gt;&lt;P&gt;-connect&lt;/P&gt;&lt;P&gt;
"jdbc:sqlserver://host:1433;database=DB1"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Script for Sqoop job defination: &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;sqoop  job -Dhadoop.security.credential.provider.path=jceks://hdfs/user/root/mysql.password.jceks  --create sqoop_test -- options-file db.props  --username sqoop_ro   --password-alias sqoop_ro.passwd  --target-dir /XXX   --query 'select  ....' &lt;/P&gt;&lt;P&gt;This works for me.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Fri, 18 Aug 2017 12:43:18 GMT</pubDate>
    <dc:creator>lucy_zhang_us</dc:creator>
    <dc:date>2017-08-18T12:43:18Z</dc:date>
    <item>
      <title>How to use sqoop password-alias  together with sqoop option file ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-sqoop-password-alias-together-with-sqoop-option/m-p/222098#M66842</link>
      <description>&lt;P&gt;I'm able to use credential provider to encrypt password. Also be able to use it with sqoop command.  But I can't work it out if I want to put connection string in option files.  Anybody can give me some clue ? &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 02:10:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-sqoop-password-alias-together-with-sqoop-option/m-p/222098#M66842</guid>
      <dc:creator>lucy_zhang_us</dc:creator>
      <dc:date>2017-08-18T02:10:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to use sqoop password-alias  together with sqoop option file ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-sqoop-password-alias-together-with-sqoop-option/m-p/222099#M66843</link>
      <description>&lt;P&gt;Hu &lt;A rel="user" href="https://community.cloudera.com/users/17040/lucyzhangus.html" nodeid="17040"&gt;@Lucy zhang&lt;/A&gt;&lt;/P&gt;&lt;P&gt;My colleague has a nice blog post showing to do this in sqoop here: &lt;A href="http://blog.ervits.com/2015/03/running-saved-sqoop-144-jobs-with.html" target="_blank"&gt;http://blog.ervits.com/2015/03/running-saved-sqoop-144-jobs-with.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 04:24:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-sqoop-password-alias-together-with-sqoop-option/m-p/222099#M66843</guid>
      <dc:creator>ssahi</dc:creator>
      <dc:date>2017-08-18T04:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to use sqoop password-alias  together with sqoop option file ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-sqoop-password-alias-together-with-sqoop-option/m-p/222100#M66844</link>
      <description>&lt;P&gt;Thank you &lt;A rel="user" href="https://community.cloudera.com/users/12636/ssahi.html" nodeid="12636"&gt;@Sonu Sahi&lt;/A&gt; for the response. I checked your colleague's blog.  He is using password file but not the password alias (credential provider) which is saving password in keystore instead of file. &lt;/P&gt;&lt;P&gt; Any way I finally figure out how to make it work.  In case some one else need this in the future, I paste my solution here:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;The option file: &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;import &lt;/P&gt;&lt;P&gt;-connect&lt;/P&gt;&lt;P&gt;
"jdbc:sqlserver://host:1433;database=DB1"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;Script for Sqoop job defination: &lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;sqoop  job -Dhadoop.security.credential.provider.path=jceks://hdfs/user/root/mysql.password.jceks  --create sqoop_test -- options-file db.props  --username sqoop_ro   --password-alias sqoop_ro.passwd  --target-dir /XXX   --query 'select  ....' &lt;/P&gt;&lt;P&gt;This works for me.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 12:43:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-use-sqoop-password-alias-together-with-sqoop-option/m-p/222100#M66844</guid>
      <dc:creator>lucy_zhang_us</dc:creator>
      <dc:date>2017-08-18T12:43:18Z</dc:date>
    </item>
  </channel>
</rss>

