<?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: insert in HIVE failing in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-in-HIVE-failing/m-p/132763#M27257</link>
    <description>&lt;P&gt;I saw this on web and after the following change the error has also changed .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"For me it was solved by changing the address that the service was listening on in /etc/hadoop/conf/core-sitse.xml. Mine was previously listening on "localhost:8020." (127.0.0.1)&lt;/P&gt;&lt;P&gt;&amp;lt;configuration&amp;gt;
&amp;lt;property&amp;gt;
&amp;lt;name&amp;gt;fs.defaultFS&amp;lt;/name&amp;gt;
&amp;lt;value&amp;gt;hdfs://0.0.0.0:8020&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;amp;&amp;amp; then bounce the service with hadoop "&lt;/P&gt;&lt;P&gt;NOW THE ERROR  I GET IS  :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0: jdbc:hive2://SecondaryMaster:10000&amp;gt; INSERT INTO customers (id, firstname, lastname) VALUES (1, 'John', 'Smith');
INFO  : Tez session hasn't been created yet. Opening session
ERROR : Failed to execute tez graph.
org.apache.hadoop.security.AccessControlException: Permission denied: user=INSERT INTO customers (id, firstname, lastnaALUES (1, 'John', 'Smith');, access=WRITE, inode="/user/INSERT INTO customers (id, firstname, lastname) VALUES (1, 'JohSmith');":hdfs:hdfs:drwxr-xr-x&lt;/P&gt;</description>
    <pubDate>Thu, 05 May 2016 03:07:49 GMT</pubDate>
    <dc:creator>aliyesami</dc:creator>
    <dc:date>2016-05-05T03:07:49Z</dc:date>
    <item>
      <title>insert in HIVE failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-in-HIVE-failing/m-p/132758#M27252</link>
      <description>&lt;P&gt;I am connected to HIVE using hadoop user which I created as Admin but I am still getting errors while trying to insert .&lt;/P&gt;&lt;P&gt;0: jdbc:hive2://SecondaryMaster:10000&amp;gt; INSERT INTO customers (id, firstname, lastname) VALUES (1, 'John', 'Smith');
INFO  : Tez session hasn't been created yet. Opening session
ERROR : Failed to execute tez graph.
org.apache.hadoop.security.AccessControlException: Permission denied: user=hadoop, access=WRITE, inode="/user/hadoop":hdfs:hdfs:drwxr-xr-x&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 02:07:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-in-HIVE-failing/m-p/132758#M27252</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2016-05-05T02:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: insert in HIVE failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-in-HIVE-failing/m-p/132759#M27253</link>
      <description>&lt;P style="margin-left: 40px;"&gt; &lt;A rel="user" href="https://community.cloudera.com/users/10115/sahmad43.html" nodeid="10115"&gt;@Sami Ahmad&lt;/A&gt; you are inserting data using user hadoop into directory /user/hadoop.  to fix this provide user hadoop permission to write to file directory /user/hadoop.  You can also simple add user hadoop to linux group hdfs. then all permissions group hdfs has will be inheritried by users within the group.  let me know if you need more details.&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 02:08:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-in-HIVE-failing/m-p/132759#M27253</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-05-05T02:08:04Z</dc:date>
    </item>
    <item>
      <title>Re: insert in HIVE failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-in-HIVE-failing/m-p/132760#M27254</link>
      <description>&lt;P style="margin-left: 40px;"&gt; &lt;A rel="user" href="https://community.cloudera.com/users/10115/sahmad43.html" nodeid="10115"&gt;@Sami Ahmad&lt;/A&gt; you can change the owner of /user/hadoop folder by issuing this command&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;hdfs dfs -chown -R hadoop /user/hadoop&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;or hadoop fs -chown -R hadoop /user/hadoop&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;Do the above command as user hdfs.&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 02:11:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-in-HIVE-failing/m-p/132760#M27254</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-05-05T02:11:41Z</dc:date>
    </item>
    <item>
      <title>Re: insert in HIVE failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-in-HIVE-failing/m-p/132761#M27255</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/10115/sahmad43.html"&gt;@Sami Ahmad&lt;/A&gt;, The permissions on your /user/hadoop HDFS directory are incorrect. You need to run this command to change the ownership of the HDFS directory:
&lt;/P&gt;&lt;PRE&gt;hdfs dfs -chown hadoop:hdfs /user/hadoop&lt;/PRE&gt;&lt;P&gt;The error message shows you the current permissions on the /user/hadoop HDFS directory along with the type of access the process is trying to perform. Changing the /user/hadoop HDFS directory's owner using the above command should get you going again.&lt;/P&gt;&lt;PRE&gt;ERROR : Failed to execute tez graph. org.apache.hadoop.security.AccessControlException: Permission denied: user=hadoop, access=WRITE, inode="/user/hadoop":hdfs:hdfs:drwxr-xr-x&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 May 2016 02:19:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-in-HIVE-failing/m-p/132761#M27255</guid>
      <dc:creator>Jonathan_M_Maes</dc:creator>
      <dc:date>2016-05-05T02:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: insert in HIVE failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-in-HIVE-failing/m-p/132762#M27256</link>
      <description>&lt;P&gt; but why its accessing /user/hadoop ?  I  don't even have this directory  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[hdfs@ip-172-31-11-180 ~]$ hdfs  dfs -ls /user
Found 11 items
-rw-r--r--  3 hdfs  hdfs  124 2016-04-28 17:42 /user/a.log
drwx------  - accumulo  hdfs  0 2016-04-28 14:57 /user/accumulo
drwxrwx---  - ambari-qa hdfs  0 2016-05-04 11:53 /user/ambari-qa
-rw-r--r--  3 hdfs  hdfs  124 2016-04-28 17:43 /user/b.log
drwxr-xr-x  - hcat  hdfs  0 2016-04-28 14:57 /user/hcat
drwxr-xr-x  - hdfs  hdfs  0 2016-05-04 12:02 /user/hdfs
drwx------  - hive  hdfs  0 2016-05-04 15:39 /user/hive
drwxrwxr-x  - oozie  hdfs  0 2016-04-28 14:57 /user/oozie
drwxrwxr-x  - spark  hdfs  0 2016-04-28 14:55 /user/spark
[hdfs@ip-172-31-11-180 ~]$&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 03:01:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-in-HIVE-failing/m-p/132762#M27256</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2016-05-05T03:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: insert in HIVE failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-in-HIVE-failing/m-p/132763#M27257</link>
      <description>&lt;P&gt;I saw this on web and after the following change the error has also changed .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"For me it was solved by changing the address that the service was listening on in /etc/hadoop/conf/core-sitse.xml. Mine was previously listening on "localhost:8020." (127.0.0.1)&lt;/P&gt;&lt;P&gt;&amp;lt;configuration&amp;gt;
&amp;lt;property&amp;gt;
&amp;lt;name&amp;gt;fs.defaultFS&amp;lt;/name&amp;gt;
&amp;lt;value&amp;gt;hdfs://0.0.0.0:8020&amp;lt;/value&amp;gt;
&amp;lt;/property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;amp;&amp;amp; then bounce the service with hadoop "&lt;/P&gt;&lt;P&gt;NOW THE ERROR  I GET IS  :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0: jdbc:hive2://SecondaryMaster:10000&amp;gt; INSERT INTO customers (id, firstname, lastname) VALUES (1, 'John', 'Smith');
INFO  : Tez session hasn't been created yet. Opening session
ERROR : Failed to execute tez graph.
org.apache.hadoop.security.AccessControlException: Permission denied: user=INSERT INTO customers (id, firstname, lastnaALUES (1, 'John', 'Smith');, access=WRITE, inode="/user/INSERT INTO customers (id, firstname, lastname) VALUES (1, 'JohSmith');":hdfs:hdfs:drwxr-xr-x&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 03:07:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-in-HIVE-failing/m-p/132763#M27257</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2016-05-05T03:07:49Z</dc:date>
    </item>
    <item>
      <title>Re: insert in HIVE failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-in-HIVE-failing/m-p/132764#M27258</link>
      <description>&lt;P&gt;also shall I put the change that I made in core-site.xml file back ? &lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 03:15:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-in-HIVE-failing/m-p/132764#M27258</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2016-05-05T03:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: insert in HIVE failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-in-HIVE-failing/m-p/132765#M27259</link>
      <description>&lt;P style="margin-left: 40px;"&gt; &lt;A rel="user" href="https://community.cloudera.com/users/10115/sahmad43.html" nodeid="10115"&gt;@Sami Ahmad&lt;/A&gt; Why are you change the core-site.xml?  you need to update the permissions on the directory which should solve you issue as i have identified.  it is trying to access that directory as it may be the default directory based on what is set on your hive.metastore.warehouse.dir.  I suggest you update the file permissions and revert any changes on core-site.xml.  Post what happens after you have done this.  &lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 03:29:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-in-HIVE-failing/m-p/132765#M27259</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-05-05T03:29:03Z</dc:date>
    </item>
    <item>
      <title>Re: insert in HIVE failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-in-HIVE-failing/m-p/132766#M27260</link>
      <description>&lt;P&gt;hi Manjee   how can I change the permission of a directory that does not exist?&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 03:49:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-in-HIVE-failing/m-p/132766#M27260</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2016-05-05T03:49:07Z</dc:date>
    </item>
    <item>
      <title>Re: insert in HIVE failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-in-HIVE-failing/m-p/132767#M27261</link>
      <description>&lt;P&gt;
[hdfs@ip-172-31-11-180 ~]$ hdfs dfs -chown -R hadoop /user/hadoop
chown: `/user/hadoop': No such file or directory
[hdfs@ip-172-31-11-180 ~]$&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 03:59:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-in-HIVE-failing/m-p/132767#M27261</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2016-05-05T03:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: insert in HIVE failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-in-HIVE-failing/m-p/132768#M27262</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/10115/sahmad43.html"&gt;@Sami Ahmad &lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please create home directory for hadoop user in HDFS first. It seems it does not exist. Please run following commands in the given sequence and try again running your hive command:&lt;/P&gt;&lt;PRE&gt;su - hdfs
hdfs dfs -mkdir /user/hadoop
hdfs dfs -chown -R hadoop /user/hadoop
exit&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 May 2016 04:08:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-in-HIVE-failing/m-p/132768#M27262</guid>
      <dc:creator>manish1</dc:creator>
      <dc:date>2016-05-05T04:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: insert in HIVE failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-in-HIVE-failing/m-p/132769#M27263</link>
      <description>&lt;P&gt;I created the directory and granted permissions but now it just hangs  . all services are up except knox.&lt;/P&gt;&lt;P&gt;
[hdfs@ip-172-31-11-180 ~]$ beeline
&lt;/P&gt;&lt;P&gt;WARNING: Use "yarn jar" to launch YARN applications.
Beeline version 1.2.1.2.3.4.0-3485 by Apache Hive
beeline&amp;gt; !connect jdbc:hive2://SecondaryMaster:10000
Connecting to jdbc:hive2://SecondaryMaster:10000
Enter username for jdbc:hive2://SecondaryMaster:10000: hadoop
&lt;/P&gt;&lt;P&gt;Enter password for jdbc:hive2://SecondaryMaster:10000: ******
&lt;/P&gt;&lt;P&gt;Connected to: Apache Hive (version 1.2.1.2.3.4.0-3485)
Driver: Hive JDBC (version 1.2.1.2.3.4.0-3485)
Transaction isolation: TRANSACTION_REPEATABLE_READ
0: jdbc:hive2://SecondaryMaster:10000&amp;gt; INSERT INTO customers (id, firstname, lastname) VALUES (1, 'John', 'Smith');
INFO  : Tez session hasn't been created yet. Opening session
INFO  : &lt;/P&gt;&lt;P&gt;Tez session hasn't been created yet. Opening session
INFO  : &lt;/P&gt;&lt;P&gt;Tez session hasn't been created yet. Opening session&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 04:28:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-in-HIVE-failing/m-p/132769#M27263</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2016-05-05T04:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: insert in HIVE failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-in-HIVE-failing/m-p/132770#M27264</link>
      <description>&lt;P&gt;it has created the HIVE file in the newly created directory so its doing something &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[hdfs@ip-172-31-11-180 ~]$ hdfs dfs -ls /user&lt;/P&gt;&lt;P&gt;drwxr-xr-x  - hadoop  hdfs  0 2016-05-04 17:14 /user/hadoop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[hdfs@ip-172-31-11-180 ~]$ hdfs dfs -ls /user/hadoop
Found 1 items
drwxr-xr-x  - hadoop hdfs  0 2016-05-04 17:14 /user/hadoop/.hiveJars&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 04:33:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-in-HIVE-failing/m-p/132770#M27264</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2016-05-05T04:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: insert in HIVE failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-in-HIVE-failing/m-p/132771#M27265</link>
      <description>&lt;P&gt;Please exit out from hdfs user also before running the query. It seems you ran it using hdfs user instead of hadoop user.&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 04:42:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-in-HIVE-failing/m-p/132771#M27265</guid>
      <dc:creator>manish1</dc:creator>
      <dc:date>2016-05-05T04:42:38Z</dc:date>
    </item>
    <item>
      <title>Re: insert in HIVE failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-in-HIVE-failing/m-p/132772#M27266</link>
      <description>&lt;P&gt;hadoop user i used in the connect command was a user i created in Ambari ,  does it already get created on  Linux?&lt;/P&gt;&lt;P&gt;i was running hdfs commands under hdfs and hive commands under hive Linux account.&lt;/P&gt;&lt;P&gt; please advise me on how to properly run each application .should i use a common account or indivisual  accounts for each  application?&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 09:55:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-in-HIVE-failing/m-p/132772#M27266</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2016-05-05T09:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: insert in HIVE failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-in-HIVE-failing/m-p/132773#M27267</link>
      <description>&lt;P&gt;I need help  , HIVE still not working , INSERT command just hangs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[root@ip-172-31-11-180 ~]# su - hive
[hive@ip-172-31-11-180 ~]$ id
uid=501(hive) gid=502(hadoop) groups=502(hadoop) context=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023
[hive@ip-172-31-11-180 ~]$ beeline
WARNING: Use "yarn jar" to launch YARN applications.
Beeline version 1.2.1.2.3.4.0-3485 by Apache Hive
beeline&amp;gt; !connect jdbc:hive2://SecondaryMaster:10000
Connecting to jdbc:hive2://SecondaryMaster:10000
Enter username for jdbc:hive2://SecondaryMaster:10000: hadoop
Enter password for jdbc:hive2://SecondaryMaster:10000: ******
Connected to: Apache Hive (version 1.2.1.2.3.4.0-3485)
Driver: Hive JDBC (version 1.2.1.2.3.4.0-3485)
Transaction isolation: TRANSACTION_REPEATABLE_READ
0: jdbc:hive2://SecondaryMaster:10000&amp;gt; INSERT INTO person (id, firstname, lastname) VALUES (1, 'John', 'Smith');
INFO  : Tez session hasn't been created yet. Opening session&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 21:45:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-in-HIVE-failing/m-p/132773#M27267</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2016-05-05T21:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: insert in HIVE failing</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-in-HIVE-failing/m-p/132774#M27268</link>
      <description>&lt;P&gt;I can see the table definitions so it must be able to make database connection ,but insert hangs&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;0: jdbc:hive2://SecondaryMaster:10000&amp;gt; show tables;
+------------+--+
|  tab_name  |
+------------+--+
| customers  |
| person  |
+------------+--+
2 rows selected (0.063 seconds)
0: jdbc:hive2://SecondaryMaster:10000&amp;gt; describe person;
+------------+------------+----------+--+
|  col_name  | data_type  | comment  |
+------------+------------+----------+--+
| id  | int  |  |
| firstname  | string  |  |
| lastname  | string  |  |
+------------+------------+----------+--+
3 rows selected (0.091 seconds)
0: jdbc:hive2://SecondaryMaster:10000&amp;gt; INSERT INTO person (id, firstname, lastname) VALUES (1, 'John', 'Smith');
INFO  : Tez session hasn't been created yet. Opening session&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2016 22:02:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/insert-in-HIVE-failing/m-p/132774#M27268</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2016-05-05T22:02:30Z</dc:date>
    </item>
  </channel>
</rss>

