Repository: ambari
Updated Branches:
  refs/heads/trunk 0844d54ed -> 43229ade9


AMBARI-7838. Slider View: Provide better message when HDFS user home is not 
accessible (srimanth)


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

Branch: refs/heads/trunk
Commit: 43229ade9530744f22c58dc0cb210bdf6cb47719
Parents: 0844d54
Author: Srimanth Gunturi <[email protected]>
Authored: Fri Oct 17 10:23:11 2014 -0700
Committer: Srimanth Gunturi <[email protected]>
Committed: Fri Oct 17 10:23:11 2014 -0700

----------------------------------------------------------------------
 .../ambari/view/slider/SliderAppsViewControllerImpl.java     | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/43229ade/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 ad3acd0..6881ad7 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
@@ -345,16 +345,18 @@ public class SliderAppsViewControllerImpl implements 
SliderAppsViewController {
             }
           }, hadoopConfigs);
         } catch (IOException e) {
-          String message = "Error validating access to user home directory: " 
+ e.getMessage();
+          String 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) {
-          String message = "Error validating access to user home directory: " 
+ e.getMessage();
+          String 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);
         }
       } else {
-        return new Validation("Unknown filesystem location for verification");
+        return new Validation("Location of HDFS filesystem is unknown for 
verification. Please check the 'fs.defaultFS' config in core-site.xml");
       }
     }
     return null;

Reply via email to