Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-3670

WebHDFS have a "not-enabled" return code instead of using file not found

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Not a Problem
    • Affects Version/s: 1.0.0, 2.0.0-alpha
    • Fix Version/s: None
    • Component/s: webhdfs
    • Labels:
      None
    • Target Version/s:

      Description

      WebHDFS (and HttpFs if it doesn't already) should have a return code indicating they are not enabled. Currently you get eg a file not found if webhdfs is not enabled which isn't intuitive.

      hadoop-3.0.0-SNAPSHOT $ ./bin/hadoop fs -get webhdfs://localhost:50070/user/eli/temp.json
      get: Unexpected HTTP response: code=404 != 200, op=GETFILESTATUS, message=Not Found
      

        Activity

          People

          • Assignee:
            Tsz Wo Nicholas Sze
            Reporter:
            Eli Collins
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development