[jira] [Commented] (HDFS-15376) Update the error about command line POST in httpfs documentation
[ https://issues.apache.org/jira/browse/HDFS-15376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17130167#comment-17130167 ] Hudson commented on HDFS-15376: --- SUCCESS: Integrated in Jenkins build Hadoop-trunk-Commit #18343 (See [https://builds.apache.org/job/Hadoop-trunk-Commit/18343/]) HDFS-15376. Update the error about command line POST in httpfs (ayushsaxena: rev 635e6a16d0f407eeec470f2d4d3303092961a177) * (edit) hadoop-hdfs-project/hadoop-hdfs-httpfs/src/site/markdown/index.md > Update the error about command line POST in httpfs documentation > > > Key: HDFS-15376 > URL: https://issues.apache.org/jira/browse/HDFS-15376 > Project: Hadoop HDFS > Issue Type: Improvement > Components: httpfs >Affects Versions: 3.2.1 >Reporter: bianqi >Assignee: bianqi >Priority: Major > Fix For: 3.4.0 > > Attachments: HDFS-15376.001.patch > > > In the official Hadoop documentation, there is an exception when executing > the following command. > {quote} {{curl -X POST > 'http://httpfs-host:14000/webhdfs/v1/user/foo/bar?op=MKDIRS=foo'}} > creates the HDFS {{/user/foo/bar}} directory. > {quote} > Command line returns results: > {quote} *{"RemoteException":{"message":"Invalid HTTP POST operation > [MKDIRS]","exception":"IOException","javaClassName":"java.io.IOException"}}* > {quote} > > I checked the source code and found that the way to create the file should > use PUT to submit the form. > I modified to execute the command in PUT mode and got the result as > follows > {quote} {{curl -X PUT > 'http://httpfs-host:14000/webhdfs/v1/user/foo/bar?op=MKDIRS=foo'}} > creates the HDFS {{/user/foo/bar}} directory. > {quote} > Command line returns results: > {"boolean":true} > . At the same time the folder is created successfully. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org
[jira] [Commented] (HDFS-15376) Update the error about command line POST in httpfs documentation
[ https://issues.apache.org/jira/browse/HDFS-15376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17130125#comment-17130125 ] Ayush Saxena commented on HDFS-15376: - Committed to trunk. Thanx [~bianqi] for the contribution and [~elgoiri] for the review!!! > Update the error about command line POST in httpfs documentation > > > Key: HDFS-15376 > URL: https://issues.apache.org/jira/browse/HDFS-15376 > Project: Hadoop HDFS > Issue Type: Improvement > Components: httpfs >Affects Versions: 3.2.1 >Reporter: bianqi >Assignee: bianqi >Priority: Major > Attachments: HDFS-15376.001.patch > > > In the official Hadoop documentation, there is an exception when executing > the following command. > {quote} {{curl -X POST > 'http://httpfs-host:14000/webhdfs/v1/user/foo/bar?op=MKDIRS=foo'}} > creates the HDFS {{/user/foo/bar}} directory. > {quote} > Command line returns results: > {quote} *{"RemoteException":{"message":"Invalid HTTP POST operation > [MKDIRS]","exception":"IOException","javaClassName":"java.io.IOException"}}* > {quote} > > I checked the source code and found that the way to create the file should > use PUT to submit the form. > I modified to execute the command in PUT mode and got the result as > follows > {quote} {{curl -X PUT > 'http://httpfs-host:14000/webhdfs/v1/user/foo/bar?op=MKDIRS=foo'}} > creates the HDFS {{/user/foo/bar}} directory. > {quote} > Command line returns results: > {"boolean":true} > . At the same time the folder is created successfully. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org
[jira] [Commented] (HDFS-15376) Update the error about command line POST in httpfs documentation
[ https://issues.apache.org/jira/browse/HDFS-15376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17126094#comment-17126094 ] Ayush Saxena commented on HDFS-15376: - +1 > Update the error about command line POST in httpfs documentation > > > Key: HDFS-15376 > URL: https://issues.apache.org/jira/browse/HDFS-15376 > Project: Hadoop HDFS > Issue Type: Improvement > Components: httpfs >Affects Versions: 3.2.1 >Reporter: bianqi >Assignee: bianqi >Priority: Major > Attachments: HDFS-15376.001.patch > > > In the official Hadoop documentation, there is an exception when executing > the following command. > {quote} {{curl -X POST > 'http://httpfs-host:14000/webhdfs/v1/user/foo/bar?op=MKDIRS=foo'}} > creates the HDFS {{/user/foo/bar}} directory. > {quote} > Command line returns results: > {quote} *{"RemoteException":{"message":"Invalid HTTP POST operation > [MKDIRS]","exception":"IOException","javaClassName":"java.io.IOException"}}* > {quote} > > I checked the source code and found that the way to create the file should > use PUT to submit the form. > I modified to execute the command in PUT mode and got the result as > follows > {quote} {{curl -X PUT > 'http://httpfs-host:14000/webhdfs/v1/user/foo/bar?op=MKDIRS=foo'}} > creates the HDFS {{/user/foo/bar}} directory. > {quote} > Command line returns results: > {"boolean":true} > . At the same time the folder is created successfully. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org
[jira] [Commented] (HDFS-15376) Update the error about command line POST in httpfs documentation
[ https://issues.apache.org/jira/browse/HDFS-15376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17117135#comment-17117135 ] Íñigo Goiri commented on HDFS-15376: +1 on [^HDFS-15376.001.patch]. > Update the error about command line POST in httpfs documentation > > > Key: HDFS-15376 > URL: https://issues.apache.org/jira/browse/HDFS-15376 > Project: Hadoop HDFS > Issue Type: Improvement > Components: httpfs >Affects Versions: 3.2.1 >Reporter: bianqi >Assignee: bianqi >Priority: Major > Attachments: HDFS-15376.001.patch > > > In the official Hadoop documentation, there is an exception when executing > the following command. > {quote} {{curl -X POST > 'http://httpfs-host:14000/webhdfs/v1/user/foo/bar?op=MKDIRS=foo'}} > creates the HDFS {{/user/foo/bar}} directory. > {quote} > Command line returns results: > {quote} *{"RemoteException":{"message":"Invalid HTTP POST operation > [MKDIRS]","exception":"IOException","javaClassName":"java.io.IOException"}}* > {quote} > > I checked the source code and found that the way to create the file should > use PUT to submit the form. > I modified to execute the command in PUT mode and got the result as > follows > {quote} {{curl -X PUT > 'http://httpfs-host:14000/webhdfs/v1/user/foo/bar?op=MKDIRS=foo'}} > creates the HDFS {{/user/foo/bar}} directory. > {quote} > Command line returns results: > {"boolean":true} > . At the same time the folder is created successfully. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org
[jira] [Commented] (HDFS-15376) Update the error about command line POST in httpfs documentation
[ https://issues.apache.org/jira/browse/HDFS-15376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17116921#comment-17116921 ] hemanthboyina commented on HDFS-15376: -- No , this is fine [~elgoiri] > Update the error about command line POST in httpfs documentation > > > Key: HDFS-15376 > URL: https://issues.apache.org/jira/browse/HDFS-15376 > Project: Hadoop HDFS > Issue Type: Improvement > Components: httpfs >Affects Versions: 3.2.1 >Reporter: bianqi >Assignee: bianqi >Priority: Major > Attachments: HDFS-15376.001.patch > > > In the official Hadoop documentation, there is an exception when executing > the following command. > {quote} {{curl -X POST > 'http://httpfs-host:14000/webhdfs/v1/user/foo/bar?op=MKDIRS=foo'}} > creates the HDFS {{/user/foo/bar}} directory. > {quote} > Command line returns results: > {quote} *{"RemoteException":{"message":"Invalid HTTP POST operation > [MKDIRS]","exception":"IOException","javaClassName":"java.io.IOException"}}* > {quote} > > I checked the source code and found that the way to create the file should > use PUT to submit the form. > I modified to execute the command in PUT mode and got the result as > follows > {quote} {{curl -X PUT > 'http://httpfs-host:14000/webhdfs/v1/user/foo/bar?op=MKDIRS=foo'}} > creates the HDFS {{/user/foo/bar}} directory. > {quote} > Command line returns results: > {"boolean":true} > . At the same time the folder is created successfully. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org
[jira] [Commented] (HDFS-15376) Update the error about command line POST in httpfs documentation
[ https://issues.apache.org/jira/browse/HDFS-15376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17116905#comment-17116905 ] Íñigo Goiri commented on HDFS-15376: [~hemanthboyina], as we are doing this, do you think we should extend anything else in the doc? > Update the error about command line POST in httpfs documentation > > > Key: HDFS-15376 > URL: https://issues.apache.org/jira/browse/HDFS-15376 > Project: Hadoop HDFS > Issue Type: Improvement > Components: httpfs >Affects Versions: 3.2.1 >Reporter: bianqi >Assignee: bianqi >Priority: Major > Attachments: HDFS-15376.001.patch > > > In the official Hadoop documentation, there is an exception when executing > the following command. > {quote} {{curl -X POST > 'http://httpfs-host:14000/webhdfs/v1/user/foo/bar?op=MKDIRS=foo'}} > creates the HDFS {{/user/foo/bar}} directory. > {quote} > Command line returns results: > {quote} *{"RemoteException":{"message":"Invalid HTTP POST operation > [MKDIRS]","exception":"IOException","javaClassName":"java.io.IOException"}}* > {quote} > > I checked the source code and found that the way to create the file should > use PUT to submit the form. > I modified to execute the command in PUT mode and got the result as > follows > {quote} {{curl -X PUT > 'http://httpfs-host:14000/webhdfs/v1/user/foo/bar?op=MKDIRS=foo'}} > creates the HDFS {{/user/foo/bar}} directory. > {quote} > Command line returns results: > {"boolean":true} > . At the same time the folder is created successfully. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org
[jira] [Commented] (HDFS-15376) Update the error about command line POST in httpfs documentation
[ https://issues.apache.org/jira/browse/HDFS-15376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17116736#comment-17116736 ] bianqi commented on HDFS-15376: --- In HDFS-11561 {quote}@@ -227,6 +227,24 @@ public void testHdfsAccess() throws Exception { @TestDir @TestJetty @TestHdfs + public void testMkdirs() throws Exception Unknown macro: \{+ createHttpFSServer(false);++ String user = HadoopUsersConfTestHelper.getHadoopUsers()[0];+ URL url = new URL(TestJettyHelper.getJettyURL(), MessageFormat.format(+ "/webhdfs/v1/tmp/sub-tmp?user.name={0} =MKDIRS", user)); + HttpURLConnection conn = (HttpURLConnection) url.openConnection(); +{color:#ff} conn.setRequestMethod("PUT");{color} + conn.connect(); + Assert.assertEquals(conn.getResponseCode(), HttpURLConnection.HTTP_OK); + + getStatus("/tmp/sub-tmp", "LISTSTATUS"); + } {quote} But the document uses http POST to execute the curl command {quote}-* `$ curl -X {color:#FF}POST{color} [http://httpfs-host:14000/webhdfs/v1/user/foo/bar?op=mkdirs]` creates the HDFS `/user/foo.bar` directory. {quote} {quote}+* `$ curl -X {color:#FF}POST{color} 'http://httpfs-host:14000/webhdfs/v1/user/foo/bar?op=MKDIRS=foo'` creates the HDFS `/user/foo/bar` directory. {quote} > Update the error about command line POST in httpfs documentation > > > Key: HDFS-15376 > URL: https://issues.apache.org/jira/browse/HDFS-15376 > Project: Hadoop HDFS > Issue Type: Improvement > Components: httpfs >Affects Versions: 3.2.1 >Reporter: bianqi >Assignee: bianqi >Priority: Major > Attachments: HDFS-15376.001.patch > > > In the official Hadoop documentation, there is an exception when executing > the following command. > {quote} {{curl -X POST > 'http://httpfs-host:14000/webhdfs/v1/user/foo/bar?op=MKDIRS=foo'}} > creates the HDFS {{/user/foo/bar}} directory. > {quote} > Command line returns results: > {quote} *{"RemoteException":{"message":"Invalid HTTP POST operation > [MKDIRS]","exception":"IOException","javaClassName":"java.io.IOException"}}* > {quote} > > I checked the source code and found that the way to create the file should > use PUT to submit the form. > I modified to execute the command in PUT mode and got the result as > follows > {quote} {{curl -X PUT > 'http://httpfs-host:14000/webhdfs/v1/user/foo/bar?op=MKDIRS=foo'}} > creates the HDFS {{/user/foo/bar}} directory. > {quote} > Command line returns results: > {"boolean":true} > . At the same time the folder is created successfully. -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org
[jira] [Commented] (HDFS-15376) Update the error about command line POST in httpfs documentation
[ https://issues.apache.org/jira/browse/HDFS-15376?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=17116425#comment-17116425 ] Hadoop QA commented on HDFS-15376: -- | (/) *{color:green}+1 overall{color}* | \\ \\ || Vote || Subsystem || Runtime || Comment || | {color:blue}0{color} | {color:blue} reexec {color} | {color:blue} 1m 24s{color} | {color:blue} Docker mode activated. {color} | || || || || {color:brown} Prechecks {color} || | {color:green}+1{color} | {color:green} dupname {color} | {color:green} 0m 0s{color} | {color:green} No case conflicting files found. {color} | | {color:blue}0{color} | {color:blue} markdownlint {color} | {color:blue} 0m 0s{color} | {color:blue} markdownlint was not available. {color} | | {color:green}+1{color} | {color:green} @author {color} | {color:green} 0m 0s{color} | {color:green} The patch does not contain any @author tags. {color} | || || || || {color:brown} trunk Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 21m 22s{color} | {color:green} trunk passed {color} | | {color:green}+1{color} | {color:green} mvnsite {color} | {color:green} 0m 32s{color} | {color:green} trunk passed {color} | | {color:green}+1{color} | {color:green} shadedclient {color} | {color:green} 37m 19s{color} | {color:green} branch has no errors when building and testing our client artifacts. {color} | || || || || {color:brown} Patch Compile Tests {color} || | {color:green}+1{color} | {color:green} mvninstall {color} | {color:green} 0m 21s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} mvnsite {color} | {color:green} 0m 27s{color} | {color:green} the patch passed {color} | | {color:green}+1{color} | {color:green} whitespace {color} | {color:green} 0m 1s{color} | {color:green} The patch has no whitespace issues. {color} | | {color:green}+1{color} | {color:green} shadedclient {color} | {color:green} 17m 6s{color} | {color:green} patch has no errors when building and testing our client artifacts. {color} | || || || || {color:brown} Other Tests {color} || | {color:green}+1{color} | {color:green} asflicense {color} | {color:green} 0m 28s{color} | {color:green} The patch does not generate ASF License warnings. {color} | | {color:black}{color} | {color:black} {color} | {color:black} 57m 39s{color} | {color:black} {color} | \\ \\ || Subsystem || Report/Notes || | Docker | ClientAPI=1.40 ServerAPI=1.40 base: https://builds.apache.org/job/PreCommit-HDFS-Build/29369/artifact/out/Dockerfile | | JIRA Issue | HDFS-15376 | | JIRA Patch URL | https://issues.apache.org/jira/secure/attachment/13004001/HDFS-15376.001.patch | | Optional Tests | dupname asflicense mvnsite markdownlint | | uname | Linux a0e9cf05f742 4.15.0-101-generic #102-Ubuntu SMP Mon May 11 10:07:26 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux | | Build tool | maven | | Personality | personality/hadoop.sh | | git revision | trunk / f43a152b972 | | Max. process+thread count | 307 (vs. ulimit of 5500) | | modules | C: hadoop-hdfs-project/hadoop-hdfs-httpfs U: hadoop-hdfs-project/hadoop-hdfs-httpfs | | Console output | https://builds.apache.org/job/PreCommit-HDFS-Build/29369/console | | versions | git=2.17.1 maven=3.6.0 | | Powered by | Apache Yetus 0.12.0 https://yetus.apache.org | This message was automatically generated. > Update the error about command line POST in httpfs documentation > > > Key: HDFS-15376 > URL: https://issues.apache.org/jira/browse/HDFS-15376 > Project: Hadoop HDFS > Issue Type: Improvement > Components: httpfs >Affects Versions: 3.2.1 >Reporter: bianqi >Assignee: bianqi >Priority: Major > Attachments: HDFS-15376.001.patch > > > In the official Hadoop documentation, there is an exception when executing > the following command. > {quote} {{curl -X POST > 'http://httpfs-host:14000/webhdfs/v1/user/foo/bar?op=MKDIRS=foo'}} > creates the HDFS {{/user/foo/bar}} directory. > {quote} > Command line returns results: > {quote} *{"RemoteException":{"message":"Invalid HTTP POST operation > [MKDIRS]","exception":"IOException","javaClassName":"java.io.IOException"}}* > {quote} > > I checked the source code and found that the way to create the file should > use PUT to submit the form. > I modified to execute the command in PUT mode and got the result as > follows > {quote} {{curl -X PUT > 'http://httpfs-host:14000/webhdfs/v1/user/foo/bar?op=MKDIRS=foo'}} > creates the HDFS {{/user/foo/bar}} directory. > {quote} > Command line returns results: > {"boolean":true} > . At the same time the folder is created successfully. -- This message was sent by Atlassian Jira (v8.3.4#803005)