Support Questions

Find answers, ask questions, and share your expertise

hbase user iis currently not available.

avatar
Explorer

1 I use CDH4.4.0 and CM4.4.7 to make my hadoop cluster.

 

2 I Sing in the hbase cluster mathine,the execute the commond 'su hbase'

 

3 the result is :This account is currently not available.

 

4 What`s the reason for this ? for safty?

1 ACCEPTED SOLUTION

avatar
Mentor
You receive the error because the 'hbase' user does not have a login shell assigned to it.

You can set a shell for the 'hbase' user on the machine, to allow direct 'su' based login to that user, by following http://www.cyberciti.biz/faq/howto-set-bash-as-your-default-shell/

However, if your goal is to simply use the 'hbase' user for running superuser level commands, we instead recommend using 'sudo' style commands. For example:

~> sudo -u hbase hbase hbck
~> sudo -u hbase hbase shell

You can also invoke a shell as the 'hbase' user in certain cases, via:

~> sudo -u hbase /bin/bash

View solution in original post

1 REPLY 1

avatar
Mentor
You receive the error because the 'hbase' user does not have a login shell assigned to it.

You can set a shell for the 'hbase' user on the machine, to allow direct 'su' based login to that user, by following http://www.cyberciti.biz/faq/howto-set-bash-as-your-default-shell/

However, if your goal is to simply use the 'hbase' user for running superuser level commands, we instead recommend using 'sudo' style commands. For example:

~> sudo -u hbase hbase hbck
~> sudo -u hbase hbase shell

You can also invoke a shell as the 'hbase' user in certain cases, via:

~> sudo -u hbase /bin/bash