hdfs客户端读写过程解析
1.准备
hadoop
源码编译后的客户端,便于改动追踪代码- 上传文件,
ec
目录和普通目录均上传测试:
hadoop fs -put hadoop-hadoop-datanode-cluster-host1.log hdfs://hadoop1:9000/user hadoop fs -put hadoop-hadoop-datanode-cluster-host1.log hdfs://hadoop1:9000/ec
ec目录:
普通目录:
]
hadoop
源码编译后的客户端,便于改动追踪代码ec
目录和普通目录均上传测试:hadoop fs -put hadoop-hadoop-datanode-cluster-host1.log hdfs://hadoop1:9000/user hadoop fs -put hadoop-hadoop-datanode-cluster-host1.log hdfs://hadoop1:9000/ec
ec目录:
普通目录:
]