Repository: ambari
Updated Branches:
  refs/heads/trunk 30eb73a76 -> 59f9ab216


AMBARI-20354: Files View: In non-HA environment, Files view executes with error 
when List of NameNodes property is cleared (sangeetar)


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

Branch: refs/heads/trunk
Commit: 59f9ab216591983cc4dc1054e5a073cb9ccf91c9
Parents: 30eb73a
Author: Sangeeta Ravindran <sangee...@apache.org>
Authored: Thu Apr 27 10:18:38 2017 -0700
Committer: Sangeeta Ravindran <sangee...@apache.org>
Committed: Thu Apr 27 10:18:38 2017 -0700

----------------------------------------------------------------------
 .../org/apache/ambari/view/utils/hdfs/ConfigurationBuilder.java   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/59f9ab21/contrib/views/utils/src/main/java/org/apache/ambari/view/utils/hdfs/ConfigurationBuilder.java
----------------------------------------------------------------------
diff --git 
a/contrib/views/utils/src/main/java/org/apache/ambari/view/utils/hdfs/ConfigurationBuilder.java
 
b/contrib/views/utils/src/main/java/org/apache/ambari/view/utils/hdfs/ConfigurationBuilder.java
index 714e229..df0fd96 100644
--- 
a/contrib/views/utils/src/main/java/org/apache/ambari/view/utils/hdfs/ConfigurationBuilder.java
+++ 
b/contrib/views/utils/src/main/java/org/apache/ambari/view/utils/hdfs/ConfigurationBuilder.java
@@ -280,7 +280,8 @@ public class ConfigurationBuilder {
     String nameservice = uri.getHost();
     String namenodeIDs = getProperty(HDFS_SITE, 
String.format(HA_NAMENODES_CLUSTER_PROPERTY, nameservice),
       HA_NAMENODES_INSTANCE_PROPERTY);
-    return namenodeIDs != null;
+    LOG.debug("namenodeIDs " + namenodeIDs);
+    return !StringUtils.isEmpty(namenodeIDs);
   }
 
   private static boolean hasPort(String url) throws URISyntaxException {

Reply via email to