i trying learn how implement mapreduce in hadoop.as part of assignment trying implement wordcount example using mapreduce. need first create data. have implemented following statement;
echo "a long time ago in galaxy far far away" > /home/cloudera/testfile1
th error getting following:
bash: long time ago in galaxy far far away: not valid command
being new unix, having difficulty in understanding error is. appreciate if can assistance here.
thanks
if wanna create data using echo command, please try this:
echo > " long time ago in galaxy far far away" > /home/cloudera/testfile1 , press enter.
explanation of command line : type echo / space / > /space " /space sentence/ " / space/ > / space /home/cloudera/testfile1 , press enter
once done, verify directory you're in using : pwd command.
if you're in cloudera directory, ....then type ls command , press enter. list files inside directory , should able see data created named "testfile1".
hope it's helpful.
Comments
Post a Comment