Browse Source

AMBARI-8669. UI: Support Hive Metastore HA. Additional (alexantonenko)

Alex Antonenko 10 years ago
parent
commit
42f8d67dd4

+ 1 - 1
ambari-web/app/controllers/main/host/details.js

@@ -591,7 +591,7 @@ App.MainHostDetailsController = Em.Controller.extend({
     var hiveMSHosts = this.getHiveHosts();
 
     for (var i = 0; i < hiveMSHosts.length; i++) {
-      hiveMSHosts[i] = hiveMSHosts[i] + ":9083";
+      hiveMSHosts[i] = "thrift://" + hiveMSHosts[i] + ":9083";
     }
     data.items[0].properties['hive.metastore.uris'] = hiveMSHosts.join(',');
     App.ajax.send({

+ 1 - 1
ambari-web/app/models/service_config.js

@@ -487,7 +487,7 @@ App.ServiceConfigProperty = Ember.Object.extend({
         if (!portValue) return;
         if (portValue[1]) {
           for (var i = 0; i < hiveMSHosts.length; i++) {
-            hiveMSHostPort[i] = hiveMSHosts[i] + ":" + portValue[1];
+            hiveMSHostPort[i] = "thrift://" + hiveMSHosts[i] + ":" + portValue[1];
           }
         }
         this.setDefaultValue("(.*)", hiveMSHostPort);