You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ao...@apache.org on 2015/05/12 14:31:48 UTC

ambari git commit: AMBARI-11028. Slider View. 'Null' in error-message (aonishuk)

Repository: ambari
Updated Branches:
  refs/heads/trunk a1b19ea27 -> 3b0b2e41d


AMBARI-11028. Slider View. 'Null' in error-message (aonishuk)


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

Branch: refs/heads/trunk
Commit: 3b0b2e41dc40d6621df18daefc1e8a7f2466cbed
Parents: a1b19ea
Author: Andrew Onishuk <ao...@hortonworks.com>
Authored: Tue May 12 15:31:37 2015 +0300
Committer: Andrew Onishuk <ao...@hortonworks.com>
Committed: Tue May 12 15:31:37 2015 +0300

----------------------------------------------------------------------
 .../ambari/view/slider/SliderAppsViewControllerImpl.java    | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/3b0b2e41/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsViewControllerImpl.java
----------------------------------------------------------------------
diff --git a/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsViewControllerImpl.java b/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsViewControllerImpl.java
index c95406e..0a540d2 100644
--- a/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsViewControllerImpl.java
+++ b/contrib/views/slider/src/main/java/org/apache/ambari/view/slider/SliderAppsViewControllerImpl.java
@@ -371,8 +371,15 @@ public class SliderAppsViewControllerImpl implements SliderAppsViewController {
             }
           }, hadoopConfigs);
         } catch (IOException e) {
-          String message = "Slider View requires access to user's home directory in HDFS to proceed. Contact your administrator to create the home directory. ("
+          String message;
+          if (hadoopConfigs.get("security_enabled").toLowerCase().equals("true")
+              && (getViewParameterValue(PARAM_VIEW_PRINCIPAL) == null
+              || getViewParameterValue(PARAM_VIEW_PRINCIPAL_KEYTAB) == null)) {
+            message = "Slider View requires access to user's home directory in HDFS to proceed. Please check the kerberos configs";
+          } else {
+          message = "Slider View requires access to user's home directory in HDFS to proceed. Contact your administrator to create the home directory. ("
               + e.getMessage() + ")";
+          }
           logger.warn(message, e);
           return new Validation(message);
         } catch (InterruptedException e) {