Reamer commented on a change in pull request #3713: [ZEPPELIN-4718] Fix 
Regression HDFS Notebook Storage
URL: https://github.com/apache/zeppelin/pull/3713#discussion_r402306000
 
 

 ##########
 File path: 
zeppelin-interpreter/src/main/java/org/apache/zeppelin/conf/ZeppelinConfiguration.java
 ##########
 @@ -602,6 +602,10 @@ public boolean isWindowsPath(String path){
     return path.matches("^[A-Za-z]:\\\\.*");
   }
 
+  public boolean isHdfsPath(String path){
+      return path.matches("^hdfs://.*");
+  }
+
 
 Review comment:
   Thanks for your feedback. I updated the code to the URI approach. I know the 
try/catch is not nice, but I think this solution is more future-proof.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to