ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gna...@apache.org
Subject ambari git commit: AMBARI-18218. File View throws IllegalArguementException post Ambari 2.4.0.0 upgrade.(gauravn7)
Date Sun, 21 Aug 2016 10:24:36 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.4 85ba0ef64 -> 5401d800b


AMBARI-18218. File View throws IllegalArguementException post Ambari 2.4.0.0 upgrade.(gauravn7)


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

Branch: refs/heads/branch-2.4
Commit: 5401d800bab9752648d65f605446e9274617ddbd
Parents: 85ba0ef
Author: Gaurav Nagar <gnagar@hortonworks.com>
Authored: Sun Aug 21 15:54:02 2016 +0530
Committer: Gaurav Nagar <gnagar@hortonworks.com>
Committed: Sun Aug 21 15:54:02 2016 +0530

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/5401d800/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 1c17e6a..d505e9a 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
@@ -21,6 +21,7 @@ package org.apache.ambari.view.utils.hdfs;
 import org.apache.ambari.view.ViewContext;
 import org.apache.ambari.view.utils.ambari.AmbariApi;
 import org.apache.ambari.view.utils.ambari.NoClusterAssociatedException;
+import org.apache.commons.lang3.StringUtils;
 import org.apache.hadoop.conf.Configuration;
 import org.apache.hadoop.fs.LocalFileSystem;
 import org.apache.hadoop.fs.azure.NativeAzureFileSystem;
@@ -224,7 +225,9 @@ public class ConfigurationBuilder {
 
   private String copyClusterProperty(String propertyName, String instancePropertyName) {
     String value = getProperty(HDFS_SITE, propertyName, instancePropertyName);
-    conf.set(propertyName, value);
+    if (!StringUtils.isEmpty(value)) {
+      conf.set(propertyName, value);
+    }
     LOG.debug("set " + propertyName + " = " + value);
     return value;
   }


Mime
View raw message