You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by al...@apache.org on 2017/06/08 16:02:56 UTC
ambari git commit: AMBARI-21184. When trying to Add Hiveserver2
service on a node, we just get a pop-up dialog box,
and then a spinning wheel. Unable to click "Confirm Add" (alexantonenko)
Repository: ambari
Updated Branches:
refs/heads/branch-2.5 f0226e0e5 -> 5ba0259e2
AMBARI-21184. When trying to Add Hiveserver2 service on a node, we just get a pop-up dialog box, and then a spinning wheel. Unable to click "Confirm Add" (alexantonenko)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/5ba0259e
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/5ba0259e
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/5ba0259e
Branch: refs/heads/branch-2.5
Commit: 5ba0259e2daceffc6507f6f61d591f16b4bda3e1
Parents: f0226e0
Author: Alex Antonenko <hi...@gmail.com>
Authored: Thu Jun 8 17:19:00 2017 +0300
Committer: Alex Antonenko <hi...@gmail.com>
Committed: Thu Jun 8 19:02:50 2017 +0300
----------------------------------------------------------------------
ambari-web/app/utils/config.js | 2 +-
ambari-web/test/utils/config_test.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/5ba0259e/ambari-web/app/utils/config.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/utils/config.js b/ambari-web/app/utils/config.js
index 88e2cf4..86b01ef 100644
--- a/ambari-web/app/utils/config.js
+++ b/ambari-web/app/utils/config.js
@@ -1268,7 +1268,7 @@ App.config = Em.Object.create({
getTempletonHiveHosts: function (value) {
var pattern = /thrift:\/\/.+:\d+/,
patternMatch = value.match(pattern);
- return patternMatch ? patternMatch[0].split('\\,') : value;
+ return patternMatch ? patternMatch[0].split('\\,') : [];
},
/**
http://git-wip-us.apache.org/repos/asf/ambari/blob/5ba0259e/ambari-web/test/utils/config_test.js
----------------------------------------------------------------------
diff --git a/ambari-web/test/utils/config_test.js b/ambari-web/test/utils/config_test.js
index ffedc23..8b1dbeb 100644
--- a/ambari-web/test/utils/config_test.js
+++ b/ambari-web/test/utils/config_test.js
@@ -1162,7 +1162,7 @@ describe('App.config', function () {
},
{
value: 'hive.metastore.local=false',
- result: 'hive.metastore.local=false',
+ result: [],
message: 'no hosts list'
}
];