<?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: How to disable hive CLI for all the users . Planning to use &amp;quot;beeline&amp;quot; instead of hive CLI in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-disable-hive-CLI-for-all-the-users-Planning-to-use/m-p/118637#M81420</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/11553/paramesh787.html" nodeid="11553"&gt;@Parameswara Nangi&lt;/A&gt;&lt;P&gt;Please refer - &lt;A href="https://community.hortonworks.com/questions/10760/how-to-disable-hive-shell-for-all-users.html" target="_blank"&gt;https://community.hortonworks.com/questions/10760/how-to-disable-hive-shell-for-all-users.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Jul 2016 01:42:38 GMT</pubDate>
    <dc:creator>KuldeepK</dc:creator>
    <dc:date>2016-07-08T01:42:38Z</dc:date>
    <item>
      <title>How to disable hive CLI for all the users . Planning to use "beeline" instead of hive CLI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-disable-hive-CLI-for-all-the-users-Planning-to-use/m-p/118635#M81418</link>
      <description>&lt;P&gt;Currently we are using Hive CLI on my cluster,For the security purpose we planned to use "beeline" by disabling "Hive CLI" from the existing cluster. I have added the lines below in hive-env template thru ambari to disable the hive shell&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;if["$SERVICE"="cli"];then&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;echo "Sorry! I have disabled hive-shell"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;exit1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;fi&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Once I restarted the hive service I could see 2 CRIT alerts from ambari &lt;STRONG&gt;"Hive Metastore process cannot be determined to be up and listening on the network."  &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; I know that I can revoke execute permission for below file on all hive-clients.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/usr/hdp/current/hive-client/bin/hive&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Could someone suggest me the better approach to disable &lt;STRONG&gt;"Hive CLI" .&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 01:39:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-disable-hive-CLI-for-all-the-users-Planning-to-use/m-p/118635#M81418</guid>
      <dc:creator>paramesh787</dc:creator>
      <dc:date>2016-07-08T01:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable hive CLI for all the users . Planning to use "beeline" instead of hive CLI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-disable-hive-CLI-for-all-the-users-Planning-to-use/m-p/118636#M81419</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11553/paramesh787.html" nodeid="11553"&gt;@Parameswara Nangi&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;if [ "$SERVICE" = "cli" ] &amp;amp;&amp;amp; [ "$USER" != "ambari-qa" ]; then 
echo "Sorry! hive cli has been disabled for security purpose, please use beeline instead." 
exit 1 
fi 
&lt;/PRE&gt;&lt;P&gt;This gives ambari-qa the hive cli access and therefore the hive metastore health check passes.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 01:39:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-disable-hive-CLI-for-all-the-users-Planning-to-use/m-p/118636#M81419</guid>
      <dc:creator>sandyy006</dc:creator>
      <dc:date>2016-07-08T01:39:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable hive CLI for all the users . Planning to use "beeline" instead of hive CLI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-disable-hive-CLI-for-all-the-users-Planning-to-use/m-p/118637#M81420</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/11553/paramesh787.html" nodeid="11553"&gt;@Parameswara Nangi&lt;/A&gt;&lt;P&gt;Please refer - &lt;A href="https://community.hortonworks.com/questions/10760/how-to-disable-hive-shell-for-all-users.html" target="_blank"&gt;https://community.hortonworks.com/questions/10760/how-to-disable-hive-shell-for-all-users.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 01:42:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-disable-hive-CLI-for-all-the-users-Planning-to-use/m-p/118637#M81420</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-07-08T01:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to disable hive CLI for all the users . Planning to use "beeline" instead of hive CLI</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-disable-hive-CLI-for-all-the-users-Planning-to-use/m-p/118638#M81421</link>
      <description>&lt;P&gt;Hi Sandeep,&lt;/P&gt;&lt;P&gt;Thank you very much for the prompt response..&lt;/P&gt;&lt;P&gt;I have added the above lines to hive-env template and restarted the hive services and it worked, the error was disappeared from from ambari.&lt;/P&gt;&lt;P&gt;Connected to beeline thru backend submitted a query and it was executed . but I could see the below error.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR hdfs.KeyProviderCache: Could not find uri with key [dfs.encryption.key.provider.uri] to create a keyProvider !!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Please suggest me on this.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 04:35:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-disable-hive-CLI-for-all-the-users-Planning-to-use/m-p/118638#M81421</guid>
      <dc:creator>paramesh787</dc:creator>
      <dc:date>2016-07-08T04:35:08Z</dc:date>
    </item>
  </channel>
</rss>

