有ln -shadoop HDFS吗?
例如:
我在HDFS中有10个文件
/user/hadoop/input,是的 1.txt, 2.txt ... 10.txt
HDFS中的另一个目录是 /user/hadoop/test
我只想将1个文件复制 /user/hadoop/input/1.txt到 /user/hadoop/test/1.txt.
最简单的方法是使用hadoop dfs -cp /user/hadoop/1.txt /user/hadoop/test.
但它需要更多的时间和磁盘空间.有没有像shell这样的方式hadoop dfs -ln /user/hadoop/1.txt /user/hadoop/test/1.txt?
我在linux文件系统中创建了一个新目录.
为什么这个项目的硬链接数是2?
drwxr-xr-x 2 zuser zuser 4096 2013-12-12 19:00 newdir/