You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Romain Rigaux (JIRA)" <ji...@apache.org> on 2012/04/20 23:59:33 UTC
[jira] [Created] (HDFS-3309) HttpFS (Hoop) chmod not supporting
octal and sticky bit permissions
Romain Rigaux created HDFS-3309:
-----------------------------------
Summary: HttpFS (Hoop) chmod not supporting octal and sticky bit permissions
Key: HDFS-3309
URL: https://issues.apache.org/jira/browse/HDFS-3309
Project: Hadoop HDFS
Issue Type: Bug
Affects Versions: 0.23.1
Reporter: Romain Rigaux
HttpFs supports only the permissions: [0-7][0-7][0-7]
In order to be compatible with webhdfs in needs to understand octal and sticky bit permissions (e.g. 0777, 01777...)
Example of error:
curl -L -X PUT "http://localhost:14000/webhdfs/v1/user/romain/test?permission=01777&op=SETPERMISSION&user.name=romain"
{"RemoteException":{"message":"java.lang.IllegalArgumentException: Parameter [permission], invalid value [01777], value must be [default|(-[-r][-w][-x][-r][-w][-x][-r][-w][-x])|[0-7][0-7][0-7]]","exception":"QueryParamException","javaClassName":"com.sun.jersey.api.ParamException$QueryParamException"}}
Works with WebHdfs:
curl -L -X PUT "http://localhost:50070/webhdfs/v1/user/romain/test?permission=01777&op=SETPERMISSION&user.name=romain"
echo $?
0
curl -L -X PUT "http://localhost:14000/webhdfs/v1/user/romain/test?permission=999999&op=SETPERMISSION&user.name=romain"
{"RemoteException":{"message":"java.lang.IllegalArgumentException: Parameter [permission], invalid value [999999], value must be [default|(-[-r][-w][-x][-r][-w][-x][-r][-w][-x])|[0-7][0-7][0-7]]","exception":"QueryParamException","javaClassName":"com.sun.jersey.api.ParamException$QueryParamException"}}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HDFS-3309) HttpFS (Hoop) chmod not supporting
octal and sticky bit permissions
Posted by "Alejandro Abdelnur (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alejandro Abdelnur updated HDFS-3309:
-------------------------------------
Status: Open (was: Patch Available)
> HttpFS (Hoop) chmod not supporting octal and sticky bit permissions
> -------------------------------------------------------------------
>
> Key: HDFS-3309
> URL: https://issues.apache.org/jira/browse/HDFS-3309
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: Romain Rigaux
> Assignee: Alejandro Abdelnur
> Fix For: 2.0.0
>
> Attachments: HDFS-3309.patch
>
>
> HttpFs supports only the permissions: [0-7][0-7][0-7]
> In order to be compatible with webhdfs in needs to understand octal and sticky bit permissions (e.g. 0777, 01777...)
> Example of error:
> curl -L -X PUT "http://localhost:14000/webhdfs/v1/user/romain/test?permission=01777&op=SETPERMISSION&user.name=romain"
> {"RemoteException":{"message":"java.lang.IllegalArgumentException: Parameter [permission], invalid value [01777], value must be [default|(-[-r][-w][-x][-r][-w][-x][-r][-w][-x])|[0-7][0-7][0-7]]","exception":"QueryParamException","javaClassName":"com.sun.jersey.api.ParamException$QueryParamException"}}
> Works with WebHdfs:
> curl -L -X PUT "http://localhost:50070/webhdfs/v1/user/romain/test?permission=01777&op=SETPERMISSION&user.name=romain"
> echo $?
> 0
> curl -L -X PUT "http://localhost:14000/webhdfs/v1/user/romain/test?permission=999999&op=SETPERMISSION&user.name=romain"
> {"RemoteException":{"message":"java.lang.IllegalArgumentException: Parameter [permission], invalid value [999999], value must be [default|(-[-r][-w][-x][-r][-w][-x][-r][-w][-x])|[0-7][0-7][0-7]]","exception":"QueryParamException","javaClassName":"com.sun.jersey.api.ParamException$QueryParamException"}}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HDFS-3309) HttpFS (Hoop) chmod not supporting
octal and sticky bit permissions
Posted by "Alejandro Abdelnur (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alejandro Abdelnur updated HDFS-3309:
-------------------------------------
Attachment: HDFS-3309.patch
patch gets rid of textual representation parsing (which was wrong) and add support for a leading 0/1 as sticky bit (only bit supported by HDFS).
> HttpFS (Hoop) chmod not supporting octal and sticky bit permissions
> -------------------------------------------------------------------
>
> Key: HDFS-3309
> URL: https://issues.apache.org/jira/browse/HDFS-3309
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: Romain Rigaux
> Assignee: Alejandro Abdelnur
> Fix For: 2.0.0
>
> Attachments: HDFS-3309.patch
>
>
> HttpFs supports only the permissions: [0-7][0-7][0-7]
> In order to be compatible with webhdfs in needs to understand octal and sticky bit permissions (e.g. 0777, 01777...)
> Example of error:
> curl -L -X PUT "http://localhost:14000/webhdfs/v1/user/romain/test?permission=01777&op=SETPERMISSION&user.name=romain"
> {"RemoteException":{"message":"java.lang.IllegalArgumentException: Parameter [permission], invalid value [01777], value must be [default|(-[-r][-w][-x][-r][-w][-x][-r][-w][-x])|[0-7][0-7][0-7]]","exception":"QueryParamException","javaClassName":"com.sun.jersey.api.ParamException$QueryParamException"}}
> Works with WebHdfs:
> curl -L -X PUT "http://localhost:50070/webhdfs/v1/user/romain/test?permission=01777&op=SETPERMISSION&user.name=romain"
> echo $?
> 0
> curl -L -X PUT "http://localhost:14000/webhdfs/v1/user/romain/test?permission=999999&op=SETPERMISSION&user.name=romain"
> {"RemoteException":{"message":"java.lang.IllegalArgumentException: Parameter [permission], invalid value [999999], value must be [default|(-[-r][-w][-x][-r][-w][-x][-r][-w][-x])|[0-7][0-7][0-7]]","exception":"QueryParamException","javaClassName":"com.sun.jersey.api.ParamException$QueryParamException"}}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HDFS-3309) HttpFS (Hoop) chmod not supporting
octal and sticky bit permissions
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13263779#comment-13263779 ]
Hudson commented on HDFS-3309:
------------------------------
Integrated in Hadoop-Hdfs-trunk-Commit #2219 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/2219/])
HDFS-3309. HttpFS (Hoop) chmod not supporting octal and sticky bit permissions. (tucu) (Revision 1331493)
Result = SUCCESS
tucu : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1331493
Files :
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/server/FSOperations.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/server/HttpFSParams.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/test/java/org/apache/hadoop/fs/http/client/TestHttpFSFileSystem.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
> HttpFS (Hoop) chmod not supporting octal and sticky bit permissions
> -------------------------------------------------------------------
>
> Key: HDFS-3309
> URL: https://issues.apache.org/jira/browse/HDFS-3309
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: Romain Rigaux
> Assignee: Alejandro Abdelnur
> Fix For: 2.0.0
>
> Attachments: HDFS-3309.patch, HDFS-3309.patch
>
>
> HttpFs supports only the permissions: [0-7][0-7][0-7]
> In order to be compatible with webhdfs in needs to understand octal and sticky bit permissions (e.g. 0777, 01777...)
> Example of error:
> curl -L -X PUT "http://localhost:14000/webhdfs/v1/user/romain/test?permission=01777&op=SETPERMISSION&user.name=romain"
> {"RemoteException":{"message":"java.lang.IllegalArgumentException: Parameter [permission], invalid value [01777], value must be [default|(-[-r][-w][-x][-r][-w][-x][-r][-w][-x])|[0-7][0-7][0-7]]","exception":"QueryParamException","javaClassName":"com.sun.jersey.api.ParamException$QueryParamException"}}
> Works with WebHdfs:
> curl -L -X PUT "http://localhost:50070/webhdfs/v1/user/romain/test?permission=01777&op=SETPERMISSION&user.name=romain"
> echo $?
> 0
> curl -L -X PUT "http://localhost:14000/webhdfs/v1/user/romain/test?permission=999999&op=SETPERMISSION&user.name=romain"
> {"RemoteException":{"message":"java.lang.IllegalArgumentException: Parameter [permission], invalid value [999999], value must be [default|(-[-r][-w][-x][-r][-w][-x][-r][-w][-x])|[0-7][0-7][0-7]]","exception":"QueryParamException","javaClassName":"com.sun.jersey.api.ParamException$QueryParamException"}}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HDFS-3309) HttpFS (Hoop) chmod not supporting
octal and sticky bit permissions
Posted by "Alejandro Abdelnur (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alejandro Abdelnur updated HDFS-3309:
-------------------------------------
Status: Patch Available (was: Open)
> HttpFS (Hoop) chmod not supporting octal and sticky bit permissions
> -------------------------------------------------------------------
>
> Key: HDFS-3309
> URL: https://issues.apache.org/jira/browse/HDFS-3309
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: Romain Rigaux
> Assignee: Alejandro Abdelnur
> Fix For: 2.0.0
>
> Attachments: HDFS-3309.patch
>
>
> HttpFs supports only the permissions: [0-7][0-7][0-7]
> In order to be compatible with webhdfs in needs to understand octal and sticky bit permissions (e.g. 0777, 01777...)
> Example of error:
> curl -L -X PUT "http://localhost:14000/webhdfs/v1/user/romain/test?permission=01777&op=SETPERMISSION&user.name=romain"
> {"RemoteException":{"message":"java.lang.IllegalArgumentException: Parameter [permission], invalid value [01777], value must be [default|(-[-r][-w][-x][-r][-w][-x][-r][-w][-x])|[0-7][0-7][0-7]]","exception":"QueryParamException","javaClassName":"com.sun.jersey.api.ParamException$QueryParamException"}}
> Works with WebHdfs:
> curl -L -X PUT "http://localhost:50070/webhdfs/v1/user/romain/test?permission=01777&op=SETPERMISSION&user.name=romain"
> echo $?
> 0
> curl -L -X PUT "http://localhost:14000/webhdfs/v1/user/romain/test?permission=999999&op=SETPERMISSION&user.name=romain"
> {"RemoteException":{"message":"java.lang.IllegalArgumentException: Parameter [permission], invalid value [999999], value must be [default|(-[-r][-w][-x][-r][-w][-x][-r][-w][-x])|[0-7][0-7][0-7]]","exception":"QueryParamException","javaClassName":"com.sun.jersey.api.ParamException$QueryParamException"}}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HDFS-3309) HttpFS (Hoop) chmod not supporting
octal and sticky bit permissions
Posted by "Hadoop QA (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13263722#comment-13263722 ]
Hadoop QA commented on HDFS-3309:
---------------------------------
+1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12524859/HDFS-3309.patch
against trunk revision .
+1 @author. The patch does not contain any @author tags.
+1 tests included. The patch appears to include 1 new or modified test files.
+1 javadoc. The javadoc tool did not generate any warning messages.
+1 javac. The applied patch does not increase the total number of javac compiler warnings.
+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 .
+1 contrib tests. The patch passed contrib unit tests.
Test results: https://builds.apache.org/job/PreCommit-HDFS-Build/2343//testReport/
Console output: https://builds.apache.org/job/PreCommit-HDFS-Build/2343//console
This message is automatically generated.
> HttpFS (Hoop) chmod not supporting octal and sticky bit permissions
> -------------------------------------------------------------------
>
> Key: HDFS-3309
> URL: https://issues.apache.org/jira/browse/HDFS-3309
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: Romain Rigaux
> Assignee: Alejandro Abdelnur
> Fix For: 2.0.0
>
> Attachments: HDFS-3309.patch, HDFS-3309.patch
>
>
> HttpFs supports only the permissions: [0-7][0-7][0-7]
> In order to be compatible with webhdfs in needs to understand octal and sticky bit permissions (e.g. 0777, 01777...)
> Example of error:
> curl -L -X PUT "http://localhost:14000/webhdfs/v1/user/romain/test?permission=01777&op=SETPERMISSION&user.name=romain"
> {"RemoteException":{"message":"java.lang.IllegalArgumentException: Parameter [permission], invalid value [01777], value must be [default|(-[-r][-w][-x][-r][-w][-x][-r][-w][-x])|[0-7][0-7][0-7]]","exception":"QueryParamException","javaClassName":"com.sun.jersey.api.ParamException$QueryParamException"}}
> Works with WebHdfs:
> curl -L -X PUT "http://localhost:50070/webhdfs/v1/user/romain/test?permission=01777&op=SETPERMISSION&user.name=romain"
> echo $?
> 0
> curl -L -X PUT "http://localhost:14000/webhdfs/v1/user/romain/test?permission=999999&op=SETPERMISSION&user.name=romain"
> {"RemoteException":{"message":"java.lang.IllegalArgumentException: Parameter [permission], invalid value [999999], value must be [default|(-[-r][-w][-x][-r][-w][-x][-r][-w][-x])|[0-7][0-7][0-7]]","exception":"QueryParamException","javaClassName":"com.sun.jersey.api.ParamException$QueryParamException"}}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Assigned] (HDFS-3309) HttpFS (Hoop) chmod not supporting
octal and sticky bit permissions
Posted by "Alejandro Abdelnur (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alejandro Abdelnur reassigned HDFS-3309:
----------------------------------------
Assignee: Alejandro Abdelnur
> HttpFS (Hoop) chmod not supporting octal and sticky bit permissions
> -------------------------------------------------------------------
>
> Key: HDFS-3309
> URL: https://issues.apache.org/jira/browse/HDFS-3309
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 0.23.1
> Reporter: Romain Rigaux
> Assignee: Alejandro Abdelnur
>
> HttpFs supports only the permissions: [0-7][0-7][0-7]
> In order to be compatible with webhdfs in needs to understand octal and sticky bit permissions (e.g. 0777, 01777...)
> Example of error:
> curl -L -X PUT "http://localhost:14000/webhdfs/v1/user/romain/test?permission=01777&op=SETPERMISSION&user.name=romain"
> {"RemoteException":{"message":"java.lang.IllegalArgumentException: Parameter [permission], invalid value [01777], value must be [default|(-[-r][-w][-x][-r][-w][-x][-r][-w][-x])|[0-7][0-7][0-7]]","exception":"QueryParamException","javaClassName":"com.sun.jersey.api.ParamException$QueryParamException"}}
> Works with WebHdfs:
> curl -L -X PUT "http://localhost:50070/webhdfs/v1/user/romain/test?permission=01777&op=SETPERMISSION&user.name=romain"
> echo $?
> 0
> curl -L -X PUT "http://localhost:14000/webhdfs/v1/user/romain/test?permission=999999&op=SETPERMISSION&user.name=romain"
> {"RemoteException":{"message":"java.lang.IllegalArgumentException: Parameter [permission], invalid value [999999], value must be [default|(-[-r][-w][-x][-r][-w][-x][-r][-w][-x])|[0-7][0-7][0-7]]","exception":"QueryParamException","javaClassName":"com.sun.jersey.api.ParamException$QueryParamException"}}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HDFS-3309) HttpFS (Hoop) chmod not supporting
octal and sticky bit permissions
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13264312#comment-13264312 ]
Hudson commented on HDFS-3309:
------------------------------
Integrated in Hadoop-Hdfs-trunk #1028 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk/1028/])
HDFS-3309. HttpFS (Hoop) chmod not supporting octal and sticky bit permissions. (tucu) (Revision 1331493)
Result = FAILURE
tucu : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1331493
Files :
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/server/FSOperations.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/server/HttpFSParams.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/test/java/org/apache/hadoop/fs/http/client/TestHttpFSFileSystem.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
> HttpFS (Hoop) chmod not supporting octal and sticky bit permissions
> -------------------------------------------------------------------
>
> Key: HDFS-3309
> URL: https://issues.apache.org/jira/browse/HDFS-3309
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: Romain Rigaux
> Assignee: Alejandro Abdelnur
> Fix For: 2.0.0
>
> Attachments: HDFS-3309.patch, HDFS-3309.patch
>
>
> HttpFs supports only the permissions: [0-7][0-7][0-7]
> In order to be compatible with webhdfs in needs to understand octal and sticky bit permissions (e.g. 0777, 01777...)
> Example of error:
> curl -L -X PUT "http://localhost:14000/webhdfs/v1/user/romain/test?permission=01777&op=SETPERMISSION&user.name=romain"
> {"RemoteException":{"message":"java.lang.IllegalArgumentException: Parameter [permission], invalid value [01777], value must be [default|(-[-r][-w][-x][-r][-w][-x][-r][-w][-x])|[0-7][0-7][0-7]]","exception":"QueryParamException","javaClassName":"com.sun.jersey.api.ParamException$QueryParamException"}}
> Works with WebHdfs:
> curl -L -X PUT "http://localhost:50070/webhdfs/v1/user/romain/test?permission=01777&op=SETPERMISSION&user.name=romain"
> echo $?
> 0
> curl -L -X PUT "http://localhost:14000/webhdfs/v1/user/romain/test?permission=999999&op=SETPERMISSION&user.name=romain"
> {"RemoteException":{"message":"java.lang.IllegalArgumentException: Parameter [permission], invalid value [999999], value must be [default|(-[-r][-w][-x][-r][-w][-x][-r][-w][-x])|[0-7][0-7][0-7]]","exception":"QueryParamException","javaClassName":"com.sun.jersey.api.ParamException$QueryParamException"}}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HDFS-3309) HttpFS (Hoop) chmod not supporting
octal and sticky bit permissions
Posted by "Alejandro Abdelnur (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alejandro Abdelnur updated HDFS-3309:
-------------------------------------
Resolution: Fixed
Hadoop Flags: Reviewed
Status: Resolved (was: Patch Available)
committed to trunk and branch-2
> HttpFS (Hoop) chmod not supporting octal and sticky bit permissions
> -------------------------------------------------------------------
>
> Key: HDFS-3309
> URL: https://issues.apache.org/jira/browse/HDFS-3309
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: Romain Rigaux
> Assignee: Alejandro Abdelnur
> Fix For: 2.0.0
>
> Attachments: HDFS-3309.patch, HDFS-3309.patch
>
>
> HttpFs supports only the permissions: [0-7][0-7][0-7]
> In order to be compatible with webhdfs in needs to understand octal and sticky bit permissions (e.g. 0777, 01777...)
> Example of error:
> curl -L -X PUT "http://localhost:14000/webhdfs/v1/user/romain/test?permission=01777&op=SETPERMISSION&user.name=romain"
> {"RemoteException":{"message":"java.lang.IllegalArgumentException: Parameter [permission], invalid value [01777], value must be [default|(-[-r][-w][-x][-r][-w][-x][-r][-w][-x])|[0-7][0-7][0-7]]","exception":"QueryParamException","javaClassName":"com.sun.jersey.api.ParamException$QueryParamException"}}
> Works with WebHdfs:
> curl -L -X PUT "http://localhost:50070/webhdfs/v1/user/romain/test?permission=01777&op=SETPERMISSION&user.name=romain"
> echo $?
> 0
> curl -L -X PUT "http://localhost:14000/webhdfs/v1/user/romain/test?permission=999999&op=SETPERMISSION&user.name=romain"
> {"RemoteException":{"message":"java.lang.IllegalArgumentException: Parameter [permission], invalid value [999999], value must be [default|(-[-r][-w][-x][-r][-w][-x][-r][-w][-x])|[0-7][0-7][0-7]]","exception":"QueryParamException","javaClassName":"com.sun.jersey.api.ParamException$QueryParamException"}}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HDFS-3309) HttpFS (Hoop) chmod not supporting
octal and sticky bit permissions
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13264330#comment-13264330 ]
Hudson commented on HDFS-3309:
------------------------------
Integrated in Hadoop-Mapreduce-trunk #1063 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1063/])
HDFS-3309. HttpFS (Hoop) chmod not supporting octal and sticky bit permissions. (tucu) (Revision 1331493)
Result = FAILURE
tucu : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1331493
Files :
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/server/FSOperations.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/server/HttpFSParams.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/test/java/org/apache/hadoop/fs/http/client/TestHttpFSFileSystem.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
> HttpFS (Hoop) chmod not supporting octal and sticky bit permissions
> -------------------------------------------------------------------
>
> Key: HDFS-3309
> URL: https://issues.apache.org/jira/browse/HDFS-3309
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: Romain Rigaux
> Assignee: Alejandro Abdelnur
> Fix For: 2.0.0
>
> Attachments: HDFS-3309.patch, HDFS-3309.patch
>
>
> HttpFs supports only the permissions: [0-7][0-7][0-7]
> In order to be compatible with webhdfs in needs to understand octal and sticky bit permissions (e.g. 0777, 01777...)
> Example of error:
> curl -L -X PUT "http://localhost:14000/webhdfs/v1/user/romain/test?permission=01777&op=SETPERMISSION&user.name=romain"
> {"RemoteException":{"message":"java.lang.IllegalArgumentException: Parameter [permission], invalid value [01777], value must be [default|(-[-r][-w][-x][-r][-w][-x][-r][-w][-x])|[0-7][0-7][0-7]]","exception":"QueryParamException","javaClassName":"com.sun.jersey.api.ParamException$QueryParamException"}}
> Works with WebHdfs:
> curl -L -X PUT "http://localhost:50070/webhdfs/v1/user/romain/test?permission=01777&op=SETPERMISSION&user.name=romain"
> echo $?
> 0
> curl -L -X PUT "http://localhost:14000/webhdfs/v1/user/romain/test?permission=999999&op=SETPERMISSION&user.name=romain"
> {"RemoteException":{"message":"java.lang.IllegalArgumentException: Parameter [permission], invalid value [999999], value must be [default|(-[-r][-w][-x][-r][-w][-x][-r][-w][-x])|[0-7][0-7][0-7]]","exception":"QueryParamException","javaClassName":"com.sun.jersey.api.ParamException$QueryParamException"}}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HDFS-3309) HttpFS (Hoop) chmod not supporting
octal and sticky bit permissions
Posted by "Alejandro Abdelnur (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alejandro Abdelnur updated HDFS-3309:
-------------------------------------
Fix Version/s: 2.0.0
Affects Version/s: (was: 0.23.1)
2.0.0
Status: Patch Available (was: Open)
> HttpFS (Hoop) chmod not supporting octal and sticky bit permissions
> -------------------------------------------------------------------
>
> Key: HDFS-3309
> URL: https://issues.apache.org/jira/browse/HDFS-3309
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: Romain Rigaux
> Assignee: Alejandro Abdelnur
> Fix For: 2.0.0
>
> Attachments: HDFS-3309.patch
>
>
> HttpFs supports only the permissions: [0-7][0-7][0-7]
> In order to be compatible with webhdfs in needs to understand octal and sticky bit permissions (e.g. 0777, 01777...)
> Example of error:
> curl -L -X PUT "http://localhost:14000/webhdfs/v1/user/romain/test?permission=01777&op=SETPERMISSION&user.name=romain"
> {"RemoteException":{"message":"java.lang.IllegalArgumentException: Parameter [permission], invalid value [01777], value must be [default|(-[-r][-w][-x][-r][-w][-x][-r][-w][-x])|[0-7][0-7][0-7]]","exception":"QueryParamException","javaClassName":"com.sun.jersey.api.ParamException$QueryParamException"}}
> Works with WebHdfs:
> curl -L -X PUT "http://localhost:50070/webhdfs/v1/user/romain/test?permission=01777&op=SETPERMISSION&user.name=romain"
> echo $?
> 0
> curl -L -X PUT "http://localhost:14000/webhdfs/v1/user/romain/test?permission=999999&op=SETPERMISSION&user.name=romain"
> {"RemoteException":{"message":"java.lang.IllegalArgumentException: Parameter [permission], invalid value [999999], value must be [default|(-[-r][-w][-x][-r][-w][-x][-r][-w][-x])|[0-7][0-7][0-7]]","exception":"QueryParamException","javaClassName":"com.sun.jersey.api.ParamException$QueryParamException"}}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HDFS-3309) HttpFS (Hoop) chmod not supporting
octal and sticky bit permissions
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13263810#comment-13263810 ]
Hudson commented on HDFS-3309:
------------------------------
Integrated in Hadoop-Mapreduce-trunk-Commit #2162 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk-Commit/2162/])
HDFS-3309. HttpFS (Hoop) chmod not supporting octal and sticky bit permissions. (tucu) (Revision 1331493)
Result = ABORTED
tucu : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1331493
Files :
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/server/FSOperations.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/server/HttpFSParams.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/test/java/org/apache/hadoop/fs/http/client/TestHttpFSFileSystem.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
> HttpFS (Hoop) chmod not supporting octal and sticky bit permissions
> -------------------------------------------------------------------
>
> Key: HDFS-3309
> URL: https://issues.apache.org/jira/browse/HDFS-3309
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: Romain Rigaux
> Assignee: Alejandro Abdelnur
> Fix For: 2.0.0
>
> Attachments: HDFS-3309.patch, HDFS-3309.patch
>
>
> HttpFs supports only the permissions: [0-7][0-7][0-7]
> In order to be compatible with webhdfs in needs to understand octal and sticky bit permissions (e.g. 0777, 01777...)
> Example of error:
> curl -L -X PUT "http://localhost:14000/webhdfs/v1/user/romain/test?permission=01777&op=SETPERMISSION&user.name=romain"
> {"RemoteException":{"message":"java.lang.IllegalArgumentException: Parameter [permission], invalid value [01777], value must be [default|(-[-r][-w][-x][-r][-w][-x][-r][-w][-x])|[0-7][0-7][0-7]]","exception":"QueryParamException","javaClassName":"com.sun.jersey.api.ParamException$QueryParamException"}}
> Works with WebHdfs:
> curl -L -X PUT "http://localhost:50070/webhdfs/v1/user/romain/test?permission=01777&op=SETPERMISSION&user.name=romain"
> echo $?
> 0
> curl -L -X PUT "http://localhost:14000/webhdfs/v1/user/romain/test?permission=999999&op=SETPERMISSION&user.name=romain"
> {"RemoteException":{"message":"java.lang.IllegalArgumentException: Parameter [permission], invalid value [999999], value must be [default|(-[-r][-w][-x][-r][-w][-x][-r][-w][-x])|[0-7][0-7][0-7]]","exception":"QueryParamException","javaClassName":"com.sun.jersey.api.ParamException$QueryParamException"}}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (HDFS-3309) HttpFS (Hoop) chmod not supporting
octal and sticky bit permissions
Posted by "Alejandro Abdelnur (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alejandro Abdelnur updated HDFS-3309:
-------------------------------------
Attachment: HDFS-3309.patch
re-uploading patch to see if jenkins decides to run
> HttpFS (Hoop) chmod not supporting octal and sticky bit permissions
> -------------------------------------------------------------------
>
> Key: HDFS-3309
> URL: https://issues.apache.org/jira/browse/HDFS-3309
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: Romain Rigaux
> Assignee: Alejandro Abdelnur
> Fix For: 2.0.0
>
> Attachments: HDFS-3309.patch, HDFS-3309.patch
>
>
> HttpFs supports only the permissions: [0-7][0-7][0-7]
> In order to be compatible with webhdfs in needs to understand octal and sticky bit permissions (e.g. 0777, 01777...)
> Example of error:
> curl -L -X PUT "http://localhost:14000/webhdfs/v1/user/romain/test?permission=01777&op=SETPERMISSION&user.name=romain"
> {"RemoteException":{"message":"java.lang.IllegalArgumentException: Parameter [permission], invalid value [01777], value must be [default|(-[-r][-w][-x][-r][-w][-x][-r][-w][-x])|[0-7][0-7][0-7]]","exception":"QueryParamException","javaClassName":"com.sun.jersey.api.ParamException$QueryParamException"}}
> Works with WebHdfs:
> curl -L -X PUT "http://localhost:50070/webhdfs/v1/user/romain/test?permission=01777&op=SETPERMISSION&user.name=romain"
> echo $?
> 0
> curl -L -X PUT "http://localhost:14000/webhdfs/v1/user/romain/test?permission=999999&op=SETPERMISSION&user.name=romain"
> {"RemoteException":{"message":"java.lang.IllegalArgumentException: Parameter [permission], invalid value [999999], value must be [default|(-[-r][-w][-x][-r][-w][-x][-r][-w][-x])|[0-7][0-7][0-7]]","exception":"QueryParamException","javaClassName":"com.sun.jersey.api.ParamException$QueryParamException"}}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HDFS-3309) HttpFS (Hoop) chmod not supporting
octal and sticky bit permissions
Posted by "Hudson (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13263781#comment-13263781 ]
Hudson commented on HDFS-3309:
------------------------------
Integrated in Hadoop-Common-trunk-Commit #2145 (See [https://builds.apache.org/job/Hadoop-Common-trunk-Commit/2145/])
HDFS-3309. HttpFS (Hoop) chmod not supporting octal and sticky bit permissions. (tucu) (Revision 1331493)
Result = SUCCESS
tucu : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1331493
Files :
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/server/FSOperations.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/main/java/org/apache/hadoop/fs/http/server/HttpFSParams.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs-httpfs/src/test/java/org/apache/hadoop/fs/http/client/TestHttpFSFileSystem.java
* /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt
> HttpFS (Hoop) chmod not supporting octal and sticky bit permissions
> -------------------------------------------------------------------
>
> Key: HDFS-3309
> URL: https://issues.apache.org/jira/browse/HDFS-3309
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: Romain Rigaux
> Assignee: Alejandro Abdelnur
> Fix For: 2.0.0
>
> Attachments: HDFS-3309.patch, HDFS-3309.patch
>
>
> HttpFs supports only the permissions: [0-7][0-7][0-7]
> In order to be compatible with webhdfs in needs to understand octal and sticky bit permissions (e.g. 0777, 01777...)
> Example of error:
> curl -L -X PUT "http://localhost:14000/webhdfs/v1/user/romain/test?permission=01777&op=SETPERMISSION&user.name=romain"
> {"RemoteException":{"message":"java.lang.IllegalArgumentException: Parameter [permission], invalid value [01777], value must be [default|(-[-r][-w][-x][-r][-w][-x][-r][-w][-x])|[0-7][0-7][0-7]]","exception":"QueryParamException","javaClassName":"com.sun.jersey.api.ParamException$QueryParamException"}}
> Works with WebHdfs:
> curl -L -X PUT "http://localhost:50070/webhdfs/v1/user/romain/test?permission=01777&op=SETPERMISSION&user.name=romain"
> echo $?
> 0
> curl -L -X PUT "http://localhost:14000/webhdfs/v1/user/romain/test?permission=999999&op=SETPERMISSION&user.name=romain"
> {"RemoteException":{"message":"java.lang.IllegalArgumentException: Parameter [permission], invalid value [999999], value must be [default|(-[-r][-w][-x][-r][-w][-x][-r][-w][-x])|[0-7][0-7][0-7]]","exception":"QueryParamException","javaClassName":"com.sun.jersey.api.ParamException$QueryParamException"}}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HDFS-3309) HttpFS (Hoop) chmod not supporting
octal and sticky bit permissions
Posted by "Aaron T. Myers (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HDFS-3309?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13262791#comment-13262791 ]
Aaron T. Myers commented on HDFS-3309:
--------------------------------------
Patch looks good to me. +1 pending Jenkins.
> HttpFS (Hoop) chmod not supporting octal and sticky bit permissions
> -------------------------------------------------------------------
>
> Key: HDFS-3309
> URL: https://issues.apache.org/jira/browse/HDFS-3309
> Project: Hadoop HDFS
> Issue Type: Bug
> Affects Versions: 2.0.0
> Reporter: Romain Rigaux
> Assignee: Alejandro Abdelnur
> Fix For: 2.0.0
>
> Attachments: HDFS-3309.patch
>
>
> HttpFs supports only the permissions: [0-7][0-7][0-7]
> In order to be compatible with webhdfs in needs to understand octal and sticky bit permissions (e.g. 0777, 01777...)
> Example of error:
> curl -L -X PUT "http://localhost:14000/webhdfs/v1/user/romain/test?permission=01777&op=SETPERMISSION&user.name=romain"
> {"RemoteException":{"message":"java.lang.IllegalArgumentException: Parameter [permission], invalid value [01777], value must be [default|(-[-r][-w][-x][-r][-w][-x][-r][-w][-x])|[0-7][0-7][0-7]]","exception":"QueryParamException","javaClassName":"com.sun.jersey.api.ParamException$QueryParamException"}}
> Works with WebHdfs:
> curl -L -X PUT "http://localhost:50070/webhdfs/v1/user/romain/test?permission=01777&op=SETPERMISSION&user.name=romain"
> echo $?
> 0
> curl -L -X PUT "http://localhost:14000/webhdfs/v1/user/romain/test?permission=999999&op=SETPERMISSION&user.name=romain"
> {"RemoteException":{"message":"java.lang.IllegalArgumentException: Parameter [permission], invalid value [999999], value must be [default|(-[-r][-w][-x][-r][-w][-x][-r][-w][-x])|[0-7][0-7][0-7]]","exception":"QueryParamException","javaClassName":"com.sun.jersey.api.ParamException$QueryParamException"}}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira