Support Questions

Find answers, ask questions, and share your expertise

Unable to run Hive query through putty

avatar
Explorer

Hi Team,

We are trying to insert data into Hive QL , however it's failing.

 

Error message as under :

 

 

The error message is as under 

 

ERROR : Failed to execute tez graph.
java.io.IOException: The ownership on the staging directory hdfs://<OneFSShare>.dev.cds:8020/tmp/hive/<hive_user>/_tez_session_dir/f8ad4086-ef7b-4194-a050-d15dba6913ca is not as expected. It is owned by root. The directory must be owned by the submitter <hive_user> or by <hive_user>

 

Pls suggest.

 

The following folder is owned by root instead of <hive-user>

hdfs://<OneFSShare>.dev.cds:8020/tmp/hive/<hive_user>/_tez_session_dir/f8ad4086-ef7b-4194-a050-d15dba6913ca 

 

 

20 REPLIES 20

avatar
Explorer

Hi @Shelton,

 

We have disabled ranger authorization in Ambari & allow to run hive as end user instead of hive user.

Still hiveserver2 is not coming up.

 

2020-03-26 05:36:05,838 - call['/usr/hdp/current/zookeeper-client/bin/zkCli.sh -server <master node>:2181,<datanode1>:2181,<data node3>:2181 ls /hiveserver2 | grep 'serverUri=''] {} 2020-03-26 05:36:06,497 - call returned (1, 'Node does not exist: /hiveserver2') 2020-03-26 05:36:06,498 - Will retry 1 time(s), caught exception: ZooKeeper node /hiveserver2 is not ready yet. Sleeping for 10 sec(s)

 

 

Any clue on this ?