Hello Samza is a starter project for Apache Samza jobs.
Please see Hello Samza to get started.
export ARTIFACTORY_URL='http://<host>:<port>/artifactory/'
export ARTIFACTORY_REPOSITORY='libs-snapshot'
export ARTIFACTORY_USER='gradle'
export ARTIFACTORY_PASSWORD='<some_pass>'
./bin/grid bootstrap./bin/grid start all./gradlew clean distTarmkdir deploy/samzatar -xvf build/distributions/hello-samza-0.9.1.4-SNAPSHOT-dist.tar.gz -C deploy/samzadeploy/samza/bin/run-job.sh --config-factory=org.apache.samza.config.factories.PropertiesConfigFactory --config-path=file://$PWD/deploy/samza/config/pubnub-app-master.propertiescurl -H "Content-Type: application/json" -X POST -d "{ \"job.application_id\": 1, \"job.name\" : \"foo.bar\", \"max_memory_mb\" : 512, \"max_cpu_cores\" : 1, \"needed_containers\" : 2 }" http://localhost:7778/
from samza build/publish the subproject
./gradlew clean samza-yarn:generatePomFileForMavenJavaPublication samza-yarn:artifactoryPublish samza-core:generatePomFileForMavenJavaPublication samza-core:artifactoryPublish
from hello samza
rm -rf ~/.gradle/caches./gradlew clean distTarrm -rf deploy/samza && mkdir deploy/samzatar -xvf build/distributions/hello-samza-0.9.1.4-SNAPSHOT-dist.tar.gz -C deploy/samzadeploy/samza/bin/run-job.sh --config-factory=org.apache.samza.config.factories.PropertiesConfigFactory --config-path=file://$PWD/deploy/samza/config/pubnub-app-master.propertiescurl -H "Content-Type: application/json" -X POST -d "{ \"job.application_id\": 1, \"job.name\" : \"foo.bar\", \"max_memory_mb\" : 512, \"max_cpu_cores\" : 1, \"needed_containers\" : 2 }" http://localhost:7778/
There maybe a better way to clear gradle caches but haven't found it yet
Hello Samza is developed as part of the Apache Samza project. Please direct questions, improvements and bug fixes there. Questions about Hello Samza are welcome on the dev list and the Samza JIRA has a hello-samza component for filing tickets.
To start contributing on Hello Samza first read Rules and Contributor Corner. Notice that Hello Samza git repository does not support git pull request.