find / -name hadoop-env.sh -print 2>/dev/null|xargs grep -l Xmx128m|sudo xargs sed -i 's/Xmx128m/Xmx2048m/'
sudo `which hadoop` jar ../*examp* grep input output 'dfs[a-z.]+'
# That was the example given in the docs, which now runs for me without error...
Why modify files by hand when you can use find and sed -i... :-) ]
java - out of Memory Error in Hadoop - Stack Overflow
'via Blog this'