<?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 Create new hive user in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-new-hive-user/m-p/116875#M22239</link>
    <description>&lt;P&gt;I want to create new user for hive. When I installed hive using Ambari I created default hive user but want to create one more user. I know it has to be through HDFS but can some one give me exact commands to run and where should I create that. All hive documentation doesn't give me that option.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Mar 2016 00:10:42 GMT</pubDate>
    <dc:creator>swapnilspra</dc:creator>
    <dc:date>2016-03-09T00:10:42Z</dc:date>
    <item>
      <title>Create new hive user</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-new-hive-user/m-p/116875#M22239</link>
      <description>&lt;P&gt;I want to create new user for hive. When I installed hive using Ambari I created default hive user but want to create one more user. I know it has to be through HDFS but can some one give me exact commands to run and where should I create that. All hive documentation doesn't give me that option.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 00:10:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-new-hive-user/m-p/116875#M22239</guid>
      <dc:creator>swapnilspra</dc:creator>
      <dc:date>2016-03-09T00:10:42Z</dc:date>
    </item>
    <item>
      <title>Re: Create new hive user</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-new-hive-user/m-p/116876#M22240</link>
      <description>&lt;P&gt;By itself any HDFS user can use Hive.&lt;/P&gt;&lt;P&gt;If you do not have kerberos:&lt;/P&gt;&lt;P&gt;1) Just add the user to Linux with useradd  ( or add to your ldap ) &lt;/P&gt;&lt;P&gt;2) create user home directory &lt;/P&gt;&lt;P&gt;as user hdfs do &lt;/P&gt;&lt;P&gt;hadoop fs -mkdir /home/myuser&lt;/P&gt;&lt;P&gt;hadoop fs-chown myuser /home/myuser&lt;/P&gt;&lt;P&gt;And that's it you should now be able to run queries as that user. &lt;/P&gt;&lt;P&gt;Now there is a second part for secure clusters&lt;/P&gt;&lt;P&gt;If you have kerberos:&lt;/P&gt;&lt;P&gt;1) Add user to  your KDC&lt;/P&gt;&lt;P&gt;2) kinit as the user&lt;/P&gt;&lt;P&gt;3) run hive&lt;/P&gt;&lt;P&gt;Using hiveserver2 with beeline or jdbc driver:&lt;/P&gt;&lt;P&gt;Depends on which security you have configured for hiveserver2&lt;/P&gt;&lt;P&gt;- None, just specify myuser as user ( -n myuser ) &lt;/P&gt;&lt;P&gt;- PAM uses Linux so give -n myuser -p myuserlinuxpassword&lt;/P&gt;&lt;P&gt;- LDAP uses an LDAP server lets assume its the same as your linux user &lt;/P&gt;&lt;P&gt;- kerberos needs a kinit and specify the principal in the jdbc url&lt;/P&gt;&lt;P&gt;Finally your user needs access to the tables:&lt;/P&gt;&lt;P&gt;No authorization&lt;/P&gt;&lt;P&gt;- make sure the tables you want to read are readable by that user or enable doAs=false&lt;/P&gt;&lt;P&gt;Ranger&lt;/P&gt;&lt;P&gt;- Add access to the table in Ranger portal&lt;/P&gt;&lt;P&gt;SQLStdAuth&lt;/P&gt;&lt;P&gt;- Grant access to the table using GRANT command&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2016 01:02:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-new-hive-user/m-p/116876#M22240</guid>
      <dc:creator>bleonhardi</dc:creator>
      <dc:date>2016-03-09T01:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Create new hive user</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-new-hive-user/m-p/116877#M22241</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/168/bleonhardi.html" nodeid="168"&gt;@Benjamin Leonhardi&lt;/A&gt;&lt;P&gt; if I use SQL Authentication using this method, how should I assign passwords to users? For using in DB connection for instance...&lt;/P&gt;&lt;P&gt;Will Hive consider OS level user passwords? If so, should I set a password also for 'hive' user? Does it affect other operations?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Mar 2018 02:49:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-new-hive-user/m-p/116877#M22241</guid>
      <dc:creator>sedatkestepe</dc:creator>
      <dc:date>2018-03-13T02:49:02Z</dc:date>
    </item>
    <item>
      <title>Re: Create new hive user</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-new-hive-user/m-p/116878#M22242</link>
      <description>&lt;P&gt;@bleonhardi, How can I connect to Hive with a UNIX/HDFS user?&lt;/P&gt;&lt;P&gt;Let's say I have a user named "newuser". I tried the following, but apparently I am doing something wrong.&lt;/P&gt;&lt;PRE&gt;% su - newuser
% beeline
beeline&amp;gt; !connect -n newuser -p jdbc:mysql://my.host.com/hive&lt;/PRE&gt;</description>
      <pubDate>Wed, 08 Aug 2018 06:07:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Create-new-hive-user/m-p/116878#M22242</guid>
      <dc:creator>neagamaxim</dc:creator>
      <dc:date>2018-08-08T06:07:07Z</dc:date>
    </item>
  </channel>
</rss>

