hdfs 命令行 -put 上传文件操作,通过shell脚本最终调用 FsShell 的main入口方法,实现相应的逻辑功能
为便于debug调试,编写相应的测试程序模拟 -put 操作,示例代码如下
public class TestShell {
public static void main(String argv[]) throws Exception {
System.setProperty("hadoop.home.dir", "D:\\aws\\hadoop-2.6.0");
System.setProperty("HADOOP_USER_NAME", "root");
FsShell shell = new FsShell();
C

订阅专栏 解锁全文
802

被折叠的 条评论
为什么被折叠?



