You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by gn...@apache.org on 2017/01/24 14:58:33 UTC

ambari git commit: AMBARI-19689. Error on Files view-SIMPLE authentication is not enabled. (gauravn7)

Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 ced9e1eb9 -> 2741265f9


AMBARI-19689. Error on Files view-SIMPLE authentication is not enabled. (gauravn7)


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

Branch: refs/heads/branch-2.5
Commit: 2741265f9bb7c568b90a88191d9dc325b937e1e0
Parents: ced9e1e
Author: Gaurav Nagar <gr...@gmail.com>
Authored: Tue Jan 24 20:28:17 2017 +0530
Committer: Gaurav Nagar <gr...@gmail.com>
Committed: Tue Jan 24 20:28:17 2017 +0530

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


http://git-wip-us.apache.org/repos/asf/ambari/blob/2741265f/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 887af42..7e174a7 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
@@ -307,10 +307,10 @@ public class ConfigurationBuilder {
    * @throws HdfsApiException if configuration parsing failed
    */
   public Configuration buildConfig() throws HdfsApiException {
-    parseProperties();
-    setAuthParams(buildAuthenticationConfig());
     copyPropertiesBySite(CORE_SITE);
     copyPropertiesBySite(HDFS_SITE);
+    parseProperties();
+    setAuthParams(buildAuthenticationConfig());
 
     String umask = context.getProperties().get(UMASK_INSTANCE_PROPERTY);
     if (umask != null && !umask.isEmpty()) conf.set(UMASK_CLUSTER_PROPERTY, umask);