<?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: &amp;quot;Requested user hive is not whitelisted and has id 504,which is below the minimum allowed 1000&amp;quot; when running Hive query with explode function in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/quot-Requested-user-hive-is-not-whitelisted-and-has-id-504/m-p/137311#M99960</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/872/rahulpathak109.html" nodeid="872"&gt;@Rahul Pathak&lt;/A&gt; - yes I have as I said they dont seem to work...&lt;/P&gt;</description>
    <pubDate>Mon, 21 Mar 2016 22:56:04 GMT</pubDate>
    <dc:creator>David_Tam</dc:creator>
    <dc:date>2016-03-21T22:56:04Z</dc:date>
    <item>
      <title>"Requested user hive is not whitelisted and has id 504,which is below the minimum allowed 1000" when running Hive query with explode function</title>
      <link>https://community.cloudera.com/t5/Support-Questions/quot-Requested-user-hive-is-not-whitelisted-and-has-id-504/m-p/137309#M99958</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am using HDP 2.3.4 sandbox, the sandbox has been kerberoized.&lt;/P&gt;&lt;P&gt;I have loaded some struct and array types data into Hive, where the schema looks like this:&lt;/P&gt;&lt;PRE&gt;exampletable
 |-- listOfPeople: array (nullable = false)
 |    |-- element: struct (containsNull = true)
 |    |    |-- Name: string (nullable = false)
 |    |    |-- id: integer (nullable = false)
 |    |    |-- Email: string (nullable = false)
 |    |    |-- holiday: array (nullable = false)
 |    |    |    |-- element: integer (containsNull = true)
 |-- departmentName: string (nullable = false)
&lt;/PRE&gt;&lt;P&gt;, and trying run this query in Hive View:&lt;/P&gt;&lt;PRE&gt;SELECT explode(listofpeople.name) AS name from exampletable;&lt;/PRE&gt;&lt;P&gt;with these Hive View settings:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2919-2016-03-21-15-34-16-ambari.png" style="width: 860px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21984i94D415BB5C8458D3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2919-2016-03-21-15-34-16-ambari.png" alt="2919-2016-03-21-15-34-16-ambari.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;However I am getting these:&lt;/P&gt;&lt;PRE&gt;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_1458555995218_0002 failed 2 times due to AM Container for appattempt_1458555995218_0002_000002 exited with exitCode: -1000
For more detailed output, check application tracking page:http://sandbox.hortonworks.com:8088/cluster/app/application_1458555995218_0002Then, click on links to logs of each attempt.
Diagnostics: Application application_1458555995218_0002 initialization failed (exitCode=255) with output: main : command provided 0
main : run as user is hive
main : requested yarn user is hive
Requested user hive is not whitelisted and has id 504,which is below the minimum allowed 1000


Failing this attempt. Failing the application.
at org.apache.tez.client.TezClient.waitTillReady(TezClient.java:726)
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:271)
at org.apache.hadoop.hive.ql.exec.tez.TezTask.execute(TezTask.java:151)
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:1703)
at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1460)
at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1237)
at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1101)
at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1096)
at org.apache.hive.service.cli.operation.SQLOperation.runQuery(SQLOperation.java:154)
at org.apache.hive.service.cli.operation.SQLOperation.access$100(SQLOperation.java:71)
at org.apache.hive.service.cli.operation.SQLOperation$1$1.run(SQLOperation.java:206)
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:1657)
at org.apache.hive.service.cli.operation.SQLOperation$1.run(SQLOperation.java:218)
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)
&lt;/PRE&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/articles/2439/linuxcontainerexecutor-security-best-practices.html" rel="nofollow noopener noreferrer" target="_blank"&gt;This thread kind of says this is the desire behaviour&lt;/A&gt; and &lt;A href="https://kb.informatica.com/solution/23/Pages/53/332964.aspx?docid=332964&amp;amp;type=external" rel="nofollow noopener noreferrer" target="_blank"&gt;google suggests to change the allowed.system.users in yarn-site (but it doesnt seems to work)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If I just want to run the query successfully on the sandbox what needs to be done?  Or what is the best practice solution for this?&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 08:46:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/quot-Requested-user-hive-is-not-whitelisted-and-has-id-504/m-p/137309#M99958</guid>
      <dc:creator>David_Tam</dc:creator>
      <dc:date>2019-08-19T08:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: "Requested user hive is not whitelisted and has id 504,which is below the minimum allowed 1000" when running Hive query with explode function</title>
      <link>https://community.cloudera.com/t5/Support-Questions/quot-Requested-user-hive-is-not-whitelisted-and-has-id-504/m-p/137310#M99959</link>
      <description>&lt;P&gt;Have you also changed the value of &lt;EM&gt;min.user.id. ?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Or you can change the id of hive user above 1000&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2016 22:38:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/quot-Requested-user-hive-is-not-whitelisted-and-has-id-504/m-p/137310#M99959</guid>
      <dc:creator>rahulpathak109</dc:creator>
      <dc:date>2016-03-21T22:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: "Requested user hive is not whitelisted and has id 504,which is below the minimum allowed 1000" when running Hive query with explode function</title>
      <link>https://community.cloudera.com/t5/Support-Questions/quot-Requested-user-hive-is-not-whitelisted-and-has-id-504/m-p/137311#M99960</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/872/rahulpathak109.html" nodeid="872"&gt;@Rahul Pathak&lt;/A&gt; - yes I have as I said they dont seem to work...&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2016 22:56:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/quot-Requested-user-hive-is-not-whitelisted-and-has-id-504/m-p/137311#M99960</guid>
      <dc:creator>David_Tam</dc:creator>
      <dc:date>2016-03-21T22:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: "Requested user hive is not whitelisted and has id 504,which is below the minimum allowed 1000" when running Hive query with explode function</title>
      <link>https://community.cloudera.com/t5/Support-Questions/quot-Requested-user-hive-is-not-whitelisted-and-has-id-504/m-p/137312#M99961</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/2311/davidtam.html"&gt;David Tam&lt;/A&gt;&lt;/P&gt;&lt;P&gt;
&lt;/P&gt;&lt;P&gt;Here is  hortonworks documentation I read go to page 19&lt;/P&gt;&lt;PRE&gt;Each account must have a user ID that is greater than or equal to 1000. In the /etc/hadoop/conf/taskcontroller.cfg file, the default setting for the banned.users property is mapred, hdfs, and bin to prevent jobs from being submitted via those user accounts. The default setting for the min.user.id property is 1000 to prevent jobs from being submitted with a user ID less than 1000, which are conventionally Unix super users.&lt;/PRE&gt;&lt;P&gt;&lt;A target="_blank" href="http://docs.hortonworks.com/HDPDocuments/Ambari-2.1.2.0/bk_Ambari_Security_Guide/bk_Ambari_Security_Guide-20150930.pdf"&gt;Hortonworks&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope that explains it &lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2016 23:31:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/quot-Requested-user-hive-is-not-whitelisted-and-has-id-504/m-p/137312#M99961</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2016-03-21T23:31:07Z</dc:date>
    </item>
    <item>
      <title>Re: "Requested user hive is not whitelisted and has id 504,which is below the minimum allowed 1000" when running Hive query with explode function</title>
      <link>https://community.cloudera.com/t5/Support-Questions/quot-Requested-user-hive-is-not-whitelisted-and-has-id-504/m-p/137313#M99962</link>
      <description>&lt;P&gt;Hello I have forgotten about this, but at the end I have actually got it to work.&lt;/P&gt;&lt;P&gt;What needs to be done was using kadmin to create a new keytab, and and add principal ambari-server@KRB.HDP to the keytab.  Also it needs a full restart of the sandbox.&lt;/P&gt;&lt;P&gt;See &lt;A href="http://docs.hortonworks.com/HDPDocuments/Ambari-2.1.1.0/bk_Ambari_Security_Guide/content/_optional_set_up_kerberos_for_ambari_server.html"&gt;Setup Kerberos for Ambari Server&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks to &lt;A rel="user" href="https://community.cloudera.com/users/1271/sheltong.html" nodeid="1271"&gt;@Geoffrey Shelton Okot&lt;/A&gt; for pointing the right direction&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2016 18:53:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/quot-Requested-user-hive-is-not-whitelisted-and-has-id-504/m-p/137313#M99962</guid>
      <dc:creator>David_Tam</dc:creator>
      <dc:date>2016-05-16T18:53:30Z</dc:date>
    </item>
  </channel>
</rss>

