File 将comand line中的文本写入Hadoop
可以将命令行中的文本写入Hadoop吗 尝试执行类似于unix write/append to file命令的操作File 将comand line中的文本写入Hadoop,file,shell,unix,hadoop,hdfs,File,Shell,Unix,Hadoop,Hdfs,可以将命令行中的文本写入Hadoop吗 尝试执行类似于unix write/append to file命令的操作 echo "hello world" > hello_world.txt 在Hadoop领域,我希望这能起作用,但命令不能 hadoop fs -appendToFile "foo bar" /dir/hadoop/hello_world.txt hadoop fs -put "hello world" /dir/hadoop/hello_world.txt Hadoo
echo "hello world" > hello_world.txt
在Hadoop领域,我希望这能起作用,但命令不能
hadoop fs -appendToFile "foo bar" /dir/hadoop/hello_world.txt
hadoop fs -put "hello world" /dir/hadoop/hello_world.txt
Hadoop文档状态并可以读取stdin
echo“hello world”| hadoop fs-appendToFile-/dir/hadoop/hello_world.txt
echo“hello world”| hadoop fs-put-/dir/hadoop/hello\u world.txt
希望这能起作用,但对你不起作用?你能澄清你的问题吗?那么错误是什么?你在使用-appendToFile时还有问题吗?