Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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

avatar
New Member

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"

.