Repository: ambari
Updated Branches:
  refs/heads/branch-2.4 b1f054b1a -> b07c01fe0


AMBARI-18585 Set _HOST for Hbase Master principal in Kerberos

enabled Ranger Hbase Plugin (Mugdha Varadkar via gautam)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/b07c01fe
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/b07c01fe
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/b07c01fe

Branch: refs/heads/branch-2.4
Commit: b07c01fe08abd605f336fbc2509af6fd997d68a0
Parents: b1f054b
Author: Gautam Borad <gau...@apache.org>
Authored: Thu Oct 13 17:14:08 2016 +0530
Committer: Gautam Borad <gau...@apache.org>
Committed: Sat Oct 15 10:25:23 2016 +0530

----------------------------------------------------------------------
 .../HBASE/0.96.0.2.0/package/scripts/params_linux.py             | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/b07c01fe/ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/params_linux.py
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/params_linux.py
 
b/ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/params_linux.py
index 49e4575..89731f2 100644
--- 
a/ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/params_linux.py
+++ 
b/ambari-server/src/main/resources/common-services/HBASE/0.96.0.2.0/package/scripts/params_linux.py
@@ -336,9 +336,7 @@ if has_ranger_admin:
   sql_connector_jar = ''
 
   if security_enabled:
-    hbase_master_hosts = default('/clusterHostInfo/hbase_master_hosts', [])
-    hbase_master_host = hbase_master_hosts[0] if len(hbase_master_hosts) > 0 
else 'localhost'
-    master_principal = 
config['configurations']['hbase-site']['hbase.master.kerberos.principal'].replace('_HOST',
 hbase_master_host)
+    master_principal = 
config['configurations']['hbase-site']['hbase.master.kerberos.principal']
 
   hbase_ranger_plugin_config = {
     'username': repo_config_username,

Reply via email to