Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 ac6556642 -> a5f8a9033


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/a5f8a903
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/a5f8a903
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/a5f8a903

Branch: refs/heads/branch-2.5
Commit: a5f8a903340897a5d0b7369252f3849dec5f4c14
Parents: ac65566
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:24:47 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/a5f8a903/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