HBASE-9482 Do not enforce secure Hadoop for secure HBase

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1521731 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2013-09-11 04:33:09 +00:00
parent 0bf0e20809
commit 49fc546051
2 changed files with 19 additions and 14 deletions

View File

@ -202,14 +202,11 @@ public abstract class User {
/**
* Returns whether or not secure authentication is enabled for HBase. Note that
* HBase security requires HDFS security to provide any guarantees, so this requires that
* both <code>hbase.security.authentication</code> and <code>hadoop.security.authentication</code>
* are set to <code>kerberos</code>.
* HBase security requires HDFS security to provide any guarantees, so it is
* recommended that secure HBase should run on secure HDFS.
*/
public static boolean isHBaseSecurityEnabled(Configuration conf) {
return "kerberos".equalsIgnoreCase(conf.get(HBASE_SECURITY_CONF_KEY)) &&
"kerberos".equalsIgnoreCase(
conf.get(CommonConfigurationKeys.HADOOP_SECURITY_AUTHENTICATION));
return "kerberos".equalsIgnoreCase(conf.get(HBASE_SECURITY_CONF_KEY));
}
/* Concrete implementations */

View File

@ -1027,4 +1027,12 @@ possible configurations would overwhelm and obscure the important.
HBASE-1936 for more details.
</description>
</property>
<property>
<name>hbase.security.authentication</name>
<value>simple</value>
<description>
Controls whether or not secure authentication is enabled for HBase.
Possible values are 'simple' (no authentication), and 'kerberos'.
</description>
</property>
</configuration>