<?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: Create users in hadoop/HDP 2.5 in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Create-users-in-hadoop-HDP-2-5/m-p/178629#M140875</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 there any way to add user in all hosts ? Please let  me know&lt;/P&gt;</description>
    <pubDate>Fri, 08 Sep 2017 02:53:59 GMT</pubDate>
    <dc:creator>sunilreddykallu</dc:creator>
    <dc:date>2017-09-08T02:53:59Z</dc:date>
    <item>
      <title>Create users in hadoop/HDP 2.5</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Create-users-in-hadoop-HDP-2-5/m-p/178625#M140871</link>
      <description>&lt;P&gt;I just created users in /home in edge node for users to work on hadoop. But users not able to run hive/Yarn jobs. My cluster is already kerberized. Is there any way to assign users to submit their jobs in edge node. &lt;/P&gt;&lt;P&gt;Do we need to these users in hadoop/hdfs ? &lt;/P&gt;&lt;P&gt;If cluster has kerberos and ranger is there any different way to do it ? &lt;/P&gt;&lt;P&gt;Please suggest me.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2017 22:29:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Create-users-in-hadoop-HDP-2-5/m-p/178625#M140871</guid>
      <dc:creator>sunilreddykallu</dc:creator>
      <dc:date>2017-09-07T22:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create users in hadoop/HDP 2.5</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Create-users-in-hadoop-HDP-2-5/m-p/178626#M140872</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/28152/sunilreddykallur.html"&gt;Sam Red&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For a user to submit successfully or even connect to hive in a kerberized environment the user MUST first get a valid Kerberos ticket.&lt;/P&gt;&lt;P&gt;Can you users list the principals attached to their keytabs eg for user opera1&lt;/P&gt;&lt;PRE&gt;# su - opera1$ 
$ klist 
klist: No credentials cache found (filename: /tmp/krb5cc_1001)&lt;/PRE&gt;&lt;P&gt;Above output show no valid kerberos ticket ,then follow the below steps as user opera1 assuming your keytabs are in that directory and the REALM is DEV.COM&lt;/P&gt;&lt;PRE&gt;$ klist -kt /etc/security/keytabs/opera1.keytab
Keytab name: FILE:/etc/security/keytabs/opera1.keytab
KVNO              Timestamp                    Principal
---- ------------------- ------------------------------------------------------
 1              08/24/2017 18:28:26            opera1@DEV.COM
$ kinit -kt /etc/security/keytabs/opera1.keytab opera1@UGANDA.COM
$ hive&lt;/PRE&gt;&lt;P&gt;The user should be able now to run a job on the cluster !&lt;/P&gt;&lt;P&gt;Please let me know &lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 01:42:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Create-users-in-hadoop-HDP-2-5/m-p/178626#M140872</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2017-09-08T01:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Create users in hadoop/HDP 2.5</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Create-users-in-hadoop-HDP-2-5/m-p/178627#M140873</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;Thank you again. these is the issue i am getting from beeline.&lt;/P&gt;&lt;PRE&gt;beeline&amp;gt; !connect jdbc:hive2://hostname.host.com:2181,hostname.host.com:2181,hostname.host.com:2181/;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2 username password
Connected to: Apache Hive (version 1.2.1000.2.5.6.0-40)
Driver: Hive JDBC (version 1.2.1000.2.5.6.0-40)
Transaction isolation: TRANSACTION_REPEATABLE_READ
0: jdbc:hive2://host&amp;gt; select max(_TIMESTAMP(ts)) ;
INFO  : Tez session hasn't been created yet. Opening session
ERROR : Failed to execute tez graph.
org.apache.tez.dag.api.SessionNotRunning: TezSession has already shutdown. Application application_ failed 2 times due to AM Container for appattempt_ exited with  exitCode: -1000

Diagnostics: Application application_ID initialization failed (exitCode=255) with output: main : command provided 0
main : run as user is berlin
main : requested yarn user is berlin
User berlin not found


Failing this attempt. Failing the application.
        at org.apache.tez.client.TezClient.waitTillReady(TezClient.java:779)
        at org.apache.hadoop.hive.ql.exec.tez.TezSessionState.open(TezSessionState.java:217)
        at org.apache.hadoop.hive.ql.exec.tez.TezTask.updateSession(TezTask.java:287)
        at org.apache.hadoop.hive.ql.exec.tez.TezTask.execute(TezTask.java:166)
        at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:160)
        at org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:89)
        at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1745)
        at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1491)
        at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1289)
        at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1156)
        at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1151)
        at org.apache.hive.service.cli.operation.SQLOperation.runQuery(SQLOperation.java:197)
        at org.apache.hive.service.cli.operation.SQLOperation.access$300(SQLOperation.java:76)
        at org.apache.hive.service.cli.operation.SQLOperation$2$1.run(SQLOperation.java:253)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:422)
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1865)
        at org.apache.hive.service.cli.operation.SQLOperation$2.run(SQLOperation.java:264)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
Error: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.tez.TezTask (state=08S01,code=1)


&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 08 Sep 2017 01:52:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Create-users-in-hadoop-HDP-2-5/m-p/178627#M140873</guid>
      <dc:creator>sunilreddykallu</dc:creator>
      <dc:date>2017-09-08T01:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create users in hadoop/HDP 2.5</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Create-users-in-hadoop-HDP-2-5/m-p/178628#M140874</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/28152/sunilreddykallur.html"&gt;Sam Red&lt;/A&gt;&lt;/P&gt;&lt;P&gt;When your a cluster integrated with Kerberos security then authenticated user must exist in the every node where the task runs. So create the berlin user on all the hosts and add user berlin to the hadoop group that should resolve the problem.&lt;/P&gt;&lt;P&gt;Please revert&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 02:25:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Create-users-in-hadoop-HDP-2-5/m-p/178628#M140874</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2017-09-08T02:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Create users in hadoop/HDP 2.5</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Create-users-in-hadoop-HDP-2-5/m-p/178629#M140875</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 there any way to add user in all hosts ? Please let  me know&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 02:53:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Create-users-in-hadoop-HDP-2-5/m-p/178629#M140875</guid>
      <dc:creator>sunilreddykallu</dc:creator>
      <dc:date>2017-09-08T02:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Create users in hadoop/HDP 2.5</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Create-users-in-hadoop-HDP-2-5/m-p/178630#M140876</link>
      <description>&lt;P&gt;&lt;EM&gt;@&lt;A href="https://community.hortonworks.com/users/28152/sunilreddykallur.html"&gt;Sam Red&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Unfortunately, you will have to use the classic way &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; depending on your OS adapt appropriate commands as root, below example is on centos6&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;# useradd user15
# passwd user15&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;And repeat that on all the hosts in the cluster, from the Ambari server if you created a passwordless ssh then it's easier! &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;&lt;EM&gt;# ssh root@host5
[root@host5 ~]# useradd user15 
[root@host5 ~]# passwd user15&lt;/EM&gt;&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Tedious work ..... if you have a cluster with  100 nodes!&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 03:03:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Create-users-in-hadoop-HDP-2-5/m-p/178630#M140876</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2017-09-08T03:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Create users in hadoop/HDP 2.5</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Create-users-in-hadoop-HDP-2-5/m-p/178631#M140877</link>
      <description>&lt;P&gt;You need to create user directories on HDFS for each user.&lt;/P&gt;&lt;PRE&gt;$ su - hdfs&lt;/PRE&gt;&lt;P&gt;Because your cluster is kerberized you need to get a token for the hdfs user. Something like this&lt;/P&gt;&lt;PRE&gt;$ kinit -k -t /etc/security/keytabs/hdfs.service.keytab hdfs/node1.hadoop.com@HADOOP.COM&lt;/PRE&gt;&lt;P&gt;Now you can create an HDFS directory for your user.&lt;/P&gt;&lt;PRE&gt;$ hadoop fs -mkdir /user/berlin
$ hadoop fs -chown berlin /user/berlin
&lt;/PRE&gt;&lt;P&gt;If you're querying Hive, you could use a desktop tool like Aginity Workbench, which supports Kerberos connections.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 09:41:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Create-users-in-hadoop-HDP-2-5/m-p/178631#M140877</guid>
      <dc:creator>mmullins</dc:creator>
      <dc:date>2017-09-08T09:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Create users in hadoop/HDP 2.5</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Create-users-in-hadoop-HDP-2-5/m-p/178632#M140878</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Could you please execute your query with beeline --verbose=true.&lt;/P&gt;&lt;P&gt;What happens if the query is run from Hive Cli?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Sep 2017 13:54:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Create-users-in-hadoop-HDP-2-5/m-p/178632#M140878</guid>
      <dc:creator>bkhanna</dc:creator>
      <dc:date>2017-09-08T13:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create users in hadoop/HDP 2.5</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Create-users-in-hadoop-HDP-2-5/m-p/178633#M140879</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;What about if the cluster is not using kerberos (eg. hadoop.security.authentication=local)?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Aug 2019 09:40:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Create-users-in-hadoop-HDP-2-5/m-p/178633#M140879</guid>
      <dc:creator>rvillanueva</dc:creator>
      <dc:date>2019-08-15T09:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create users in hadoop/HDP 2.5</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Create-users-in-hadoop-HDP-2-5/m-p/289113#M214057</link>
      <description>&lt;P&gt;Hello &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; I have the same issue!&lt;/P&gt;&lt;P&gt;I have integrated the edge node with Active directory users could connect and submit theirs jobs to yarn before enabling Kerberos on the cluster.&lt;/P&gt;&lt;P&gt;Actually I have used samba on edge node to create users folders and get information about users&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I configured the Kerberos and so I am getting the same error user1 not found , user1 is in AD&amp;nbsp;&lt;/P&gt;&lt;P&gt;should I now add this user with normal command add user on alll nodes ? How could it be as AD user and not local one ? I did not configured samba on others nodes may I do it ?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;thanks a lot in advance&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 22:10:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Create-users-in-hadoop-HDP-2-5/m-p/289113#M214057</guid>
      <dc:creator>asmarz</dc:creator>
      <dc:date>2020-02-04T22:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Create users in hadoop/HDP 2.5</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Create-users-in-hadoop-HDP-2-5/m-p/289114#M214058</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/70953"&gt;@asmarz&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As this is an older thread which was previously marked 'Solved', you would have a better chance of receiving a resolution by&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.cloudera.com/t5/forums/postpage/board-id/Questions" target="_blank" rel="noopener"&gt;starting a new thread&lt;/A&gt;. This will also provide the opportunity to provide details specific to your environment (for example, what happened once you&amp;nbsp;added the affected user accounts with "normal" command add user on all nodes)&amp;nbsp; that could aid others in providing a more relevant, accurate answer to your question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Feb 2020 23:54:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Create-users-in-hadoop-HDP-2-5/m-p/289114#M214058</guid>
      <dc:creator>ask_bill_brooks</dc:creator>
      <dc:date>2020-02-04T23:54:09Z</dc:date>
    </item>
  </channel>
</rss>

