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.

What the correct way to connect to HBase user admin? I think changing shell from /bin/false to another is not good practice.

What the correct way to connect to HBase user admin? I think changing shell from /bin/false to another is not good practice.

Explorer

[root@scaj43bda05 1238-hbase-MASTER]# cat /etc/passwd | grep hbase
hbase:x:483:480:HBase:/var/lib/hbase:/bin/false

 


[root@scaj43bda05 1238-hbase-MASTER]# vi /etc/passwd
[root@scaj43bda05 1238-hbase-MASTER]# sudo su hbase -l
[hbase@scaj43bda05 ~]$ cat /etc/passwd | grep hbase
hbase:x:483:480:HBase:/var/lib/hbase:/bin/bash
[hbase@scaj43bda05 ~]$

 

Should we change it to /bin/bash

 

 

1 REPLY 1
Highlighted

Re: What the correct way to connect to HBase user admin? I think changing shell from /bin/false to another is not good practice.

Mentor

@pra_big 

hbase user is the admin user of hbase one connects to a running instance of HBase using the hbase shell command, located in the bin/ directory of your HBase install. Here the version information that is printed when you start HBase Shell has been omitted. The HBase Shell prompt ends with a > character.

As hbase user

$ ./bin/hbase shell
hbase(main):001:0>

All the below methods will give you access to the HBase shell as the admin user [hbase]

If you have root access

# su - hbase
It will give you the same above

If you have sudo privileges

# sudo su hbase -l

I don't see the reason for changing to bash or didn't I understand your question well?

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