I just followed the instructions in S4 piper walkthrough. I encountered some errors because I am accessing the Internet through a proxy. The problems were solved by modifying the file s4 (needed if you want to run the twitter example):
1 2 3 4 5 6 |
... # JVM options for starting nodes and for other s4 tools can be configured here export JAVA_OPTS="-Xmx1G -Dhttp.proxyHost=proxy.cse.cuhk.edu.hk -Dhttp.proxyPort=8000 -Dhttps.proxyHost=proxy.cse.cuhk.edu.hk -Dhttps.proxyPort=8000" subprojects/s4-tools/build/install/s4-tools/bin/s4-tools -s4ScriptPath=$S4_SCRIPT_PATH $@ ... |
and the file gradlew (refer to Qun’s article):
1 2 3 4 5 6 7 |
... JVM_OPTS[${#JVM_OPTS[*]}]="-Dhttp.proxyHost=proxy.cse.cuhk.edu.hk" JVM_OPTS[${#JVM_OPTS[*]}]="-Dhttp.proxyPort=8000" JVM_OPTS[${#JVM_OPTS[*]}]="-Dhttps.proxyHost=proxy.cse.cuhk.edu.hk" JVM_OPTS[${#JVM_OPTS[*]}]="-Dhttps.proxyPort=8000" exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "[email protected]" ... |
Here is the result of the twitter example, top 10 popular words of today:
1 2 3 4 5 6 7 8 9 10 11 |
2012-Aug-31 20:46:00 topic [votebieber] count [2123] topic [VMA] count [2066] topic [voteonedirection] count [1940] topic [bing] count [1870] topic [FF] count [1602] topic [Merdeka55] count [532] topic [100ThingsILike] count [315] topic [RemajaIndonesiaIdola] count [267] topic [SeptemberWish] count [248] topic [ff] count [235] |