Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/shell/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
File 将comand line中的文本写入Hadoop_File_Shell_Unix_Hadoop_Hdfs - Fatal编程技术网

File 将comand line中的文本写入Hadoop

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

可以将命令行中的文本写入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
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时还有问题吗?