Repository: samza-hello-samza Updated Branches: refs/heads/latest 28d1ca175 -> 6c2624081
SAMZA-663: change README-gradle to markdown format Project: http://git-wip-us.apache.org/repos/asf/samza-hello-samza/repo Commit: http://git-wip-us.apache.org/repos/asf/samza-hello-samza/commit/c0ef56c1 Tree: http://git-wip-us.apache.org/repos/asf/samza-hello-samza/tree/c0ef56c1 Diff: http://git-wip-us.apache.org/repos/asf/samza-hello-samza/diff/c0ef56c1 Branch: refs/heads/latest Commit: c0ef56c1aecafce2569ad3c377a42f4926eab19f Parents: 28d1ca1 Author: Yan Fang <[email protected]> Authored: Wed Apr 29 09:48:41 2015 -0700 Committer: Yi Pan (Data Infrastructure) <[email protected]> Committed: Mon Dec 21 17:22:19 2015 -0800 ---------------------------------------------------------------------- README-gradle.md | 51 ++++++++++++++++++++++++++++++++++++++++++++++++++ README-gradle.txt | 51 -------------------------------------------------- 2 files changed, 51 insertions(+), 51 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/samza-hello-samza/blob/c0ef56c1/README-gradle.md ---------------------------------------------------------------------- diff --git a/README-gradle.md b/README-gradle.md new file mode 100644 index 0000000..a564427 --- /dev/null +++ b/README-gradle.md @@ -0,0 +1,51 @@ + +To use gradle to build/run the hello-samza project: + +1) the project is configured to download and use gradle version 2.3 - on first task execution, it will download the required gradle jars. + +2) download/install yarn/kafka/zookeeper: + + $ ./gradlew installGrid + +3) build hello-samza job package: + + $ ./gradlew distTar + +4) deploy hello-samza project to grid: + + $ ./gradlew deployHelloSamza + +5) start the grid (starts up yarn/kafka/zookeeper): + + $ ./gradlew startGrid + +6) run the various Samza tasks that are part of hello-samza project: + + $ ./gradlew runWikiFeed + $ ./gradlew runWikiParser + $ ./gradlew runWikiStats + +7) view all the current Kafka topics: + + $ ./gradlew listKafkaTopics + +8) view the Kafka topics output by the various Samza tasks: + + $ ./gradlew dumpWikiRaw + ( output of Kafka topic scrolls by) + CTRL-c + + $ ./gradlew dumpWikiEdits + ( output of Kafka topic scrolls by) + CTRL-c + + $ ./gradlew dumpWikiStats + ( output of Kafka topic scrolls by) + CTRL-c + +9) stop all the components: + + $ ./gradlew stopGrid + +Shortcut: using the 'runWiki*' tasks directly will do steps 3-6 automatically. + http://git-wip-us.apache.org/repos/asf/samza-hello-samza/blob/c0ef56c1/README-gradle.txt ---------------------------------------------------------------------- diff --git a/README-gradle.txt b/README-gradle.txt deleted file mode 100644 index a564427..0000000 --- a/README-gradle.txt +++ /dev/null @@ -1,51 +0,0 @@ - -To use gradle to build/run the hello-samza project: - -1) the project is configured to download and use gradle version 2.3 - on first task execution, it will download the required gradle jars. - -2) download/install yarn/kafka/zookeeper: - - $ ./gradlew installGrid - -3) build hello-samza job package: - - $ ./gradlew distTar - -4) deploy hello-samza project to grid: - - $ ./gradlew deployHelloSamza - -5) start the grid (starts up yarn/kafka/zookeeper): - - $ ./gradlew startGrid - -6) run the various Samza tasks that are part of hello-samza project: - - $ ./gradlew runWikiFeed - $ ./gradlew runWikiParser - $ ./gradlew runWikiStats - -7) view all the current Kafka topics: - - $ ./gradlew listKafkaTopics - -8) view the Kafka topics output by the various Samza tasks: - - $ ./gradlew dumpWikiRaw - ( output of Kafka topic scrolls by) - CTRL-c - - $ ./gradlew dumpWikiEdits - ( output of Kafka topic scrolls by) - CTRL-c - - $ ./gradlew dumpWikiStats - ( output of Kafka topic scrolls by) - CTRL-c - -9) stop all the components: - - $ ./gradlew stopGrid - -Shortcut: using the 'runWiki*' tasks directly will do steps 3-6 automatically. -
