Created
December 20, 2014 22:12
-
-
Save carlcrott/983496634aa5f615bb3e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh [email protected] | |
$ sudo su -l hadoop | |
$ hadoop fs -mkdir input/ | |
$ wget http://www.hamster-club.com/ | |
$ mv index.html /tmp/setup.html | |
$ hadoop fs -rm input/setup.html | |
$ hadoop fs -copyFromLocal /tmp/setup.html input/ | |
$ hadoop fs -ls input/ | |
# 14/12/12 05:08:43 INFO gcs.GoogleHadoopFileSystemBase: GHFS version: 1.2.9-hadoop1 | |
# Found 1 items | |
# -rwx------ 3 hadoop hadoop 9 2014-12-12 05:08 /input/setup.html | |
# Run the hadoop jar command to start the MapReduce job. | |
$ hadoop jar hadoop-examples-*.jar wordcount input output |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment