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

How to add basic HBase security?

Explorer

Hi All,

I have a little HBase cluster and a REST server which sends data to the HBase cluster.

However, it is now sending data by: /hbase-unsecure.

How could I enable the HBase cluster security by using /hbase-secure.

All data will be handled over by the REST server, how to enable HBase security only accept the data which has been sent from the REST server.

The REST server send SQL command to apache phoenix and apache phoenix insert data into HBase.

I just want a very basic username and password authentication.

Thanks,

Bin Ye

1 REPLY 1

Super Collaborator

In all the documentation on HBase security it is always configured with Kerberos, so if you need authorization I recommend to go for Kerberos.

But as the security is based on SASL, it might be possible to configure it for a simple user + password authentication (which will transfer password in plain text over the network!), so it might be working with a configuration like this (neither tested nor verified):

hbase.security.authentication: plain (in the docus it is always kerberos)

hbase.security.username: <<login>>

hbase.security.password: <<password>>

; ;