Author: chtyim
Date: Mon Aug 3 17:09:22 2015
New Revision: 1693936
URL: http://svn.apache.org/r1693936
Log:
Update Apache Twill site
Modified:
incubator/twill/site/GettingStarted.html
Modified: incubator/twill/site/GettingStarted.html
URL:
http://svn.apache.org/viewvc/incubator/twill/site/GettingStarted.html?rev=1693936&r1=1693935&r2=1693936&view=diff
==============================================================================
--- incubator/twill/site/GettingStarted.html (original)
+++ incubator/twill/site/GettingStarted.html Mon Aug 3 17:09:22 2015
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<!--
- Generated by Apache Maven Doxia at 2015-07-30
+ Generated by Apache Maven Doxia at 2015-08-03
Rendered using Reflow Maven Skin 1.1.1
(http://andriusvelykis.github.io/reflow-maven-skin)
-->
<html xml:lang="en" lang="en">
@@ -161,7 +161,7 @@
<pre><dependency>
<groupId>org.apache.twill</groupId>
<artifactId>twill-api</artifactId>
- <version>0.5.0-incubating</version>
+ <version>0.6.0-incubating</version>
</dependency>
</pre>
</div>
@@ -170,7 +170,7 @@
<pre><dependency>
<groupId>org.apache.twill</groupId>
<artifactId>twill-yarn</artifactId>
- <version>0.5.0-incubating</version>
+ <version>0.6.0-incubating</version>
</dependency>
</pre>
</div>
@@ -285,7 +285,7 @@ runnerService.startAndWait();
<p>The HelloWorld application creates a simple YARN application that
prints a line to the log.</p>
<p>You can run the HelloWorld application from any node of the Hadoop
cluster using the below command (be sure to add your ZooKeeper Host and
Port):</p>
<div class="source">
- <pre>$ export
CP=twill-examples-yarn-0.5.0-incubating-SNAPSHOT.jar:`hadoop classpath`
+ <pre>$ export
CP=twill-examples-yarn-0.6.0-incubating-SNAPSHOT.jar:`hadoop classpath`
$ java -cp $CP org.apache.twill.example.yarn.HelloWorld {zookeeper_host:port}
</pre>
</div>
@@ -300,9 +300,9 @@ $ java -cp $CP org.apache.twill.example.
<p>The BundledJarExample application demonstrates the Twill functionality
that allows you to run any Java application in Twill without worrying about
library version conflicts between your application and Hadoop. The example
calls the main class in a sample application <tt>Echo</tt>, which simply logs
the command line argument(s) passed to it. The <tt>Echo</tt> application uses a
different version of Guava from Twill and Hadoop distributions.
BundledJarExample looks for the dependency in a <tt>lib</tt> folder packaged at
the root of the <tt>Echo</tt> jar.</p>
<p>You can run the BundleJarExample application from any node of the
Hadoop cluster using the below command (be sure to add your ZooKeeper Host and
Port):</p>
<div class="source">
- <pre>$ export
CP=twill-examples-yarn-0.5.0-incubating-SNAPSHOT.jar:`hadoop classpath`
+ <pre>$ export
CP=twill-examples-yarn-0.6.0-incubating-SNAPSHOT.jar:`hadoop classpath`
$ java -cp $CP org.apache.twill.example.yarn.BundledJarExample
{zookeeper_host:port} \
- twill-examples-echo-0.5.0-incubating-SNAPSHOT.jar echo.EchoMain arg1
+ twill-examples-echo-0.6.0-incubating-SNAPSHOT.jar echo.EchoMain arg1
</pre>
</div>
<p>Like with the HelloWorld example, you should see logs output to the
terminal. Once the application is complete, check the YARN logs as before and
you should see output like the following:</p>