wiki:NCHCCloudCourse100928/Lab2
close Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": /usr/lib/python2.7/dist-packages/libsvn/_fs.so: failed to map segment from shared object: Cannot allocate memory). Look in the Trac log for more information.

Version 1 (modified by waue, 15 years ago) (diff)

--

WordCount1 練習

hadoop@lucid:~$ cd /opt/hadoop
hadoop@lucid:/opt/hadoop$ mkdir -p input_local
hadoop@lucid:/opt/hadoop$ bin/hadoop fs -mkdir input
hadoop@lucid:/opt/hadoop$ echo "I like NCHC Cloud Course." > input_local/input1
hadoop@lucid:/opt/hadoop$ echo "I like nchc Cloud Course, and we enjoy this course." > input_local/input2
hadoop@lucid:/opt/hadoop$ bin/hadoop fs -put input_local/* input
hadoop@lucid:/opt/hadoop$ bin/hadoop fs -ls