hdfs 资料
comment | url |
---|---|
WebHDFS REST API | https://hadoop.apache.org/docs/r1.0.4/webhdfs.html#user.name |
HDFS Users Guide | https://hadoop.apache.org/docs/r1.0.4/hdfs_user_guide.html |
Architecture Guide | https://hadoop.apache.org/docs/r1.0.4/hdfs_design.html |
File System Shell Guide | https://hadoop.apache.org/docs/r1.0.4/file_system_shell.html |
测试用户连接 web api
curl "http://10.189.20.24:50070/webhdfs/v1?op=GETHOMEDIRECTORY&user.name=apps"
{"Path":"/user/apps"}
创建目录
curl -isv -XPUT "http://10.189.20.24:50070/webhdfs/v1/uploads/?op=MKDIRS&user.name=root"
{"boolean":true}
修改目录属性
curl -X PU