<?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: Strange permission issue using hive jdbc in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Strange-permission-issue-using-hive-jdbc/m-p/221947#M69696</link>
    <description>&lt;P&gt;@Yair Ogen,&lt;/P&gt;&lt;P&gt;Can you let me know if you are trying the execute query using hiveserveer 1 or hiveserver2 ?&lt;/P&gt;&lt;P&gt;If it is hiveserver1, then please change this in hive config-  hive.servere2.enable.doAs= true&lt;/P&gt;&lt;P&gt;The issue looks to be related to the user who is being used to execute the particular hive query. On enabling the above config param, for hiverserver1, it enables to execute as the end user rather then expecting as hive user.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Oct 2017 13:36:51 GMT</pubDate>
    <dc:creator>narendrakumar</dc:creator>
    <dc:date>2017-10-16T13:36:51Z</dc:date>
    <item>
      <title>Strange permission issue using hive jdbc</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Strange-permission-issue-using-hive-jdbc/m-p/221945#M69694</link>
      <description>&lt;P&gt;I am running a simple select query that fails on some strange permission issue. I am connecting with specific user and password.&lt;/P&gt;&lt;P&gt;see log attached.&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/39809-hive-jdbc-permissions-error.txt"&gt;hive-jdbc-permissions-error.txt&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 12:15:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Strange-permission-issue-using-hive-jdbc/m-p/221945#M69694</guid>
      <dc:creator>yogen</dc:creator>
      <dc:date>2017-10-16T12:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Strange permission issue using hive jdbc</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Strange-permission-issue-using-hive-jdbc/m-p/221946#M69695</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/44271/yogen.html" nodeid="44271"&gt;@Yair Ogen&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Your directory has below permissions. User anonymous doesn't have write permissions on the folder&lt;/P&gt;&lt;PRE&gt;/user/anonymous : hdfs:hdfs:drwxr-xr-x&lt;/PRE&gt;&lt;P&gt;Change the ownership of the directory or give write permissions on the dir&lt;/P&gt;&lt;P&gt;1) hdfs dfs -chmod 777 /user/anonymous &lt;/P&gt;&lt;P&gt;2)hdfs dfs -chown anonymous:hdfs /user/anonymous&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 12:27:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Strange-permission-issue-using-hive-jdbc/m-p/221946#M69695</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2017-10-16T12:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Strange permission issue using hive jdbc</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Strange-permission-issue-using-hive-jdbc/m-p/221947#M69696</link>
      <description>&lt;P&gt;@Yair Ogen,&lt;/P&gt;&lt;P&gt;Can you let me know if you are trying the execute query using hiveserveer 1 or hiveserver2 ?&lt;/P&gt;&lt;P&gt;If it is hiveserver1, then please change this in hive config-  hive.servere2.enable.doAs= true&lt;/P&gt;&lt;P&gt;The issue looks to be related to the user who is being used to execute the particular hive query. On enabling the above config param, for hiverserver1, it enables to execute as the end user rather then expecting as hive user.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 13:36:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Strange-permission-issue-using-hive-jdbc/m-p/221947#M69696</guid>
      <dc:creator>narendrakumar</dc:creator>
      <dc:date>2017-10-16T13:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: Strange permission issue using hive jdbc</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Strange-permission-issue-using-hive-jdbc/m-p/221948#M69697</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16330/nkumar.html" nodeid="16330"&gt;@nkumar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am using hiveserver2&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 14:16:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Strange-permission-issue-using-hive-jdbc/m-p/221948#M69697</guid>
      <dc:creator>yogen</dc:creator>
      <dc:date>2017-10-16T14:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Strange permission issue using hive jdbc</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Strange-permission-issue-using-hive-jdbc/m-p/221949#M69698</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14200/asirna.html" nodeid="14200"&gt;@Aditya Sirna&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Thing is I don't know where this 'anonymous' came from (as I am using admin user) and I don't even have a folder named /user/anonymous&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 14:20:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Strange-permission-issue-using-hive-jdbc/m-p/221949#M69698</guid>
      <dc:creator>yogen</dc:creator>
      <dc:date>2017-10-16T14:20:07Z</dc:date>
    </item>
    <item>
      <title>Re: Strange permission issue using hive jdbc</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Strange-permission-issue-using-hive-jdbc/m-p/221950#M69699</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/44271/yogen.html" nodeid="44271"&gt;@Yair Ogen&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;I guess you are running it through beeline without passing the -n (username) param. You need to create /user/anonymous folder and change permissions as mentioned above to make it work. Or pass the valid username.&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 14:39:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Strange-permission-issue-using-hive-jdbc/m-p/221950#M69699</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2017-10-16T14:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: Strange permission issue using hive jdbc</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Strange-permission-issue-using-hive-jdbc/m-p/221951#M69700</link>
      <description>&lt;P&gt;Turns out that the user password property names sent to the hive driver in connProps:&lt;/P&gt;&lt;PRE&gt;Connection connection = hiveDriver.connect(serverURL, connProps);&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;were wrong. so the user and password info wasn't sent out.&lt;/P&gt;&lt;P&gt;once fixed - the query works.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Oct 2017 14:55:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Strange-permission-issue-using-hive-jdbc/m-p/221951#M69700</guid>
      <dc:creator>yogen</dc:creator>
      <dc:date>2017-10-16T14:55:05Z</dc:date>
    </item>
  </channel>
</rss>

