<?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: Managing Passwords In Sqoop in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Managing-Passwords-In-Sqoop/m-p/110526#M21875</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2820/shishirsaxena3.html" nodeid="2820"&gt;@Shishir Saxena&lt;/A&gt;: Thanks for reply. &lt;/P&gt;&lt;P&gt;Actually when I tried above location then it failed like below as expected. &lt;/P&gt;&lt;P&gt;root@m1 ~]# hadoop fs -ls  jceks://hdfs/user/&lt;/P&gt;&lt;P&gt;ls: No FileSystem for scheme: jceks&lt;/P&gt;&lt;P&gt;But when I did ls to my user inside hdfs then it listed out that file.&lt;/P&gt;&lt;P&gt;[root@m1 ~]# hadoop fs -ls /user/root/&lt;/P&gt;&lt;P&gt;Found 6 items&lt;/P&gt;&lt;P&gt;drwxr-xr-x   - root hdfs          0 2016-01-25 23:30 /user/root/.hiveJars&lt;/P&gt;&lt;P&gt;drwx------   - root hdfs          0 2016-02-29 04:31 /user/root/.staging&lt;/P&gt;&lt;P&gt;drwxr-xr-x   - root hdfs          0 2016-02-24 18:16 /user/root/OozieTest&lt;/P&gt;&lt;P&gt;-rwxr-xr-x   3 root hdfs       1484 2016-02-03 21:19 /user/root/Output.json&lt;/P&gt;&lt;P&gt;-rwx------   3 root hdfs        504 2016-03-02 04:14 /user/root/mysql.password.jceks&lt;/P&gt;&lt;P&gt;[root@m1 ~]# hadoop fs -cat /user/root/mysql.password.jceks&lt;/P&gt;&lt;P&gt;encodedParamst[B[encryptedContentq~Lsun.paramsAlgtLjava/lang/String;LsealAlgq~xpur[B??T?xp0xrjavax.crypto.SealedObject&amp;gt;6=?÷Tp[&lt;/P&gt;&lt;P&gt;_ܬ??uq~?"?5?????-?y?L;XF6??zQ&lt;/P&gt;&lt;P&gt;                            !z???????"???&amp;gt;I?cU?ɾ!&lt;/P&gt;&lt;P&gt;So It gave my question's answer. Thanks once again. &lt;/P&gt;</description>
    <pubDate>Sat, 05 Mar 2016 03:10:09 GMT</pubDate>
    <dc:creator>SK1</dc:creator>
    <dc:date>2016-03-05T03:10:09Z</dc:date>
    <item>
      <title>Managing Passwords In Sqoop</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Managing-Passwords-In-Sqoop/m-p/110524#M21873</link>
      <description>&lt;P&gt;long time waited thing is done and I am very happy to see that we have a got a way to secure and encrypt password in sqoop. &lt;/P&gt;&lt;P&gt;"As of Sqoop 1.4.5, Sqoop supports the use of JAVA Key Store to store passwords, so that you do not need to store passwords in clear text in a file."&lt;/P&gt;&lt;P&gt;root@m1 ~]# hadoop credential create mydb.password.alias -provider jceks://hdfs/user/root/mysql.password.jceks&lt;/P&gt;&lt;P&gt;Enter password: &lt;/P&gt;&lt;P&gt;Enter password again: &lt;/P&gt;&lt;P&gt;mydb.password.alias has been successfully created.&lt;/P&gt;&lt;P&gt;org.apache.hadoop.security.alias.JavaKeyStoreProvider has been updated.&lt;/P&gt;&lt;P&gt;But I have few questions.&lt;/P&gt;&lt;P&gt;1. Where is mydb.password.alias file saved in local machine or hdfs?&lt;/P&gt;&lt;P&gt;2. When we schedule sqoop jobs in oozie or falcon or cron then do we need to create key for that user's home dir whoever is running jobs. &lt;/P&gt;&lt;P&gt;3. Can we see content of mydb.password.alias file ?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:07:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Managing-Passwords-In-Sqoop/m-p/110524#M21873</guid>
      <dc:creator>SK1</dc:creator>
      <dc:date>2022-09-16T10:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Passwords In Sqoop</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Managing-Passwords-In-Sqoop/m-p/110525#M21874</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2273/saurabhmcakiet.html" nodeid="2273"&gt;@Saurabh Kumar&lt;/A&gt; Password is stored in HDFS at location jceks://hdfs/user/&amp;lt;user&amp;gt;/mydb.password.jceks&lt;/P&gt;&lt;P&gt;See &lt;A href="http://www.ericlin.me/securely-managing-passwords-in-sqoop" target="_blank"&gt;http://www.ericlin.me/securely-managing-passwords-in-sqoop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have not tried 2, but you should grant read access to this file for other user. &lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2016 02:21:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Managing-Passwords-In-Sqoop/m-p/110525#M21874</guid>
      <dc:creator>shishir_saxena4</dc:creator>
      <dc:date>2016-03-05T02:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Passwords In Sqoop</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Managing-Passwords-In-Sqoop/m-p/110526#M21875</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2820/shishirsaxena3.html" nodeid="2820"&gt;@Shishir Saxena&lt;/A&gt;: Thanks for reply. &lt;/P&gt;&lt;P&gt;Actually when I tried above location then it failed like below as expected. &lt;/P&gt;&lt;P&gt;root@m1 ~]# hadoop fs -ls  jceks://hdfs/user/&lt;/P&gt;&lt;P&gt;ls: No FileSystem for scheme: jceks&lt;/P&gt;&lt;P&gt;But when I did ls to my user inside hdfs then it listed out that file.&lt;/P&gt;&lt;P&gt;[root@m1 ~]# hadoop fs -ls /user/root/&lt;/P&gt;&lt;P&gt;Found 6 items&lt;/P&gt;&lt;P&gt;drwxr-xr-x   - root hdfs          0 2016-01-25 23:30 /user/root/.hiveJars&lt;/P&gt;&lt;P&gt;drwx------   - root hdfs          0 2016-02-29 04:31 /user/root/.staging&lt;/P&gt;&lt;P&gt;drwxr-xr-x   - root hdfs          0 2016-02-24 18:16 /user/root/OozieTest&lt;/P&gt;&lt;P&gt;-rwxr-xr-x   3 root hdfs       1484 2016-02-03 21:19 /user/root/Output.json&lt;/P&gt;&lt;P&gt;-rwx------   3 root hdfs        504 2016-03-02 04:14 /user/root/mysql.password.jceks&lt;/P&gt;&lt;P&gt;[root@m1 ~]# hadoop fs -cat /user/root/mysql.password.jceks&lt;/P&gt;&lt;P&gt;encodedParamst[B[encryptedContentq~Lsun.paramsAlgtLjava/lang/String;LsealAlgq~xpur[B??T?xp0xrjavax.crypto.SealedObject&amp;gt;6=?÷Tp[&lt;/P&gt;&lt;P&gt;_ܬ??uq~?"?5?????-?y?L;XF6??zQ&lt;/P&gt;&lt;P&gt;                            !z???????"???&amp;gt;I?cU?ɾ!&lt;/P&gt;&lt;P&gt;So It gave my question's answer. Thanks once again. &lt;/P&gt;</description>
      <pubDate>Sat, 05 Mar 2016 03:10:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Managing-Passwords-In-Sqoop/m-p/110526#M21875</guid>
      <dc:creator>SK1</dc:creator>
      <dc:date>2016-03-05T03:10:09Z</dc:date>
    </item>
  </channel>
</rss>

