Hadoop document states appendToFile and put can read stdin
stdin
echo "hello world" | hadoop fs -appendToFile - /dir/hadoop/hello_world.txt
echo "hello world" | hadoop fs -put - /dir/hadoop/hello_world.txt