Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

su hive password - incorrect

Solved Go to solution

su hive password - incorrect

Explorer

Hi all,

I'm working my way through the tutorial

http://hortonworks.com/hadoop-tutorial/hello-world-an-introduction-to-hadoop-hcatalog-hive-and-pig/#...

I'm on section 2.2.10 Beeline – Command Shell

and I do the following;

1. Open Putty and connect to the server using maria_dev, this works fine

2. I then run su hive and I get asked for the password.

I'm confused as to who's password it wants, I've entered the root password,maria_dev's password but it keeps saying "su: incorrect password"

Any thoughts on where I've gone wrong? My only other option is to reset my VM and start over.

Any help would be hugely appreciated.

Thanks,

Nic

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: su hive password - incorrect

Super Guru

@Nic Hopper

You would need to switch to 'root' user in order to do su without password.

or you can try 'sudo su hive'

View solution in original post

3 REPLIES 3
Highlighted

Re: su hive password - incorrect

Super Guru

@Nic Hopper

You would need to switch to 'root' user in order to do su without password.

or you can try 'sudo su hive'

View solution in original post

Highlighted

Re: su hive password - incorrect

Explorer

Thanks, I did the sudo su hive got a bit of text and then got told maria_dev is not in the sudoers_file.

So now I just need to get maria_dev in there. Alternatively as you say, connecting as root allowed me to run su hive.

Thanks for your super fast reply.

Highlighted

Re: su hive password - incorrect

Super Guru

@Nic Hopper - You are most welcome! Happy Hadooping!! :)

Don't have an account?
Coming from Hortonworks? Activate your account here