This tutorial uses hello-samza to illustrate how to run a Samza job if you want to publish the Samza job's .tar.gz package to HDFS.
Build a new Samza job package to include the hadoop-hdfs-version.jar.
<dependency> <groupId>org.apache.hadoop</groupId> <artifactId>hadoop-hdfs</artifactId> <version>2.2.0</version> </dependency>
<include>org.apache.hadoop:hadoop-hdfs</include>
mvn clean pacakge
hadoop fs -put ./samza-job-package/target/samza-job-package-0.7.0-dist.tar.gz /path/for/tgz
Put the hdfs-site.xml file of your cluster into ~/.samza/conf directory. (The same place as the yarn-site.xml)
Change the yarn.package.path in the properties file to your HDFS location.
yarn.package.path=hdfs://<hdfs name node ip>:<hdfs name node port>/path/to/tgz
Then you should be able to run the Samza job as described in hello-samza.