Last active
January 24, 2018 15:02
-
-
Save ouyi/bae4f02a882eb11411696a7789fb7482 to your computer and use it in GitHub Desktop.
Built-in test apps on EMR 5.x
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
cat >> input.txt | |
hello | |
world | |
world | |
<ctrl+D> | |
wget https://raw.githubusercontent.com/ouyi/tez-demo/master/src/test/resources/input.txt | |
hadoop fs -copyFromLocal input.txt /tmp/ | |
hadoop fs -copyToLocal /apps/tez/tez.tar.gz . | |
tar xzf tez.tar.gz | |
hadoop fs -rm -r -f /tmp/output && hadoop jar tez-examples-0.8.4.jar orderedwordcount /tmp/input.txt /tmp/output | |
wget https://github.com/ouyi/tez-demo/raw/master/src/main/resources/wordcount.pig | |
hadoop fs -rm -r -f /tmp/output && pig -x tez -p input=/tmp/input.txt -p output=/tmp/output wordcount.pig | |
hadoop fs -rm -r -f /tmp/output && pig -x mapreduce -p input=/tmp/input.txt -p output=/tmp/output wordcount.pig |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment