瀏覽代碼

HUE-5436 [fb] Fail elegantly if CHECKACCESS is not supported and returns a 400

Romain Rigaux 9 年之前
父節點
當前提交
88dd96aa43
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/libs/hadoop/src/hadoop/fs/webhdfs.py

+ 1 - 1
desktop/libs/hadoop/src/hadoop/fs/webhdfs.py

@@ -587,7 +587,7 @@ class WebHdfs(Hdfs):
     try:
       return self._root.get(path, params)
     except WebHdfsException, ex:
-      if ex.code == 500:
+      if ex.code == 500 or ex.code == 400:
         LOG.warn('Failed to check access to path %s, CHECKACCESS operation may not be supported.' % path)
         return None
       else: