<?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: [Closed] : How to create user in HDFS in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Closed-How-to-create-user-in-HDFS/m-p/203449#M78682</link>
    <description>&lt;P&gt;&lt;A href="@JAy PaTel"&gt; @JAy PaTel&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The above code snippet is for creating a user's home directory in HDFS.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;You will need to create the local Linux user, to do so a root or if you have &lt;B&gt;sudo&lt;/B&gt; privileges do the following&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;# useradd  tempuser&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;To set the password, you will be prompted twice &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;# passwd tempuser &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Using sudo privileges&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;$ sudo useradd tempuser&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;See aabove &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;$ sudo  passwd tempuser&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt; This will also create a user home on the local Linux box  in&lt;STRONG&gt; /home/tempuser&lt;/STRONG&gt;  this is different from the hdfs user home &lt;STRONG&gt;/user/tempuser  &lt;/STRONG&gt;with MUST exst if  the tempuser is to run and hive queries etc&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hope that helps&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 24 May 2018 19:18:55 GMT</pubDate>
    <dc:creator>Shelton</dc:creator>
    <dc:date>2018-05-24T19:18:55Z</dc:date>
    <item>
      <title>[Closed] : How to create user in HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Closed-How-to-create-user-in-HDFS/m-p/203448#M78681</link>
      <description>&lt;P&gt;I have read many documents and implements many solutions. I have made directory as `&amp;lt;user_name&amp;gt;` by following commands and gave ownership and permission to the folder as &lt;STRONG&gt;HDFS&lt;/STRONG&gt; user.&lt;/P&gt;&lt;PRE&gt;[root@sandbox ~]# su hdfs
[hdfs@sandbox root]$ hdfs dfs -mkdir /user/tempuser
[hdfs@sandbox root]$ hdfs dfs -chown tempuser:hdfs /user/tempuser
[hdfs@sandbox root]$ hdfs dfs -chmod 700 /user/tempuser
[hdfs@sandbox root]$ su tempuser
su: user tempuser does not exist
[hdfs@sandbox root]$&lt;/PRE&gt;&lt;P&gt;But is throwing error as &lt;STRONG&gt;user &amp;lt;username&amp;gt; does not exist. &lt;/STRONG&gt;&lt;BR /&gt;Please help me to resolve it.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jay.&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 18:40:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Closed-How-to-create-user-in-HDFS/m-p/203448#M78681</guid>
      <dc:creator>pateljay</dc:creator>
      <dc:date>2018-05-24T18:40:39Z</dc:date>
    </item>
    <item>
      <title>Re: [Closed] : How to create user in HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Closed-How-to-create-user-in-HDFS/m-p/203449#M78682</link>
      <description>&lt;P&gt;&lt;A href="@JAy PaTel"&gt; @JAy PaTel&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The above code snippet is for creating a user's home directory in HDFS.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;You will need to create the local Linux user, to do so a root or if you have &lt;B&gt;sudo&lt;/B&gt; privileges do the following&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;# useradd  tempuser&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;To set the password, you will be prompted twice &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;# passwd tempuser &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Using sudo privileges&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;$ sudo useradd tempuser&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;See aabove &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;$ sudo  passwd tempuser&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt; This will also create a user home on the local Linux box  in&lt;STRONG&gt; /home/tempuser&lt;/STRONG&gt;  this is different from the hdfs user home &lt;STRONG&gt;/user/tempuser  &lt;/STRONG&gt;with MUST exst if  the tempuser is to run and hive queries etc&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hope that helps&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 19:18:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Closed-How-to-create-user-in-HDFS/m-p/203449#M78682</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-05-24T19:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: [Closed] : How to create user in HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Closed-How-to-create-user-in-HDFS/m-p/203450#M78683</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1271/sheltong.html" nodeid="1271"&gt;@Geoffrey Shelton Okot&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Is it for CentOS? Because I am using Hortonworks Sandbox on Oracle Virtual Machine.&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 19:53:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Closed-How-to-create-user-in-HDFS/m-p/203450#M78683</guid>
      <dc:creator>pateljay</dc:creator>
      <dc:date>2018-05-24T19:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: [Closed] : How to create user in HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Closed-How-to-create-user-in-HDFS/m-p/203451#M78684</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;A href="https://community.hortonworks.com/questions/192878/@JAy%20PaTel"&gt;@JAy PaTel&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Yes that okay the same commands will work &lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 20:30:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Closed-How-to-create-user-in-HDFS/m-p/203451#M78684</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-05-24T20:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: [Closed] : How to create user in HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Closed-How-to-create-user-in-HDFS/m-p/203452#M78685</link>
      <description>&lt;P&gt;I'm just curious.  Why do hive jobs need the home directory to run the job?&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 20:39:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Closed-How-to-create-user-in-HDFS/m-p/203452#M78685</guid>
      <dc:creator>mokkan</dc:creator>
      <dc:date>2018-05-24T20:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: [Closed] : How to create user in HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Closed-How-to-create-user-in-HDFS/m-p/203453#M78686</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;A href="@Mokkan Mok"&gt;@Mokkan Mok&lt;/A&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hive jobs need a temporary working directory where hiveJars used during the execution are temporarily stored. See example&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;$ hdfs dfs -ls /user/hive
Found 3 items
drwx------   - hive hdfs          0 2018-04-25 20:00 /user/hive/.Trash
drwxr-xr-x   - hive hdfs          0 2018-04-13 23:04 /user/hive/.hiveJars
-rw-r--r--   3 hive hdfs        642 2018-05-24 08:43 /user/hive/derby.log
$ hdfs dfs -ls /user/hive/.hiveJars
Found 1 items
-rw-r--r--   3 hive hdfs   22006904 2018-04-13 23:04 /user/hive/.hiveJars/hive-exec-1.2.1000.2.6.2.0-205-79292bba9a3e076ad6d7a33c604b892fa0d45f6f60ae07a507e5e659a297f665.jar&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Hope that helps explain &lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 20:54:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Closed-How-to-create-user-in-HDFS/m-p/203453#M78686</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-05-24T20:54:49Z</dc:date>
    </item>
    <item>
      <title>Re: [Closed] : How to create user in HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Closed-How-to-create-user-in-HDFS/m-p/203454#M78687</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;A href="https://community.hortonworks.com/questions/192878/@JAy%20PaTel"&gt;@JAy PaTel&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;If you found this answer addressed your question, please take a moment to log 
in and click the "accept" link on the answer.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 May 2018 20:55:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Closed-How-to-create-user-in-HDFS/m-p/203454#M78687</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-05-24T20:55:54Z</dc:date>
    </item>
    <item>
      <title>Re: [Closed] : How to create user in HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Closed-How-to-create-user-in-HDFS/m-p/203455#M78688</link>
      <description>&lt;P&gt;Thank you &lt;A rel="user" href="https://community.cloudera.com/users/1271/sheltong.html" nodeid="1271"&gt;@Geoffrey Shelton Okot&lt;/A&gt; It helps.&lt;/P&gt;&lt;P&gt;Actually, I was thinking it will create a user in &lt;STRONG&gt;CentOS &lt;/STRONG&gt;only. But It has created a user in &lt;STRONG&gt;HDFS &lt;/STRONG&gt;as well.&lt;/P&gt;</description>
      <pubDate>Fri, 25 May 2018 15:17:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Closed-How-to-create-user-in-HDFS/m-p/203455#M78688</guid>
      <dc:creator>pateljay</dc:creator>
      <dc:date>2018-05-25T15:17:52Z</dc:date>
    </item>
  </channel>
</rss>

