AMBARI-20263. Knox default topology config is wrong for Hbase service (Sandeep 
More via smohanty)


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

Branch: refs/heads/branch-feature-AMBARI-12556
Commit: 7e624b55ccac6c04fa9caf5eddbb4aa9282fd473
Parents: 02eae2e
Author: Sumit Mohanty <[email protected]>
Authored: Tue Mar 14 15:37:14 2017 -0700
Committer: Sumit Mohanty <[email protected]>
Committed: Tue Mar 14 15:37:52 2017 -0700

----------------------------------------------------------------------
 .../common-services/KNOX/0.5.0.2.2/configuration/topology.xml | 2 +-
 .../KNOX/0.5.0.2.2/package/scripts/params_linux.py            | 7 ++++++-
 2 files changed, 7 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/7e624b55/ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/configuration/topology.xml
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/configuration/topology.xml
 
b/ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/configuration/topology.xml
index 3e56c3d..bf0ab8f 100644
--- 
a/ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/configuration/topology.xml
+++ 
b/ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/configuration/topology.xml
@@ -100,7 +100,7 @@
 
             &lt;service&gt;
                 &lt;role&gt;WEBHBASE&lt;/role&gt;
-                
&lt;url&gt;http://{{hbase_master_host}}:{{hbase_master_port}}&lt;/url&gt;
+                
&lt;url&gt;http://{{hbase_rest_server}}:{{hbase_rest_port}}&lt;/url&gt;
             &lt;/service&gt;
 
             &lt;service&gt;

http://git-wip-us.apache.org/repos/asf/ambari/blob/7e624b55/ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/params_linux.py
----------------------------------------------------------------------
diff --git 
a/ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/params_linux.py
 
b/ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/params_linux.py
index 8beb2c0..1224a9f 100644
--- 
a/ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/params_linux.py
+++ 
b/ambari-server/src/main/resources/common-services/KNOX/0.5.0.2.2/package/scripts/params_linux.py
@@ -211,13 +211,18 @@ if type(webhcat_server_hosts) is list:
 else:
   webhcat_server_host = webhcat_server_hosts
 
-hbase_master_port = default('/configurations/hbase-site/hbase.rest.port', 
"8080")
 hbase_master_hosts = default("/clusterHostInfo/hbase_master_hosts", None)
 if type(hbase_master_hosts) is list:
   hbase_master_host = hbase_master_hosts[0]
 else:
   hbase_master_host = hbase_master_hosts
 
+hbase_rest_port = default('/configurations/hbase-site/hbase.rest.port', 
"60080")
+hbase_rest_server = 
default('/configurations/hbase-site/hbase.rest.server.host', None)
+
+if hbase_rest_server is None:
+  hbase_rest_server = hbase_master_host
+
 oozie_server_hosts = default("/clusterHostInfo/oozie_server", None)
 if type(oozie_server_hosts) is list:
   oozie_server_host = oozie_server_hosts[0]

Reply via email to