dimanche 28 juin 2015

write text from comand line into Hadoop

Is it possible to write text from the command line into Hadoop?

Trying to do something similar to the unix write/append to file command.

echo "hello world" > hello_world.txt

In Hadoop land I would expect this to work:

hadoop fs -appendToFile "foo bar" /dir/hadoop/hello_world.txt

hadoop fs -put "hello world" /dir/hadoop/hello_world.txt

Aucun commentaire:

Enregistrer un commentaire