You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ja...@apache.org on 2016/05/05 18:28:31 UTC
ambari git commit: AMBARI-16237: PXF alert: change the message to
make it more meaningful when both namenodes are down on Secured HA cluster.
Repository: ambari
Updated Branches:
refs/heads/trunk 1770820a7 -> be7f69625
AMBARI-16237: PXF alert: change the message to make it more meaningful when both namenodes are down on Secured HA cluster.
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/be7f6962
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/be7f6962
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/be7f6962
Branch: refs/heads/trunk
Commit: be7f69625e354123facf0df369a29a3da85462ec
Parents: 1770820
Author: Jun Aoki <ja...@apache.org>
Authored: Thu May 5 11:28:20 2016 -0700
Committer: Jun Aoki <ja...@apache.org>
Committed: Thu May 5 11:28:20 2016 -0700
----------------------------------------------------------------------
.../libraries/functions/namenode_ha_utils.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/be7f6962/ambari-common/src/main/python/resource_management/libraries/functions/namenode_ha_utils.py
----------------------------------------------------------------------
diff --git a/ambari-common/src/main/python/resource_management/libraries/functions/namenode_ha_utils.py b/ambari-common/src/main/python/resource_management/libraries/functions/namenode_ha_utils.py
index ee16c9b..919ccb5 100644
--- a/ambari-common/src/main/python/resource_management/libraries/functions/namenode_ha_utils.py
+++ b/ambari-common/src/main/python/resource_management/libraries/functions/namenode_ha_utils.py
@@ -17,7 +17,6 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
'''
-from resource_management.libraries.script import UnknownConfiguration
from resource_management.libraries.functions.is_empty import is_empty
from resource_management.libraries.functions.format import format
from resource_management.libraries.functions.jmx import get_value_from_jmx
@@ -140,8 +139,8 @@ def get_active_namenode(hdfs_site, security_enabled, run_user):
active_namenodes = get_namenode_states(hdfs_site, security_enabled, run_user)[0]
if active_namenodes:
return active_namenodes[0]
- else:
- return UnknownConfiguration('fs_root')
+
+ raise Fail('No active NameNode was found.')
def get_property_for_active_namenode(hdfs_site, property_name, security_enabled, run_user):
"""