Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

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

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

1 ACCEPTED SOLUTION

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

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"

.

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.