Support Questions

Find answers, ask questions, and share your expertise
Announcements
Welcome to the upgraded Community! Read this blog to see What’s New!

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
Super 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
Super 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"

.

Labels