<?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 Getting error when connecting to hive CLI  from &amp;quot;ROOT&amp;quot; user  in kerberised cluster even I have root keytab and principal in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-error-when-connecting-to-hive-CLI-from-quot-ROOT/m-p/117466#M34119</link>
    <description>&lt;P&gt;Hello Everyone , &lt;/P&gt;&lt;P&gt;Can you please add your inputs on my below concern with HIVE vs Root user while I am unable to run queries &lt;/P&gt;&lt;P&gt;I have my kerberised cluster where I created  keytab and principal for ROOT user .&lt;/P&gt;&lt;P&gt;From one of my edge nodes , When I connect with beeline as Root user its connecting  but while running the Insert Queries its failing  with below exception.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;main : run as user is root &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;main : requested yarn user is root &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Running as root is not allowed Failing this attempt. Failing the application&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;To check  I have tried to connect hive CLI ,  same exception got &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;main : run as user is root &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;main : requested yarn user is root &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Running as root is not allowed Failing this attempt. Failing the application&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;root@hdp-24-edge03.dev[us-east-1]:~# hive &lt;/P&gt;&lt;P&gt;WARNING: Use "yarn jar" to launch YARN applications.
Logging initialized using configuration in file:/etc/hive/2.3.4.33-1/0/hive-log4j.properties
Exception in thread "main" java.lang.RuntimeException: org.apache.tez.dag.api.SessionNotRunning: TezSession has already shutdown. Application application_1467717854824_0105 failed 2 times due to AM Container for appattempt_1467717854824_0105_000002 exited with  exitCode: -1000
For more detailed output, check application tracking page:http://hdp-iaas-dev24-control01.dev.na1.phsdp.com:8088/cluster/app/application_1467717854824_0105Then, click on links to logs of each attempt.
Diagnostics: Application application_1467717854824_0105 initialization failed (exitCode=255) with output: main : command provided 0
main : run as user is root
main : requested yarn user is root
Running as root is not allowed
Failing this attempt. Failing the application.
        at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:507)
        at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:680)
        at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:624)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
Caused by: org.apache.tez.dag.api.SessionNotRunning: TezSession has already shutdown. Application application_1467717854824_0105 failed 2 times due to AM Container for appattempt_1467717854824_0105_000002 exited with  exitCode: -1000
For more detailed output, check application tracking page:http://hdp-iaas-dev24-control01.dev.na1.phsdp.com:8088/cluster/app/application_1467717854824_0105Then, click on links to logs of each attempt.
Diagnostics: Application application_1467717854824_0105 initialization failed (exitCode=255) with output: main : command provided 0 &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;main : run as user is root &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;main : requested yarn user is root &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Running as root is not allowed
Failing this attempt. Failing the application&lt;/STRONG&gt;.
        at org.apache.tez.client.TezClient.waitTillReady(TezClient.java:730)
        at org.apache.hadoop.hive.ql.exec.tez.TezSessionState.open(TezSessionState.java:217)
        at org.apache.hadoop.hive.ql.exec.tez.TezSessionState.open(TezSessionState.java:117)
        at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:504)
        ... 8 more&lt;/P&gt;</description>
    <pubDate>Thu, 07 Jul 2016 19:19:03 GMT</pubDate>
    <dc:creator>javvaji_hari_ki</dc:creator>
    <dc:date>2016-07-07T19:19:03Z</dc:date>
    <item>
      <title>Getting error when connecting to hive CLI  from "ROOT" user  in kerberised cluster even I have root keytab and principal</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-error-when-connecting-to-hive-CLI-from-quot-ROOT/m-p/117466#M34119</link>
      <description>&lt;P&gt;Hello Everyone , &lt;/P&gt;&lt;P&gt;Can you please add your inputs on my below concern with HIVE vs Root user while I am unable to run queries &lt;/P&gt;&lt;P&gt;I have my kerberised cluster where I created  keytab and principal for ROOT user .&lt;/P&gt;&lt;P&gt;From one of my edge nodes , When I connect with beeline as Root user its connecting  but while running the Insert Queries its failing  with below exception.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;main : run as user is root &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;main : requested yarn user is root &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Running as root is not allowed Failing this attempt. Failing the application&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;To check  I have tried to connect hive CLI ,  same exception got &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;main : run as user is root &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;main : requested yarn user is root &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Running as root is not allowed Failing this attempt. Failing the application&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;root@hdp-24-edge03.dev[us-east-1]:~# hive &lt;/P&gt;&lt;P&gt;WARNING: Use "yarn jar" to launch YARN applications.
Logging initialized using configuration in file:/etc/hive/2.3.4.33-1/0/hive-log4j.properties
Exception in thread "main" java.lang.RuntimeException: org.apache.tez.dag.api.SessionNotRunning: TezSession has already shutdown. Application application_1467717854824_0105 failed 2 times due to AM Container for appattempt_1467717854824_0105_000002 exited with  exitCode: -1000
For more detailed output, check application tracking page:http://hdp-iaas-dev24-control01.dev.na1.phsdp.com:8088/cluster/app/application_1467717854824_0105Then, click on links to logs of each attempt.
Diagnostics: Application application_1467717854824_0105 initialization failed (exitCode=255) with output: main : command provided 0
main : run as user is root
main : requested yarn user is root
Running as root is not allowed
Failing this attempt. Failing the application.
        at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:507)
        at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:680)
        at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:624)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:606)
        at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
Caused by: org.apache.tez.dag.api.SessionNotRunning: TezSession has already shutdown. Application application_1467717854824_0105 failed 2 times due to AM Container for appattempt_1467717854824_0105_000002 exited with  exitCode: -1000
For more detailed output, check application tracking page:http://hdp-iaas-dev24-control01.dev.na1.phsdp.com:8088/cluster/app/application_1467717854824_0105Then, click on links to logs of each attempt.
Diagnostics: Application application_1467717854824_0105 initialization failed (exitCode=255) with output: main : command provided 0 &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;main : run as user is root &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;main : requested yarn user is root &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Running as root is not allowed
Failing this attempt. Failing the application&lt;/STRONG&gt;.
        at org.apache.tez.client.TezClient.waitTillReady(TezClient.java:730)
        at org.apache.hadoop.hive.ql.exec.tez.TezSessionState.open(TezSessionState.java:217)
        at org.apache.hadoop.hive.ql.exec.tez.TezSessionState.open(TezSessionState.java:117)
        at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:504)
        ... 8 more&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 19:19:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-error-when-connecting-to-hive-CLI-from-quot-ROOT/m-p/117466#M34119</guid>
      <dc:creator>javvaji_hari_ki</dc:creator>
      <dc:date>2016-07-07T19:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error when connecting to hive CLI  from "ROOT" user  in kerberised cluster even I have root keytab and principal</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-error-when-connecting-to-hive-CLI-from-quot-ROOT/m-p/117467#M34120</link>
      <description>&lt;P&gt;Avoid using root user to run jobs in kerberized cluster. There is a configuration to set minimum uid and unless you have specific requirement to run as root, don't use it. The parameter is min.user.id and default is 1000. Linux super users generally end up below 1000 uids. &lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 19:42:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-error-when-connecting-to-hive-CLI-from-quot-ROOT/m-p/117467#M34120</guid>
      <dc:creator>ravi1</dc:creator>
      <dc:date>2016-07-07T19:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Getting error when connecting to hive CLI  from "ROOT" user  in kerberised cluster even I have root keytab and principal</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-error-when-connecting-to-hive-CLI-from-quot-ROOT/m-p/117468#M34121</link>
      <description>&lt;P&gt;Hi Ravi ,&lt;/P&gt;&lt;P&gt;Thanks for your comeback ! &lt;/P&gt;&lt;P&gt;Minimum user ID for submitting job in my case is '500' .&lt;/P&gt;&lt;P&gt;I have this doubt -- configuration for UID showing '0' for disallowing  root and '1000' to disallow all super users.&lt;/P&gt;&lt;P&gt;So If I want  to run hive CLI by "ROOT" user  what  should I mention since Root UID =0&lt;/P&gt;&lt;P&gt; id root
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Hari&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 16:38:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Getting-error-when-connecting-to-hive-CLI-from-quot-ROOT/m-p/117468#M34121</guid>
      <dc:creator>javvaji_hari_ki</dc:creator>
      <dc:date>2016-07-08T16:38:40Z</dc:date>
    </item>
  </channel>
</rss>

