You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by 小学园PHP <xx...@qq.com> on 2013/03/18 06:58:31 UTC

回复:RE: HTTP/1.1 405 HTTP method PUT is not supported by this URL??

Really thanks, Brahma!! It works.
But i get a another problem:
HTTP/1.1 403 Forbidden
{"RemoteException":{"exception":"AccessControlException","javaClassName":"org.apache.hadoop.security.AccessControlException","message":"Permission denied: user=webuser, access=WRITE, inode=\"\":levi:supergroup:rwxr-xr-x"}}


------------------ 原始邮件 ------------------
发件人: "Brahma Reddy Battula"<br...@huawei.com>;
发送时间: 2013年3月18日(星期一) 中午12:20
收件人: "common-dev@hadoop.apache.org"<co...@hadoop.apache.org>; 

主题: RE: HTTP/1.1 405 HTTP method PUT is not supported by this URL??



HI Levi,


you might tried using the following syntax..

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


Use the following syntax for makedir 


curl -i -X PUT
"http://<HOST>:<PORT>/webhdfs/v1/<PATH>?op=MKDIRS[&permission=<OCTAL>]


FYR:



https://issues.apache.org/jira/browse/HDFS-2869



________________________________________
From: 小学园PHP [xxy-php@qq.com]
Sent: Monday, March 18, 2013 12:03 PM
To: common-dev
Subject: HTTP/1.1 405 HTTP method PUT is not supported by this URL??

When i mkdir by curl using the WebHDFS.
Hadoop return:
HTTP/1.1 405 HTTP method PUT is not supported by this URL


OK, Who know this why?


TIA
Levi

RE: 回复:RE: HTTP/1.1 405 HTTP method PUT is not supported by this URL??

Posted by Brahma Reddy Battula <br...@huawei.com>.
you need to disable following property..


<property> 
  <name>dfs.permissions.enabled</name> 
  <value>true</value> 
  <description> 
    If "true", enable permission checking in HDFS. 
    If "false", permission checking is turned off, 
    but all other behavior is unchanged. 
    Switching from one parameter value to the other does not change the mode, 
    owner or group of files or directories. 
  </description> 
</property> 

Hope this helps. 


________________________________________
From: 小学园PHP [xxy-php@qq.com]
Sent: Monday, March 18, 2013 1:58 PM
To: common-dev
Subject: 回复:RE: HTTP/1.1 405 HTTP method PUT is not supported by this URL??

Really thanks, Brahma!! It works.
But i get a another problem:
HTTP/1.1 403 Forbidden
{"RemoteException":{"exception":"AccessControlException","javaClassName":"org.apache.hadoop.security.AccessControlException","message":"Permission denied: user=webuser, access=WRITE, inode=\"\":levi:supergroup:rwxr-xr-x"}}


------------------ 原始邮件 ------------------
发件人: "Brahma Reddy Battula"<br...@huawei.com>;
发送时间: 2013年3月18日(星期一) 中午12:20
收件人: "common-dev@hadoop.apache.org"<co...@hadoop.apache.org>;

主题: RE: HTTP/1.1 405 HTTP method PUT is not supported by this URL??



HI Levi,


you might tried using the following syntax..

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


Use the following syntax for makedir


curl -i -X PUT
"http://<HOST>:<PORT>/webhdfs/v1/<PATH>?op=MKDIRS[&permission=<OCTAL>]


FYR:



https://issues.apache.org/jira/browse/HDFS-2869



________________________________________
From: 小学园PHP [xxy-php@qq.com]
Sent: Monday, March 18, 2013 12:03 PM
To: common-dev
Subject: HTTP/1.1 405 HTTP method PUT is not supported by this URL??

When i mkdir by curl using the WebHDFS.
Hadoop return:
HTTP/1.1 405 HTTP method PUT is not supported by this URL


OK, Who know this why?


TIA
Levi