Support Questions

Find answers, ask questions, and share your expertise

How to start HIVE shell? Getting issues while starting hive shell.

avatar

hive.png Please find the attached snapshot to see the issue. Thanks!

1 ACCEPTED SOLUTION

avatar
Master Mentor

@sudhir reddy

Can you try switching to "hive" user and then run the hive command?

# su - hive
# hive

.

Or please make sure to have the "/user/root" directory created in your HDFS.

# su - hdfs -c "hdfs dfs -mkdir /user/root"
# su - hdfs -c "hdfs dfs -chown root:hadoop /user/root"

.

View solution in original post

1 REPLY 1

avatar
Master Mentor

@sudhir reddy

Can you try switching to "hive" user and then run the hive command?

# su - hive
# hive

.

Or please make sure to have the "/user/root" directory created in your HDFS.

# su - hdfs -c "hdfs dfs -mkdir /user/root"
# su - hdfs -c "hdfs dfs -chown root:hadoop /user/root"

.