<?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: In Sandbox, HDP 2.5, getting a Hive Cli error in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Sandbox-HDP-2-5-getting-a-Hive-Cli-error/m-p/116348#M34054</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/9304/tspann.html" nodeid="9304" target="_blank"&gt;@Timothy Spann&lt;/A&gt; the above instructions by &lt;A rel="user" href="https://community.cloudera.com/users/11048/falbani.html" nodeid="11048" target="_blank"&gt;@Felix Albani&lt;/A&gt; should work.  In Ambari it looks like so within the Hive configuration.  &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5636-screen-shot-2016-07-07-at-60329-pm.png" style="width: 918px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/23057i13121F0AE0921065/image-size/medium?v=v2&amp;amp;px=400" role="button" title="5636-screen-shot-2016-07-07-at-60329-pm.png" alt="5636-screen-shot-2016-07-07-at-60329-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Aug 2019 10:55:13 GMT</pubDate>
    <dc:creator>rmolina</dc:creator>
    <dc:date>2019-08-19T10:55:13Z</dc:date>
    <item>
      <title>In Sandbox, HDP 2.5, getting a Hive Cli error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Sandbox-HDP-2-5-getting-a-Hive-Cli-error/m-p/116344#M34050</link>
      <description>&lt;P&gt;FAILED: RuntimeException java.io.FileNotFoundException: /etc/hive/2.5.0.0-817/0/xasecure-audit.xml&lt;/P&gt;&lt;P&gt;I tried a few different users (root, hdfs, hive)&lt;/P&gt;&lt;PRE&gt;[hive@sandbox conf]$ hive cli
WARNING: Use "yarn jar" to launch YARN applications.
Logging initialized using configuration in file:/etc/hive/2.5.0.0-817/0/hive-log4j.properties
hive&amp;gt; show functions;
FAILED: RuntimeException java.io.FileNotFoundException: /etc/hive/2.5.0.0-817/0/xasecure-audit.xml (No such file or directory)
hive&amp;gt; show tables;
Exception in thread "main" java.lang.AssertionError: Authorization plugins not initialized!
at org.apache.hadoop.hive.ql.session.SessionState.getAuthorizationMode(SessionState.java:1509)
at org.apache.hadoop.hive.ql.session.SessionState.isAuthorizationModeV2(SessionState.java:1513)
at org.apache.hadoop.hive.ql.Driver.doAuthorization(Driver.java:626)
at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:506)
at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:318)
at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1197)
at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1245)
at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1134)
at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1124)
at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:216)
at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:168)
at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:379)
at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:739)
at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:684)
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)
[hive@sandbox conf]$&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Jul 2016 01:32:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Sandbox-HDP-2-5-getting-a-Hive-Cli-error/m-p/116344#M34050</guid>
      <dc:creator>TimothySpann</dc:creator>
      <dc:date>2016-07-07T01:32:34Z</dc:date>
    </item>
    <item>
      <title>Re: In Sandbox, HDP 2.5, getting a Hive Cli error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Sandbox-HDP-2-5-getting-a-Hive-Cli-error/m-p/116345#M34051</link>
      <description>&lt;P&gt;A quick workaround is to disable ranger authorization from hive-&amp;gt;authorization in ambari UI and restart hive. However, if ranger is part of your tests and want to keep it enabled, this is not the solution.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 01:32:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Sandbox-HDP-2-5-getting-a-Hive-Cli-error/m-p/116345#M34051</guid>
      <dc:creator>ravi1</dc:creator>
      <dc:date>2016-07-07T01:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: In Sandbox, HDP 2.5, getting a Hive Cli error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Sandbox-HDP-2-5-getting-a-Hive-Cli-error/m-p/116346#M34052</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/9304/tspann.html" nodeid="9304"&gt;@Timothy Spann&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Try setting hive.security.authorization.manager=org.apache.hadoop.hive.ql.security.authorization.plugin.sqlstd.SQLStdHiveAuthorizerFactory in hive-site and hive.security.authorization.enabled=false&lt;/P&gt;&lt;P&gt;You can search on ambari Hive for those configurations and test after changing them.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jul 2016 02:21:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Sandbox-HDP-2-5-getting-a-Hive-Cli-error/m-p/116346#M34052</guid>
      <dc:creator>falbani</dc:creator>
      <dc:date>2016-07-07T02:21:53Z</dc:date>
    </item>
    <item>
      <title>Re: In Sandbox, HDP 2.5, getting a Hive Cli error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Sandbox-HDP-2-5-getting-a-Hive-Cli-error/m-p/116347#M34053</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/43761/in-sandbox-hdp-25-getting-a-hive-cli-error.html#"&gt;@Timothy Spann&lt;/A&gt; do you see this issue with beeline as well?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 02:27:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Sandbox-HDP-2-5-getting-a-Hive-Cli-error/m-p/116347#M34053</guid>
      <dc:creator>slachterman</dc:creator>
      <dc:date>2016-07-08T02:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: In Sandbox, HDP 2.5, getting a Hive Cli error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Sandbox-HDP-2-5-getting-a-Hive-Cli-error/m-p/116348#M34054</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/9304/tspann.html" nodeid="9304" target="_blank"&gt;@Timothy Spann&lt;/A&gt; the above instructions by &lt;A rel="user" href="https://community.cloudera.com/users/11048/falbani.html" nodeid="11048" target="_blank"&gt;@Felix Albani&lt;/A&gt; should work.  In Ambari it looks like so within the Hive configuration.  &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5636-screen-shot-2016-07-07-at-60329-pm.png" style="width: 918px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/23057i13121F0AE0921065/image-size/medium?v=v2&amp;amp;px=400" role="button" title="5636-screen-shot-2016-07-07-at-60329-pm.png" alt="5636-screen-shot-2016-07-07-at-60329-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 10:55:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Sandbox-HDP-2-5-getting-a-Hive-Cli-error/m-p/116348#M34054</guid>
      <dc:creator>rmolina</dc:creator>
      <dc:date>2019-08-19T10:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: In Sandbox, HDP 2.5, getting a Hive Cli error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Sandbox-HDP-2-5-getting-a-Hive-Cli-error/m-p/116349#M34055</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/9304/tspann.html" nodeid="9304"&gt;@Timothy Spann&lt;/A&gt;, there is a bug from Ambari perspective, it is not generating hiveserver2-site.xml. So any changes made in Advanced Hiveserver2 site section from Ambari are not getting reflected, (we make changes in hiveserver2-site.xml for Ranger) so if you disable authorization from the general settings as mentioned above, you will be able to run Hive cli but Ranger policies will not work as expected. This issue has been raised up and will be resolved soon in the upcoming releases of Sandbox. &lt;/P&gt;&lt;P&gt;For now, you can use Hive but without any Ranger policies. &lt;/P&gt;</description>
      <pubDate>Sat, 09 Jul 2016 02:21:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/In-Sandbox-HDP-2-5-getting-a-Hive-Cli-error/m-p/116349#M34055</guid>
      <dc:creator>mrizvi</dc:creator>
      <dc:date>2016-07-09T02:21:19Z</dc:date>
    </item>
  </channel>
</rss>

