![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
HDFS
Jerry Shao
这个作者很懒,什么都没留下…
展开
-
hdfs client分析:hdfs dfs -get下载文件
上接前两篇,再来分析下下载文件的过程hdfs dfs -get 或 hdfs dfs -copyToLocal 先找到命令get和copyToLocal对应的类 public static void registerCommands(CommandFactory factory) { factory.registerCommands(AclCommands.class); fact...原创 2019-03-29 18:26:57 · 9513 阅读 · 0 评论 -
hdfs client分析:hdfs dfs -ls
shell脚本分析 实例命令:hdfs dfs -ls 对应脚本文件:bin/hdfs 对应具体脚本内容: COMMAND=$1 shift elif [ "$COMMAND" = "dfs" ] ; then CLASS=org.apache.hadoop.fs.FsShell 最终执行的命令: exec "$JAVA" $JAVA_HEAP_MAX $HADOOP_OPTS $CLAS...原创 2019-03-27 19:45:35 · 2420 阅读 · 0 评论 -
hdfs client分析:hdfs dfs -mkdir
hdfs client分析:hdfs dfs -ls这一篇重点分析了hdfs client的整体执行流程,但是没有详细介绍命令调用和返回的过程,这篇通过mkdir命令来做个补充。 命令:hdfs dfs -mkdir 代码分析直接从Command类的run方法开始: public int run(String...argv) { LinkedList<String> arg...原创 2019-03-27 20:43:01 · 2518 阅读 · 0 评论 -
HDFS源码剖析-HDFS的鉴权
1 HDFS权限控制和ACL 官网文档:http://hadoop.apache.org/docs/r2.7.1/hadoop-project-dist/hadoop-hdfs/HdfsPermissionsGuide.html 中文翻译:https://blog.csdn.net/shubingzhuoxue/article/details/50072271 acl涉及的参数: dfs....原创 2019-04-22 18:32:25 · 1235 阅读 · 0 评论