Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-6640

[ Web HDFS ] Syntax for MKDIRS, CREATESYMLINK, and SETXATTR are given wrongly(missed webhdfs/v1).).

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.1
    • Fix Version/s: 2.6.0
    • Component/s: documentation, webhdfs
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      Need to correct the following :

      Make a Directory

      Submit a HTTP PUT request.
      curl -i -X PUT "http://<HOST>:<PORT>/<PATH>?op=MKDIRS[&permission=<OCTAL>]"

      Create a Symbolic Link

      Submit a HTTP PUT request.
      curl -i -X PUT "http://<HOST>:<PORT>/<PATH>?op=CREATESYMLINK
      &destination=<PATH>[&createParent=<true|false>]"

      webhdfs/v1 is missed.

      1. HDFS-6640.002.patch
        2 kB
        Stephen Chu
      2. HDFS-6640.001.patch
        1 kB
        Stephen Chu

        Activity

        Hide
        Stephen Chu added a comment -

        Thanks for finding this, Brahma!

        Attached a patch that adds the missing webhdfs/v1 to the MKDIRS and CREATESYMLINK commands.

        No unit tests because this is a doc change.

        Show
        Stephen Chu added a comment - Thanks for finding this, Brahma! Attached a patch that adds the missing webhdfs/v1 to the MKDIRS and CREATESYMLINK commands. No unit tests because this is a doc change.
        Hide
        Hadoop QA added a comment -

        +1 overall. Here are the results of testing the latest attachment
        http://issues.apache.org/jira/secure/attachment/12654604/HDFS-6640.001.patch
        against trunk revision .

        +1 @author. The patch does not contain any @author tags.

        +0 tests included. The patch appears to be a documentation patch that doesn't require tests.

        +1 javac. The applied patch does not increase the total number of javac compiler warnings.

        +1 javadoc. There were no new javadoc warning messages.

        +1 eclipse:eclipse. The patch built with eclipse:eclipse.

        +1 findbugs. The patch does not introduce any new Findbugs (version 1.3.9) warnings.

        +1 release audit. The applied patch does not increase the total number of release audit warnings.

        +1 core tests. The patch passed unit tests in hadoop-hdfs-project/hadoop-hdfs.

        +1 contrib tests. The patch passed contrib unit tests.

        Test results: https://builds.apache.org/job/PreCommit-HDFS-Build/7290//testReport/
        Console output: https://builds.apache.org/job/PreCommit-HDFS-Build/7290//console

        This message is automatically generated.

        Show
        Hadoop QA added a comment - +1 overall . Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12654604/HDFS-6640.001.patch against trunk revision . +1 @author . The patch does not contain any @author tags. +0 tests included . The patch appears to be a documentation patch that doesn't require tests. +1 javac . The applied patch does not increase the total number of javac compiler warnings. +1 javadoc . There were no new javadoc warning messages. +1 eclipse:eclipse . The patch built with eclipse:eclipse. +1 findbugs . The patch does not introduce any new Findbugs (version 1.3.9) warnings. +1 release audit . The applied patch does not increase the total number of release audit warnings. +1 core tests . The patch passed unit tests in hadoop-hdfs-project/hadoop-hdfs. +1 contrib tests . The patch passed contrib unit tests. Test results: https://builds.apache.org/job/PreCommit-HDFS-Build/7290//testReport/ Console output: https://builds.apache.org/job/PreCommit-HDFS-Build/7290//console This message is automatically generated.
        Hide
        Stephen Chu added a comment -

        I noticed that the SETXATTR command is incorrect as well.

        It has an extraneous "op="

        curl -i -X PUT "http://<HOST>:<PORT>/webhdfs/v1/<PATH>?op=op=SETXATTR
        

        Updating a patch to fix this.

        Show
        Stephen Chu added a comment - I noticed that the SETXATTR command is incorrect as well. It has an extraneous "op=" curl -i -X PUT "http: //<HOST>:<PORT>/webhdfs/v1/<PATH>?op=op=SETXATTR Updating a patch to fix this.
        Hide
        Hadoop QA added a comment -

        +1 overall. Here are the results of testing the latest attachment
        http://issues.apache.org/jira/secure/attachment/12655047/HDFS-6640.002.patch
        against trunk revision .

        +1 @author. The patch does not contain any @author tags.

        +0 tests included. The patch appears to be a documentation patch that doesn't require tests.

        +1 javac. The applied patch does not increase the total number of javac compiler warnings.

        +1 javadoc. There were no new javadoc warning messages.

        +1 eclipse:eclipse. The patch built with eclipse:eclipse.

        +1 findbugs. The patch does not introduce any new Findbugs (version 2.0.3) warnings.

        +1 release audit. The applied patch does not increase the total number of release audit warnings.

        +1 core tests. The patch passed unit tests in hadoop-hdfs-project/hadoop-hdfs.

        +1 contrib tests. The patch passed contrib unit tests.

        Test results: https://builds.apache.org/job/PreCommit-HDFS-Build/7325//testReport/
        Console output: https://builds.apache.org/job/PreCommit-HDFS-Build/7325//console

        This message is automatically generated.

        Show
        Hadoop QA added a comment - +1 overall . Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12655047/HDFS-6640.002.patch against trunk revision . +1 @author . The patch does not contain any @author tags. +0 tests included . The patch appears to be a documentation patch that doesn't require tests. +1 javac . The applied patch does not increase the total number of javac compiler warnings. +1 javadoc . There were no new javadoc warning messages. +1 eclipse:eclipse . The patch built with eclipse:eclipse. +1 findbugs . The patch does not introduce any new Findbugs (version 2.0.3) warnings. +1 release audit . The applied patch does not increase the total number of release audit warnings. +1 core tests . The patch passed unit tests in hadoop-hdfs-project/hadoop-hdfs. +1 contrib tests . The patch passed contrib unit tests. Test results: https://builds.apache.org/job/PreCommit-HDFS-Build/7325//testReport/ Console output: https://builds.apache.org/job/PreCommit-HDFS-Build/7325//console This message is automatically generated.
        Hide
        Akira AJISAKA added a comment -

        Looks good, +1 (non-binding).

        Show
        Akira AJISAKA added a comment - Looks good, +1 (non-binding).
        Hide
        Jing Zhao added a comment -

        +1 as well. I've committed this to trunk and branch-2. Thanks for the fix, Stephen Chu! Thanks for the review, Akira AJISAKA!

        Show
        Jing Zhao added a comment - +1 as well. I've committed this to trunk and branch-2. Thanks for the fix, Stephen Chu ! Thanks for the review, Akira AJISAKA !
        Hide
        Hudson added a comment -

        FAILURE: Integrated in Hadoop-trunk-Commit #5867 (See https://builds.apache.org/job/Hadoop-trunk-Commit/5867/)
        HDFS-6640. Syntax for MKDIRS, CREATESYMLINK, and SETXATTR are given wrongly in WebHdfs document (missed webhdfs/v1). Contributed by Stephen Chu. (jing9: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1609603)

        • /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
        • /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/site/apt/WebHDFS.apt.vm
        Show
        Hudson added a comment - FAILURE: Integrated in Hadoop-trunk-Commit #5867 (See https://builds.apache.org/job/Hadoop-trunk-Commit/5867/ ) HDFS-6640 . Syntax for MKDIRS, CREATESYMLINK, and SETXATTR are given wrongly in WebHdfs document (missed webhdfs/v1). Contributed by Stephen Chu. (jing9: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1609603 ) /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/site/apt/WebHDFS.apt.vm
        Hide
        Stephen Chu added a comment -

        Thank you, Akira and Jing!

        Show
        Stephen Chu added a comment - Thank you, Akira and Jing!
        Hide
        Hudson added a comment -

        FAILURE: Integrated in Hadoop-Yarn-trunk #610 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/610/)
        HDFS-6640. Syntax for MKDIRS, CREATESYMLINK, and SETXATTR are given wrongly in WebHdfs document (missed webhdfs/v1). Contributed by Stephen Chu. (jing9: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1609603)

        • /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
        • /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/site/apt/WebHDFS.apt.vm
        Show
        Hudson added a comment - FAILURE: Integrated in Hadoop-Yarn-trunk #610 (See https://builds.apache.org/job/Hadoop-Yarn-trunk/610/ ) HDFS-6640 . Syntax for MKDIRS, CREATESYMLINK, and SETXATTR are given wrongly in WebHdfs document (missed webhdfs/v1). Contributed by Stephen Chu. (jing9: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1609603 ) /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/site/apt/WebHDFS.apt.vm
        Hide
        Hudson added a comment -

        FAILURE: Integrated in Hadoop-Mapreduce-trunk #1828 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1828/)
        HDFS-6640. Syntax for MKDIRS, CREATESYMLINK, and SETXATTR are given wrongly in WebHdfs document (missed webhdfs/v1). Contributed by Stephen Chu. (jing9: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1609603)

        • /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
        • /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/site/apt/WebHDFS.apt.vm
        Show
        Hudson added a comment - FAILURE: Integrated in Hadoop-Mapreduce-trunk #1828 (See https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1828/ ) HDFS-6640 . Syntax for MKDIRS, CREATESYMLINK, and SETXATTR are given wrongly in WebHdfs document (missed webhdfs/v1). Contributed by Stephen Chu. (jing9: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1609603 ) /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/site/apt/WebHDFS.apt.vm
        Hide
        Hudson added a comment -

        FAILURE: Integrated in Hadoop-Hdfs-trunk #1801 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/1801/)
        HDFS-6640. Syntax for MKDIRS, CREATESYMLINK, and SETXATTR are given wrongly in WebHdfs document (missed webhdfs/v1). Contributed by Stephen Chu. (jing9: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1609603)

        • /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
        • /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/site/apt/WebHDFS.apt.vm
        Show
        Hudson added a comment - FAILURE: Integrated in Hadoop-Hdfs-trunk #1801 (See https://builds.apache.org/job/Hadoop-Hdfs-trunk/1801/ ) HDFS-6640 . Syntax for MKDIRS, CREATESYMLINK, and SETXATTR are given wrongly in WebHdfs document (missed webhdfs/v1). Contributed by Stephen Chu. (jing9: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1609603 ) /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/site/apt/WebHDFS.apt.vm

          People

          • Assignee:
            Stephen Chu
            Reporter:
            Brahma Reddy Battula
          • Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development