Last active
August 29, 2015 13:57
-
-
Save natbusa/9651170 to your computer and use it in GitHub Desktop.
word count: mapreduce in java
This file contains 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
#beam it up to the hdfs | |
hadoop fs -mkdir wordcount-input/ | |
hadoop fs -copyFromLocal lorem.txt wordcount-input/ | |
# Maven project in https://github.com/natalinobusa/wordcount/hadoop-mapreduce-java | |
$HADOOP_HOME/bin/hadoop jar target/wordcount-mapreduce-java-1.0-SNAPSHOT.jar \ | |
com.natalinobusa.WordCount wordcount-input wordcount-mapreduce-java-output | |
$HADOOP_HOME/bin/hadoop fs -cat wordcount-mapreduce-java-output |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment