Support Questions

Find answers, ask questions, and share your expertise

su hive password - incorrect

avatar
Contributor

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

avatar
Master 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

avatar
Master 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'

avatar
Contributor

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.

avatar
Master Guru

@Nic Hopper - You are most welcome! Happy Hadooping!! 🙂