Support Questions
Find answers, ask questions, and share your expertise

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

Accepted Solutions

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

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

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

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