You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@samza.apache.org by cr...@apache.org on 2014/07/09 18:37:02 UTC

svn commit: r1609232 [4/4] - in /incubator/samza/site: ./ community/ contribute/ css/ learn/documentation/0.7.0/ learn/documentation/0.7.0/api/ learn/documentation/0.7.0/comparisons/ learn/documentation/0.7.0/container/ learn/documentation/0.7.0/introd...

Modified: incubator/samza/site/learn/documentation/0.7.0/jobs/job-runner.html
URL: http://svn.apache.org/viewvc/incubator/samza/site/learn/documentation/0.7.0/jobs/job-runner.html?rev=1609232&r1=1609231&r2=1609232&view=diff
==============================================================================
--- incubator/samza/site/learn/documentation/0.7.0/jobs/job-runner.html (original)
+++ incubator/samza/site/learn/documentation/0.7.0/jobs/job-runner.html Wed Jul  9 16:37:01 2014
@@ -23,6 +23,7 @@
     <link href="/css/bootstrap.min.css" rel="stylesheet"/>
     <link href="/css/font-awesome.min.css" rel="stylesheet"/>
     <link href="/css/main.css" rel="stylesheet"/>
+    <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
   </head>
   <body>
@@ -123,30 +124,33 @@
 -->
 
 <p>Samza jobs are started using a script called run-job.sh.</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">samza-example/target/bin/run-job.sh \
-  --config-factory=samza.config.factories.PropertiesConfigFactory \
-  --config-path=file://$PWD/config/hello-world.properties
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash">samza-example/target/bin/run-job.sh <span class="se">\</span>
+  --config-factory<span class="o">=</span>samza.config.factories.PropertiesConfigFactory <span class="se">\</span>
+  --config-path<span class="o">=</span>file://<span class="nv">$PWD</span>/config/hello-world.properties</code></pre></div>
+
 <p>You provide two parameters to the run-job.sh script. One is the config location, and the other is a factory class that is used to read your configuration file. The run-job.sh script is actually executing a Samza class called JobRunner. The JobRunner uses your ConfigFactory to get a Config object from the config path.</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">public interface ConfigFactory {
-  Config getConfig(URI configUri);
-}
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-java" data-lang="java"><span class="kd">public</span> <span class="kd">interface</span> <span class="nc">ConfigFactory</span> <span class="o">{</span>
+  <span class="n">Config</span> <span class="nf">getConfig</span><span class="o">(</span><span class="n">URI</span> <span class="n">configUri</span><span class="o">);</span>
+<span class="o">}</span></code></pre></div>
+
 <p>The Config object is just a wrapper around Map<String, String>, with some nice helper methods. Out of the box, Samza ships with the PropertiesConfigFactory, but developers can implement any kind of ConfigFactory they wish.</p>
 
 <p>Once the JobRunner gets your configuration, it gives your configuration to the StreamJobFactory class defined by the &ldquo;job.factory&rdquo; property. Samza ships with two job factory implementations: LocalJobFactory and YarnJobFactory. The StreamJobFactory&rsquo;s responsibility is to give the JobRunner a job that it can run.</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">public interface StreamJob {
-  StreamJob submit();
 
-  StreamJob kill();
+<div class="highlight"><pre><code class="language-java" data-lang="java"><span class="kd">public</span> <span class="kd">interface</span> <span class="nc">StreamJob</span> <span class="o">{</span>
+  <span class="n">StreamJob</span> <span class="nf">submit</span><span class="o">();</span>
+
+  <span class="n">StreamJob</span> <span class="nf">kill</span><span class="o">();</span>
+
+  <span class="n">ApplicationStatus</span> <span class="nf">waitForFinish</span><span class="o">(</span><span class="kt">long</span> <span class="n">timeoutMs</span><span class="o">);</span>
 
-  ApplicationStatus waitForFinish(long timeoutMs);
+  <span class="n">ApplicationStatus</span> <span class="nf">waitForStatus</span><span class="o">(</span><span class="n">ApplicationStatus</span> <span class="n">status</span><span class="o">,</span> <span class="kt">long</span> <span class="n">timeoutMs</span><span class="o">);</span>
 
-  ApplicationStatus waitForStatus(ApplicationStatus status, long timeoutMs);
+  <span class="n">ApplicationStatus</span> <span class="nf">getStatus</span><span class="o">();</span>
+<span class="o">}</span></code></pre></div>
 
-  ApplicationStatus getStatus();
-}
-</code></pre></div>
 <p>Once the JobRunner gets a job, it calls submit() on the job. This method is what tells the StreamJob implementation to start the SamzaContainer. In the case of LocalJobRunner, it uses a run-container.sh script to execute the SamzaContainer in a separate process, which will start one SamzaContainer locally on the machine that you ran run-job.sh on.</p>
 
 <p>This flow differs slightly when you use YARN, but we&rsquo;ll get to that later.</p>

Modified: incubator/samza/site/learn/documentation/0.7.0/jobs/logging.html
URL: http://svn.apache.org/viewvc/incubator/samza/site/learn/documentation/0.7.0/jobs/logging.html?rev=1609232&r1=1609231&r2=1609232&view=diff
==============================================================================
--- incubator/samza/site/learn/documentation/0.7.0/jobs/logging.html (original)
+++ incubator/samza/site/learn/documentation/0.7.0/jobs/logging.html Wed Jul  9 16:37:01 2014
@@ -23,6 +23,7 @@
     <link href="/css/bootstrap.min.css" rel="stylesheet"/>
     <link href="/css/font-awesome.min.css" rel="stylesheet"/>
     <link href="/css/main.css" rel="stylesheet"/>
+    <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
   </head>
   <body>
@@ -127,58 +128,63 @@
 <h3 id="log4j">Log4j</h3>
 
 <p>The <a href="/startup/hello-samza/0.7.0">hello-samza</a> project shows how to use <a href="http://logging.apache.org/log4j/1.2/">log4j</a> with Samza. To turn on log4j logging, you just need to make sure slf4j-log4j12 is in your SamzaContainer&rsquo;s classpath. In Maven, this can be done by adding the following dependency to your Samza package project.</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">&lt;dependency&gt;
-  &lt;groupId&gt;org.slf4j&lt;/groupId&gt;
-  &lt;artifactId&gt;slf4j-log4j12&lt;/artifactId&gt;
-  &lt;scope&gt;runtime&lt;/scope&gt;
-  &lt;version&gt;1.6.2&lt;/version&gt;
-&lt;/dependency&gt;
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-xml" data-lang="xml"><span class="nt">&lt;dependency&gt;</span>
+  <span class="nt">&lt;groupId&gt;</span>org.slf4j<span class="nt">&lt;/groupId&gt;</span>
+  <span class="nt">&lt;artifactId&gt;</span>slf4j-log4j12<span class="nt">&lt;/artifactId&gt;</span>
+  <span class="nt">&lt;scope&gt;</span>runtime<span class="nt">&lt;/scope&gt;</span>
+  <span class="nt">&lt;version&gt;</span>1.6.2<span class="nt">&lt;/version&gt;</span>
+<span class="nt">&lt;/dependency&gt;</span></code></pre></div>
+
 <p>If you&rsquo;re not using Maven, just make sure that slf4j-log4j12 ends up in your Samza package&rsquo;s lib directory.</p>
 
 <h4 id="log4j-configuration">Log4j configuration</h4>
 
 <p>Samza&rsquo;s <a href="packaging.html">run-class.sh</a> script will automatically set the following setting if log4j.xml exists in your <a href="packaging.html">Samza package&rsquo;s</a> lib directory.</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">-Dlog4j.configuration=file:$base_dir/lib/log4j.xml
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash">-Dlog4j.configuration<span class="o">=</span>file:<span class="nv">$base_dir</span>/lib/log4j.xml</code></pre></div>
+
 <p>The <a href="packaging.html">run-class.sh</a> script will also set the following Java system properties:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">-Dsamza.log.dir=$SAMZA_LOG_DIR -Dsamza.container.name=$SAMZA_CONTAINER_NAME
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash">-Dsamza.log.dir<span class="o">=</span><span class="nv">$SAMZA_LOG_DIR</span> -Dsamza.container.name<span class="o">=</span><span class="nv">$SAMZA_CONTAINER_NAME</span><span class="o">=</span></code></pre></div>
+
 <p>These settings are very useful if you&rsquo;re using a file-based appender. For example, you can use a daily rolling appender by configuring log4j.xml like this:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">&lt;appender name=&quot;RollingAppender&quot; class=&quot;org.apache.log4j.DailyRollingFileAppender&quot;&gt;
-   &lt;param name=&quot;File&quot; value=&quot;${samza.log.dir}/${samza.container.name}.log&quot; /&gt;
-   &lt;param name=&quot;DatePattern&quot; value=&quot;&#39;.&#39;yyyy-MM-dd&quot; /&gt;
-   &lt;layout class=&quot;org.apache.log4j.PatternLayout&quot;&gt;
-    &lt;param name=&quot;ConversionPattern&quot; value=&quot;%d{yyyy-MM-dd HH:mm:ss} %c{1} [%p] %m%n&quot; /&gt;
-   &lt;/layout&gt;
-&lt;/appender&gt;
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-xml" data-lang="xml"><span class="nt">&lt;appender</span> <span class="na">name=</span><span class="s">&quot;RollingAppender&quot;</span> <span class="na">class=</span><span class="s">&quot;org.apache.log4j.DailyRollingFileAppender&quot;</span><span class="nt">&gt;</span>
+   <span class="nt">&lt;param</span> <span class="na">name=</span><span class="s">&quot;File&quot;</span> <span class="na">value=</span><span class="s">&quot;${samza.log.dir}/${samza.container.name}.log&quot;</span> <span class="nt">/&gt;</span>
+   <span class="nt">&lt;param</span> <span class="na">name=</span><span class="s">&quot;DatePattern&quot;</span> <span class="na">value=</span><span class="s">&quot;&#39;.&#39;yyyy-MM-dd&quot;</span> <span class="nt">/&gt;</span>
+   <span class="nt">&lt;layout</span> <span class="na">class=</span><span class="s">&quot;org.apache.log4j.PatternLayout&quot;</span><span class="nt">&gt;</span>
+    <span class="nt">&lt;param</span> <span class="na">name=</span><span class="s">&quot;ConversionPattern&quot;</span> <span class="na">value=</span><span class="s">&quot;%d{yyyy-MM-dd HH:mm:ss} %c{1} [%p] %m%n&quot;</span> <span class="nt">/&gt;</span>
+   <span class="nt">&lt;/layout&gt;</span>
+<span class="nt">&lt;/appender&gt;</span></code></pre></div>
+
 <p>Setting up a file-based appender is recommended as a better alternative to using standard out. Standard out log files (see below) don&rsquo;t roll, and can get quite large if used for logging.</p>
 
-<p><strong>NOTE:</strong> If you use the task.opts configuration property, the log configuration is disrupted. This is a known bug; please see <a href="https://issues.apache.org/jira/browse/SAMZA-109">SAMZA-109</a> for a workaround.</p>
+<p><strong>NOTE:</strong> If you use the <code>task.opts</code> configuration property, the log configuration is disrupted. This is a known bug; please see <a href="https://issues.apache.org/jira/browse/SAMZA-109">SAMZA-109</a> for a workaround.</p>
 
 <h3 id="log-directory">Log Directory</h3>
 
-<p>Samza will look for the <em>SAMZA</em>_<em>LOG</em>_<em>DIR</em> environment variable when it executes. If this variable is defined, all logs will be written to this directory. If the environment variable is empty, or not defined, then Samza will use /tmp. This environment variable can also be referenced inside log4j.xml files (see above).</p>
+<p>Samza will look for the <code>SAMZA_LOG_DIR</code> environment variable when it executes. If this variable is defined, all logs will be written to this directory. If the environment variable is empty, or not defined, then Samza will use /tmp. This environment variable can also be referenced inside log4j.xml files (see above).</p>
 
 <h3 id="garbage-collection-logging">Garbage Collection Logging</h3>
 
-<p>Samza&rsquo;s will automatically set the following garbage collection logging setting, and will output it to <em>$SAMZA</em>_<em>LOG</em>_<em>DIR</em>/gc.log.</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">-XX:+PrintGCDateStamps -Xloggc:$SAMZA_LOG_DIR/gc.log
-</code></pre></div>
+<p>Samza&rsquo;s will automatically set the following garbage collection logging setting, and will output it to <code>$SAMZA_LOG_DIR/gc.log</code>.</p>
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash">-XX:+PrintGCDateStamps -Xloggc:<span class="nv">$SAMZA_LOG_DIR</span>/gc.log</code></pre></div>
+
 <h4 id="rotation">Rotation</h4>
 
 <p>In older versions of Java, it is impossible to have GC logs roll over based on time or size without the use of a secondary tool. This means that your GC logs will never be deleted until a Samza job ceases to run. As of <a href="http://www.oracle.com/technetwork/java/javase/2col/6u34-bugfixes-1733379.html">Java 6 Update 34</a>, and <a href="http://www.oracle.com/technetwork/java/javase/7u2-relnotes-1394228.html">Java 7 Update 2</a>, <a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6941923">new GC command line switches</a> have been added to support this functionality. If you are using a version of Java that supports GC log rotation, it&rsquo;s highly recommended that you turn it on.</p>
 
 <h3 id="yarn">YARN</h3>
 
-<p>When a Samza job executes on a YARN grid, the <em>$SAMZA</em>_<em>LOG</em>_<em>DIR</em> environment variable will point to a directory that is secured such that only the user executing the Samza job can read and write to it, if YARN is <a href="http://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/ClusterSetup.html">securely configured</a>.</p>
+<p>When a Samza job executes on a YARN grid, the <code>$SAMZA_LOG_DIR</code> environment variable will point to a directory that is secured such that only the user executing the Samza job can read and write to it, if YARN is <a href="http://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/ClusterSetup.html">securely configured</a>.</p>
 
 <h4 id="stdout">STDOUT</h4>
 
 <p>Samza&rsquo;s <a href="../yarn/application-master.html">ApplicationMaster</a> pipes all STDOUT and STDERR output to logs/stdout and logs/stderr, respectively. These files are never rotated.</p>
 
-<h2 id="application-master-&raquo;"><a href="../yarn/application-master.html">Application Master &raquo;</a></h2>
+<h2 id="reprocessing-&raquo;"><a href="reprocessing.html">Reprocessing &raquo;</a></h2>
 
 
           </div>

Modified: incubator/samza/site/learn/documentation/0.7.0/jobs/packaging.html
URL: http://svn.apache.org/viewvc/incubator/samza/site/learn/documentation/0.7.0/jobs/packaging.html?rev=1609232&r1=1609231&r2=1609232&view=diff
==============================================================================
--- incubator/samza/site/learn/documentation/0.7.0/jobs/packaging.html (original)
+++ incubator/samza/site/learn/documentation/0.7.0/jobs/packaging.html Wed Jul  9 16:37:01 2014
@@ -23,6 +23,7 @@
     <link href="/css/bootstrap.min.css" rel="stylesheet"/>
     <link href="/css/font-awesome.min.css" rel="stylesheet"/>
     <link href="/css/main.css" rel="stylesheet"/>
+    <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
   </head>
   <body>

Modified: incubator/samza/site/learn/documentation/0.7.0/jobs/yarn-jobs.html
URL: http://svn.apache.org/viewvc/incubator/samza/site/learn/documentation/0.7.0/jobs/yarn-jobs.html?rev=1609232&r1=1609231&r2=1609232&view=diff
==============================================================================
--- incubator/samza/site/learn/documentation/0.7.0/jobs/yarn-jobs.html (original)
+++ incubator/samza/site/learn/documentation/0.7.0/jobs/yarn-jobs.html Wed Jul  9 16:37:01 2014
@@ -23,6 +23,7 @@
     <link href="/css/bootstrap.min.css" rel="stylesheet"/>
     <link href="/css/font-awesome.min.css" rel="stylesheet"/>
     <link href="/css/main.css" rel="stylesheet"/>
+    <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
   </head>
   <body>
@@ -122,11 +123,12 @@
    limitations under the License.
 -->
 
-<p>When you define job.factory.class=org.apache.samza.job.yarn.YarnJobFactory in your job&rsquo;s configuration, Samza will use YARN to execute your job. The YarnJobFactory will use the YARN_HOME environment variable on the machine that run-job.sh is executed on to get the appropriate YARN configuration, which will define where the YARN resource manager is. The YarnJob will work with the resource manager to get your job started on the YARN cluster.</p>
+<p>When you define <code>job.factory.class=org.apache.samza.job.yarn.YarnJobFactory</code> in your job&rsquo;s configuration, Samza will use YARN to execute your job. The YarnJobFactory will use the YARN_HOME environment variable on the machine that run-job.sh is executed on to get the appropriate YARN configuration, which will define where the YARN resource manager is. The YarnJob will work with the resource manager to get your job started on the YARN cluster.</p>
 
 <p>If you want to use YARN to run your Samza job, you&rsquo;ll also need to define the location of your Samza job&rsquo;s package. For example, you might say:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">yarn.package.path=http://my.http.server/jobs/ingraphs-package-0.0.55.tgz
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-jproperties" data-lang="jproperties"><span class="na">yarn.package.path</span><span class="o">=</span><span class="s">http://my.http.server/jobs/ingraphs-package-0.0.55.tgz</span></code></pre></div>
+
 <p>This .tgz file follows the conventions outlined on the <a href="packaging.html">Packaging</a> page (it has bin/run-am.sh and bin/run-container.sh). YARN NodeManagers will take responsibility for downloading this .tgz file on the appropriate machines, and untar&#39;ing them. From there, YARN will execute run-am.sh or run-container.sh for the Samza Application Master, and SamzaContainer, respectively.</p>
 
 <!-- TODO document yarn.container.count and other key configs -->

Modified: incubator/samza/site/learn/documentation/0.7.0/operations/kafka.html
URL: http://svn.apache.org/viewvc/incubator/samza/site/learn/documentation/0.7.0/operations/kafka.html?rev=1609232&r1=1609231&r2=1609232&view=diff
==============================================================================
--- incubator/samza/site/learn/documentation/0.7.0/operations/kafka.html (original)
+++ incubator/samza/site/learn/documentation/0.7.0/operations/kafka.html Wed Jul  9 16:37:01 2014
@@ -23,6 +23,7 @@
     <link href="/css/bootstrap.min.css" rel="stylesheet"/>
     <link href="/css/font-awesome.min.css" rel="stylesheet"/>
     <link href="/css/main.css" rel="stylesheet"/>
+    <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
   </head>
   <body>
@@ -131,8 +132,9 @@
 <h3 id="auto-create-topics">Auto-Create Topics</h3>
 
 <p>Kafka brokers should be configured to automatically create topics. Without this, it&rsquo;s going to be very cumbersome to run Samze jobs, since jobs will write to arbitrary (and sometimes new) topics.</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">auto.create.topics.enable=true
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-jproperties" data-lang="jproperties"><span class="na">auto.create.topics.enable</span><span class="o">=</span><span class="s">true</span></code></pre></div>
+
 
           </div>
         </div>

Modified: incubator/samza/site/learn/documentation/0.7.0/operations/security.html
URL: http://svn.apache.org/viewvc/incubator/samza/site/learn/documentation/0.7.0/operations/security.html?rev=1609232&r1=1609231&r2=1609232&view=diff
==============================================================================
--- incubator/samza/site/learn/documentation/0.7.0/operations/security.html (original)
+++ incubator/samza/site/learn/documentation/0.7.0/operations/security.html Wed Jul  9 16:37:01 2014
@@ -23,6 +23,7 @@
     <link href="/css/bootstrap.min.css" rel="stylesheet"/>
     <link href="/css/font-awesome.min.css" rel="stylesheet"/>
     <link href="/css/main.css" rel="stylesheet"/>
+    <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
   </head>
   <body>

Modified: incubator/samza/site/learn/documentation/0.7.0/yarn/application-master.html
URL: http://svn.apache.org/viewvc/incubator/samza/site/learn/documentation/0.7.0/yarn/application-master.html?rev=1609232&r1=1609231&r2=1609232&view=diff
==============================================================================
--- incubator/samza/site/learn/documentation/0.7.0/yarn/application-master.html (original)
+++ incubator/samza/site/learn/documentation/0.7.0/yarn/application-master.html Wed Jul  9 16:37:01 2014
@@ -23,6 +23,7 @@
     <link href="/css/bootstrap.min.css" rel="stylesheet"/>
     <link href="/css/font-awesome.min.css" rel="stylesheet"/>
     <link href="/css/main.css" rel="stylesheet"/>
+    <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
   </head>
   <body>
@@ -146,7 +147,7 @@
 
 <h3 id="fault-tolerance">Fault Tolerance</h3>
 
-<p>Whenever a container is allocated, the AM will work with the YARN NM to start a SamzaContainer (with appropriate partitions assigned to it) in the container. If a container fails with a non-zero return code, the AM will request a new container, and restart the SamzaContainer. If a SamzaContainer fails too many times, too quickly, the ApplicationMaster will fail the whole Samza job with a non-zero return code. See the yarn.countainer.retry.count and yarn.container.retry.window.ms <a href="../jobs/configuration.html">configuration</a> parameters for details.</p>
+<p>Whenever a container is allocated, the AM will work with the YARN NM to start a SamzaContainer (with appropriate partitions assigned to it) in the container. If a container fails with a non-zero return code, the AM will request a new container, and restart the SamzaContainer. If a SamzaContainer fails too many times, too quickly, the ApplicationMaster will fail the whole Samza job with a non-zero return code. See the yarn.container.retry.count and yarn.container.retry.window.ms <a href="../jobs/configuration.html">configuration</a> parameters for details.</p>
 
 <p>When the AM receives a reboot signal from YARN, it will throw a SamzaException. This will trigger a clean and successful shutdown of the AM (YARN won&rsquo;t think the AM failed).</p>
 

Modified: incubator/samza/site/learn/documentation/0.7.0/yarn/isolation.html
URL: http://svn.apache.org/viewvc/incubator/samza/site/learn/documentation/0.7.0/yarn/isolation.html?rev=1609232&r1=1609231&r2=1609232&view=diff
==============================================================================
--- incubator/samza/site/learn/documentation/0.7.0/yarn/isolation.html (original)
+++ incubator/samza/site/learn/documentation/0.7.0/yarn/isolation.html Wed Jul  9 16:37:01 2014
@@ -23,6 +23,7 @@
     <link href="/css/bootstrap.min.css" rel="stylesheet"/>
     <link href="/css/font-awesome.min.css" rel="stylesheet"/>
     <link href="/css/main.css" rel="stylesheet"/>
+    <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
   </head>
   <body>

Modified: incubator/samza/site/learn/tutorials/0.7.0/deploy-samza-job-from-hdfs.html
URL: http://svn.apache.org/viewvc/incubator/samza/site/learn/tutorials/0.7.0/deploy-samza-job-from-hdfs.html?rev=1609232&r1=1609231&r2=1609232&view=diff
==============================================================================
--- incubator/samza/site/learn/tutorials/0.7.0/deploy-samza-job-from-hdfs.html (original)
+++ incubator/samza/site/learn/tutorials/0.7.0/deploy-samza-job-from-hdfs.html Wed Jul  9 16:37:01 2014
@@ -23,6 +23,7 @@
     <link href="/css/bootstrap.min.css" rel="stylesheet"/>
     <link href="/css/font-awesome.min.css" rel="stylesheet"/>
     <link href="/css/main.css" rel="stylesheet"/>
+    <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
   </head>
   <body>
@@ -131,29 +132,33 @@
 <ul>
 <li>Add dependency statement in pom.xml of samza-job-package</li>
 </ul>
-<div class="highlight"><pre><code class="language-text" data-lang="text">&lt;dependency&gt;
-  &lt;groupId&gt;org.apache.hadoop&lt;/groupId&gt;
-  &lt;artifactId&gt;hadoop-hdfs&lt;/artifactId&gt;
-  &lt;version&gt;2.2.0&lt;/version&gt;
-&lt;/dependency&gt;
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-xml" data-lang="xml"><span class="nt">&lt;dependency&gt;</span>
+  <span class="nt">&lt;groupId&gt;</span>org.apache.hadoop<span class="nt">&lt;/groupId&gt;</span>
+  <span class="nt">&lt;artifactId&gt;</span>hadoop-hdfs<span class="nt">&lt;/artifactId&gt;</span>
+  <span class="nt">&lt;version&gt;</span>2.2.0<span class="nt">&lt;/version&gt;</span>
+<span class="nt">&lt;/dependency&gt;</span></code></pre></div>
+
 <ul>
 <li>Add the following code to src/main/assembly/src.xml in samza-job-package.</li>
 </ul>
-<div class="highlight"><pre><code class="language-text" data-lang="text">&lt;include&gt;org.apache.hadoop:hadoop-hdfs&lt;/include&gt;
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-xml" data-lang="xml"><span class="nt">&lt;include&gt;</span>org.apache.hadoop:hadoop-hdfs<span class="nt">&lt;/include&gt;</span></code></pre></div>
+
 <ul>
 <li>Create .tar.gz package</li>
 </ul>
-<div class="highlight"><pre><code class="language-text" data-lang="text">mvn clean pacakge
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash">mvn clean pacakge</code></pre></div>
+
 <ul>
 <li>Make sure hadoop-common-version.jar has the same version as your hadoop-hdfs-version.jar. Otherwise, you may still have errors.</li>
 </ul>
 
 <h3 id="upload-the-package">Upload the package</h3>
-<div class="highlight"><pre><code class="language-text" data-lang="text">hadoop fs -put ./samza-job-package/target/samza-job-package-0.7.0-dist.tar.gz /path/for/tgz
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash">hadoop fs -put ./samza-job-package/target/samza-job-package-0.7.0-dist.tar.gz /path/for/tgz</code></pre></div>
+
 <h3 id="add-hdfs-configuration">Add HDFS configuration</h3>
 
 <p>Put the hdfs-site.xml file of your cluster into ~/.samza/conf directory. (The same place as the yarn-site.xml)</p>
@@ -161,8 +166,9 @@
 <h3 id="change-properties-file">Change properties file</h3>
 
 <p>Change the yarn.package.path in the properties file to your HDFS location.</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">yarn.package.path=hdfs://&lt;hdfs name node ip&gt;:&lt;hdfs name node port&gt;/path/to/tgz
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-jproperties" data-lang="jproperties"><span class="na">yarn.package.path</span><span class="o">=</span><span class="s">hdfs://&lt;hdfs name node ip&gt;:&lt;hdfs name node port&gt;/path/to/tgz</span></code></pre></div>
+
 <p>Then you should be able to run the Samza job as described in <a href="../../../startup/hello-samza/0.7.0/">hello-samza</a>.</p>
 
 

Modified: incubator/samza/site/learn/tutorials/0.7.0/index.html
URL: http://svn.apache.org/viewvc/incubator/samza/site/learn/tutorials/0.7.0/index.html?rev=1609232&r1=1609231&r2=1609232&view=diff
==============================================================================
--- incubator/samza/site/learn/tutorials/0.7.0/index.html (original)
+++ incubator/samza/site/learn/tutorials/0.7.0/index.html Wed Jul  9 16:37:01 2014
@@ -23,6 +23,7 @@
     <link href="/css/bootstrap.min.css" rel="stylesheet"/>
     <link href="/css/font-awesome.min.css" rel="stylesheet"/>
     <link href="/css/main.css" rel="stylesheet"/>
+    <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
   </head>
   <body>

Modified: incubator/samza/site/learn/tutorials/0.7.0/remote-debugging-samza.html
URL: http://svn.apache.org/viewvc/incubator/samza/site/learn/tutorials/0.7.0/remote-debugging-samza.html?rev=1609232&r1=1609231&r2=1609232&view=diff
==============================================================================
--- incubator/samza/site/learn/tutorials/0.7.0/remote-debugging-samza.html (original)
+++ incubator/samza/site/learn/tutorials/0.7.0/remote-debugging-samza.html Wed Jul  9 16:37:01 2014
@@ -23,6 +23,7 @@
     <link href="/css/bootstrap.min.css" rel="stylesheet"/>
     <link href="/css/font-awesome.min.css" rel="stylesheet"/>
     <link href="/css/main.css" rel="stylesheet"/>
+    <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
   </head>
   <body>
@@ -127,27 +128,32 @@
 <h3 id="get-the-code">Get the Code</h3>
 
 <p>Start by checking out Samza, so we have access to the source.</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">git clone http://git-wip-us.apache.org/repos/asf/incubator-samza.git
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash">git clone http://git-wip-us.apache.org/repos/asf/incubator-samza.git</code></pre></div>
+
 <p>Next, grab hello-samza.</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">git clone git://git.apache.org/incubator-samza-hello-samza.git
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash">git clone git://git.apache.org/incubator-samza-hello-samza.git</code></pre></div>
+
 <h3 id="setup-the-environment">Setup the Environment</h3>
 
 <p>Now, let&rsquo;s setup the Eclipse project files.</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">cd incubator-samza
-./gradlew eclipse
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash"><span class="nb">cd </span>incubator-samza
+./gradlew eclipse</code></pre></div>
+
 <p>Let&rsquo;s also release Samza to Maven&rsquo;s local repository, so hello-samza has access to the JARs that it needs.</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">./gradlew -PscalaVersion=2.9.2 clean publishToMavenLocal
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash">./gradlew -PscalaVersion<span class="o">=</span>2.9.2 clean publishToMavenLocal</code></pre></div>
+
 <p>Next, open Eclipse, and import the Samza source code into your workspace: &ldquo;File&rdquo; &gt; &ldquo;Import&rdquo; &gt; &ldquo;Existing Projects into Workspace&rdquo; &gt; &ldquo;Browse&rdquo;. Select &lsquo;incubator-samza&rsquo; folder, and hit &lsquo;finish&rsquo;.</p>
 
 <h3 id="enable-remote-debugging">Enable Remote Debugging</h3>
 
 <p>Now, go back to the hello-samza project, and edit ./samza-job-package/src/main/config/wikipedia-feed.properties to add the following line:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">task.opts=-agentlib:jdwp=transport=dt_socket,address=localhost:9009,server=y,suspend=y
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-jproperties" data-lang="jproperties"><span class="na">task.opts</span><span class="o">=</span><span class="s">-agentlib:jdwp=transport=dt_socket,address=localhost:9009,server=y,suspend=y</span></code></pre></div>
+
 <p>The <a href="../../documentation/0.7.0/jobs/configuration-table.html">task.opts</a> configuration parameter is a way to override Java parameters at runtime for your Samza containers. In this example, we&rsquo;re setting the agentlib parameter to enable remote debugging on localhost, port 9009. In a more realistic environment, you might also set Java heap settings (-Xmx, -Xms, etc), as well as garbage collection and logging settings.</p>
 
 <p><em>NOTE: If you&rsquo;re running multiple Samza containers on the same machine, there is a potential for port collisions. You must configure your task.opts to assign different ports for different Samza jobs. If a Samza job has more than one container (e.g. if you&rsquo;re using YARN with yarn.container.count=2), those containers must be run on different machines.</em></p>
@@ -155,17 +161,20 @@
 <h3 id="start-the-grid">Start the Grid</h3>
 
 <p>Now that the Samza job has been setup to enable remote debugging when a Samza container starts, let&rsquo;s start the ZooKeeper, Kafka, and YARN.</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">bin/grid
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash">bin/grid</code></pre></div>
+
 <p>If you get a complaint that JAVA_HOME is not set, then you&rsquo;ll need to set it. This can be done on OSX by running:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">export JAVA_HOME=$(/usr/libexec/java_home)
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash"><span class="nb">export </span><span class="nv">JAVA_HOME</span><span class="o">=</span><span class="k">$(</span>/usr/libexec/java_home<span class="k">)</span></code></pre></div>
+
 <p>Once the grid starts, you can start the wikipedia-feed Samza job.</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">mvn clean package
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash">mvn clean package
 mkdir -p deploy/samza
 tar -xvf ./samza-job-package/target/samza-job-package-0.7.0-dist.tar.gz -C deploy/samza
-deploy/samza/bin/run-job.sh --config-factory=org.apache.samza.config.factories.PropertiesConfigFactory --config-path=file://$PWD/deploy/samza/config/wikipedia-feed.properties
-</code></pre></div>
+deploy/samza/bin/run-job.sh --config-factory<span class="o">=</span>org.apache.samza.config.factories.PropertiesConfigFactory --config-path<span class="o">=</span>file://<span class="nv">$PWD</span>/deploy/samza/config/wikipedia-feed.properties</code></pre></div>
+
 <p>When the wikipedia-feed job starts up, a single Samza container will be created to process all incoming messages. This is the container that we&rsquo;ll want to connect to from the remote debugger.</p>
 
 <h3 id="connect-the-remote-debugger">Connect the Remote Debugger</h3>

Modified: incubator/samza/site/learn/tutorials/0.7.0/run-hello-samza-without-internet.html
URL: http://svn.apache.org/viewvc/incubator/samza/site/learn/tutorials/0.7.0/run-hello-samza-without-internet.html?rev=1609232&r1=1609231&r2=1609232&view=diff
==============================================================================
--- incubator/samza/site/learn/tutorials/0.7.0/run-hello-samza-without-internet.html (original)
+++ incubator/samza/site/learn/tutorials/0.7.0/run-hello-samza-without-internet.html Wed Jul  9 16:37:01 2014
@@ -23,6 +23,7 @@
     <link href="/css/bootstrap.min.css" rel="stylesheet"/>
     <link href="/css/font-awesome.min.css" rel="stylesheet"/>
     <link href="/css/main.css" rel="stylesheet"/>
+    <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
   </head>
   <body>
@@ -127,8 +128,9 @@
 <h3 id="test-your-connection">Test Your Connection</h3>
 
 <p>Ping irc.wikimedia.org. Sometimes the firewall in your company blocks this service.</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">telnet irc.wikimedia.org 6667
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash">telnet irc.wikimedia.org 6667</code></pre></div>
+
 <p>You should see something like this:</p>
 <div class="highlight"><pre><code class="language-text" data-lang="text">Trying 208.80.152.178...
 Connected to ekrem.wikimedia.org.
@@ -143,23 +145,25 @@ NOTICE AUTH :*** Found your hostname
 <h3 id="use-local-data-to-run-hello-samza">Use Local Data to Run Hello Samza</h3>
 
 <p>We provide an alternative to get wikipedia feed data. Instead of running</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">deploy/samza/bin/run-job.sh --config-factory=org.apache.samza.config.factories.PropertiesConfigFactory --config-path=file://$PWD/deploy/samza/config/wikipedia-feed.properties
-</code></pre></div>
-<p>You will run
-<code>
-bin/produce-wikipedia-raw-data.sh
-</code> </p>
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash">deploy/samza/bin/run-job.sh --config-factory<span class="o">=</span>org.apache.samza.config.factories.PropertiesConfigFactory --config-path<span class="o">=</span>file://<span class="nv">$PWD</span>/deploy/samza/config/wikipedia-feed.properties</code></pre></div>
+
+<p>You will run</p>
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash">bin/produce-wikipedia-raw-data.sh</code></pre></div>
 
 <p>This script will read wikipedia feed data from local file and produce them to the Kafka broker. By default, it produces to localhost:9092 as the Kafka broker and uses localhost:2181 as zookeeper. You can overwrite them:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">bin/produce-wikipedia-raw-data.sh -b yourKafkaBrokerAddress -z yourZookeeperAddress
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash">bin/produce-wikipedia-raw-data.sh -b yourKafkaBrokerAddress -z yourZookeeperAddress</code></pre></div>
+
 <p>Now you can go back to Generate Wikipedia Statistics section in <a href="../../../startup/hello-samza/0.7.0/">Hello Samza</a> and follow the remaining steps.</p>
 
 <h3 id="a-little-explanation">A Little Explanation</h3>
 
-<p>The goal of </p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">deploy/samza/bin/run-job.sh --config-factory=org.apache.samza.config.factories.PropertiesConfigFactory --config-path=file://$PWD/deploy/samza/config/wikipedia-feed.properties
-</code></pre></div>
+<p>The goal of</p>
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash">deploy/samza/bin/run-job.sh --config-factory<span class="o">=</span>org.apache.samza.config.factories.PropertiesConfigFactory --config-path<span class="o">=</span>file://<span class="nv">$PWD</span>/deploy/samza/config/wikipedia-feed.properties</code></pre></div>
+
 <p>is to deploy a Samza job which listens to wikipedia API, receives the feed in realtime and produces the feed to the Kafka topic wikipedia-raw. The alternative in this tutorial is reading local wikipedia feed in an infinite loop and producing the data to Kafka wikipedia-raw. The follow-up job, wikipedia-parser is getting data from Kafka topic wikipedia-raw, so as long as we have correct data in Kafka topic wikipedia-raw, we are fine. All Samza jobs are connected by the Kafka and do not depend on each other.</p>
 
 

Modified: incubator/samza/site/learn/tutorials/0.7.0/run-in-multi-node-yarn.html
URL: http://svn.apache.org/viewvc/incubator/samza/site/learn/tutorials/0.7.0/run-in-multi-node-yarn.html?rev=1609232&r1=1609231&r2=1609232&view=diff
==============================================================================
--- incubator/samza/site/learn/tutorials/0.7.0/run-in-multi-node-yarn.html (original)
+++ incubator/samza/site/learn/tutorials/0.7.0/run-in-multi-node-yarn.html Wed Jul  9 16:37:01 2014
@@ -23,6 +23,7 @@
     <link href="/css/bootstrap.min.css" rel="stylesheet"/>
     <link href="/css/font-awesome.min.css" rel="stylesheet"/>
     <link href="/css/main.css" rel="stylesheet"/>
+    <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
   </head>
   <body>
@@ -131,26 +132,30 @@
 <h3 id="basic-yarn-setting">Basic YARN Setting</h3>
 
 <p>1. Dowload <a href="http://mirror.symnds.com/software/Apache/hadoop/common/hadoop-2.3.0/hadoop-2.3.0.tar.gz">YARN 2.3</a> to /tmp and untar it.</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">cd /tmp
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash"><span class="nb">cd</span> /tmp
 tar -xvf hadoop-2.3.0.tar.gz
-cd hadoop-2.3.0
-</code></pre></div>
+<span class="nb">cd </span>hadoop-2.3.0</code></pre></div>
+
 <p>2. Set up environment variables.</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">export HADOOP_YARN_HOME=$(pwd)
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash"><span class="nb">export </span><span class="nv">HADOOP_YARN_HOME</span><span class="o">=</span><span class="k">$(</span><span class="nb">pwd</span><span class="k">)</span>
 mkdir conf
-export HADOOP_CONF_DIR=$HADOOP_YARN_HOME/conf
-</code></pre></div>
+<span class="nb">export </span><span class="nv">HADOOP_CONF_DIR</span><span class="o">=</span><span class="nv">$HADOOP_YARN_HOME</span>/conf</code></pre></div>
+
 <p>3. Configure YARN setting file.</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">cp ./etc/hadoop/yarn-site.xml conf
-vi conf/yarn-site.xml
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash">cp ./etc/hadoop/yarn-site.xml conf
+vi conf/yarn-site.xml</code></pre></div>
+
 <p>Add the following property to yarn-site.xml:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">&lt;property&gt;
-    &lt;name&gt;yarn.resourcemanager.hostname&lt;/name&gt;
-    &lt;!-- hostname that is accessible from all NMs --&gt;
-    &lt;value&gt;yourHostname&lt;/value&gt;
-&lt;/property&gt;
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-xml" data-lang="xml"><span class="nt">&lt;property&gt;</span>
+    <span class="nt">&lt;name&gt;</span>yarn.resourcemanager.hostname<span class="nt">&lt;/name&gt;</span>
+    <span class="c">&lt;!-- hostname that is accessible from all NMs --&gt;</span>
+    <span class="nt">&lt;value&gt;</span>yourHostname<span class="nt">&lt;/value&gt;</span>
+<span class="nt">&lt;/property&gt;</span></code></pre></div>
+
 <p>Download and add capacity-schedule.xml.</p>
 <div class="highlight"><pre><code class="language-text" data-lang="text">curl http://svn.apache.org/viewvc/hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-tests/src/test/resources/capacity-scheduler.xml?view=co &gt; conf/capacity-scheduler.xml
 </code></pre></div>
@@ -159,34 +164,39 @@ vi conf/yarn-site.xml
 <p>The goal of these steps is to configure YARN to read http filesystem because we will use Http server to deploy Samza job package. If you want to use HDFS to deploy Samza job package, you can skip step 4~6 and follow <a href="deploy-samza-job-from-hdfs.html">Deploying a Samza Job from HDFS</a></p>
 
 <p>4. Download Scala package and untar it.</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">cd /tmp
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash"><span class="nb">cd</span> /tmp
 curl http://www.scala-lang.org/files/archive/scala-2.10.3.tgz &gt; scala-2.10.3.tgz
-tar -xvf scala-2.10.3.tgz
-</code></pre></div>
+tar -xvf scala-2.10.3.tgz</code></pre></div>
+
 <p>5. Add Scala and its log jars.</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">cp /tmp/scala-2.10.3/lib/scala-compiler.jar $HADOOP_YARN_HOME/share/hadoop/hdfs/lib
-cp /tmp/scala-2.10.3/lib/scala-library.jar $HADOOP_YARN_HOME/share/hadoop/hdfs/lib
-curl http://search.maven.org/remotecontent?filepath=org/clapper/grizzled-slf4j_2.10/1.0.1/grizzled-slf4j_2.10-1.0.1.jar &gt; $HADOOP_YARN_HOME/share/hadoop/hdfs/lib/grizzled-slf4j_2.10-1.0.1.jar
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash">cp /tmp/scala-2.10.3/lib/scala-compiler.jar <span class="nv">$HADOOP_YARN_HOME</span>/share/hadoop/hdfs/lib
+cp /tmp/scala-2.10.3/lib/scala-library.jar <span class="nv">$HADOOP_YARN_HOME</span>/share/hadoop/hdfs/lib
+curl http://search.maven.org/remotecontent?filepath<span class="o">=</span>org/clapper/grizzled-slf4j_2.10/1.0.1/grizzled-slf4j_2.10-1.0.1.jar &gt; <span class="nv">$HADOOP_YARN_HOME</span>/share/hadoop/hdfs/lib/grizzled-slf4j_2.10-1.0.1.jar</code></pre></div>
+
 <p>6. Add http configuration in core-site.xml (create the core-site.xml file and add content).</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">vi $HADOOP_YARN_HOME/conf/core-site.xml
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-xml" data-lang="xml">vi $HADOOP_YARN_HOME/conf/core-site.xml</code></pre></div>
+
 <p>Add the following code:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">&lt;?xml-stylesheet type=&quot;text/xsl&quot; href=&quot;configuration.xsl&quot;?&gt;
-&lt;configuration&gt;
-    &lt;property&gt;
-      &lt;name&gt;fs.http.impl&lt;/name&gt;
-      &lt;value&gt;org.apache.samza.util.hadoop.HttpFileSystem&lt;/value&gt;
-    &lt;/property&gt;
-&lt;/configuration&gt;
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-xml" data-lang="xml"><span class="cp">&lt;?xml-stylesheet type=&quot;text/xsl&quot; href=&quot;configuration.xsl&quot;?&gt;</span>
+<span class="nt">&lt;configuration&gt;</span>
+    <span class="nt">&lt;property&gt;</span>
+      <span class="nt">&lt;name&gt;</span>fs.http.impl<span class="nt">&lt;/name&gt;</span>
+      <span class="nt">&lt;value&gt;</span>org.apache.samza.util.hadoop.HttpFileSystem<span class="nt">&lt;/value&gt;</span>
+    <span class="nt">&lt;/property&gt;</span>
+<span class="nt">&lt;/configuration&gt;</span></code></pre></div>
+
 <h3 id="distribute-hadoop-file-to-slaves">Distribute Hadoop File to Slaves</h3>
 
 <p>7. Basically, you copy the hadoop file in your host machine to slave machines. (172.21.100.35, in my case):</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">scp -r . 172.21.100.35:/tmp/hadoop-2.3.0
-echo 172.21.100.35 &gt; conf/slaves
-sbin/start-yarn.sh
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash">scp -r . 172.21.100.35:/tmp/hadoop-2.3.0
+<span class="nb">echo </span>172.21.100.35 &gt; conf/slaves
+sbin/start-yarn.sh</code></pre></div>
+
 <ul>
 <li>If you get &ldquo;172.21.100.35: Error: JAVA<em>HOME is not set and could not be found.&rdquo;, you&rsquo;ll need to add a conf/hadoop-env.sh file to the machine with the failure (172.21.100.35, in this case), which has &ldquo;export JAVA</em>HOME=/export/apps/jdk/JDK-1<em>6</em>0<em>27&rdquo; (or wherever your JAVA</em>HOME actually is).</li>
 </ul>
@@ -198,33 +208,39 @@ sbin/start-yarn.sh
 <p>Some of the following steps are exactlly identical to what you have seen in <a href="../../../startup/hello-samza/0.7.0/">hello-samza</a>. You may skip them if you have already done so.</p>
 
 <p>1. Download Samza and publish it to Maven local repository.</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">cd /tmp
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash"><span class="nb">cd</span> /tmp
 git clone http://git-wip-us.apache.org/repos/asf/incubator-samza.git
-cd incubator-samza
+<span class="nb">cd </span>incubator-samza
 ./gradlew clean publishToMavenLocal
-cd ..
-</code></pre></div>
+<span class="nb">cd</span> ..</code></pre></div>
+
 <p>2. Download hello-samza project and change the job properties file.</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">git clone git://github.com/linkedin/hello-samza.git
-cd hello-samza
-vi samza-job-package/src/main/config/wikipedia-feed.properties
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash">git clone git://github.com/linkedin/hello-samza.git
+<span class="nb">cd </span>hello-samza
+vi samza-job-package/src/main/config/wikipedia-feed.properties</code></pre></div>
+
 <p>Change the yarn.package.path property to be:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">yarn.package.path=http://yourHostname:8000/samza-job-package/target/samza-job-package-0.7.0-dist.tar.gz
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-jproperties" data-lang="jproperties"><span class="na">yarn.package.path</span><span class="o">=</span><span class="s">http://yourHostname:8000/samza-job-package/target/samza-job-package-0.7.0-dist.tar.gz</span></code></pre></div>
+
 <p>3. Complie hello-samza.</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">mvn clean package
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash">mvn clean package
 mkdir -p deploy/samza
-tar -xvf ./samza-job-package/target/samza-job-package-0.7.0-dist.tar.gz -C deploy/samza
-</code></pre></div>
+tar -xvf ./samza-job-package/target/samza-job-package-0.7.0-dist.tar.gz -C deploy/samza</code></pre></div>
+
 <p>4. Deploy Samza job package to Http server..</p>
 
 <p>Open a new terminal, and run:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">cd /tmp/hello-samza &amp;&amp; python -m SimpleHTTPServer
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash"><span class="nb">cd</span> /tmp/hello-samza <span class="o">&amp;&amp;</span> python -m SimpleHTTPServer</code></pre></div>
+
 <p>Go back to the original terminal (not the one running the HTTP server):</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">deploy/samza/bin/run-job.sh --config-factory=org.apache.samza.config.factories.PropertiesConfigFactory --config-path=file://$PWD/deploy/samza/config/wikipedia-feed.properties
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash">deploy/samza/bin/run-job.sh --config-factory<span class="o">=</span>org.apache.samza.config.factories.PropertiesConfigFactory --config-path<span class="o">=</span>file://<span class="nv">$PWD</span>/deploy/samza/config/wikipedia-feed.properties</code></pre></div>
+
 <p>Go to http://yourHostname:8088 and find the wikipedia-feed job. Click on the ApplicationMaster link to see that it&rsquo;s running.</p>
 
 <p>Congratulations! You now run the Samza job in a &ldquo;real&rdquo; YARN grid!</p>

Modified: incubator/samza/site/less/main.less
URL: http://svn.apache.org/viewvc/incubator/samza/site/less/main.less?rev=1609232&r1=1609231&r2=1609232&view=diff
==============================================================================
--- incubator/samza/site/less/main.less (original)
+++ incubator/samza/site/less/main.less Wed Jul  9 16:37:01 2014
@@ -1,19 +1,21 @@
-// Licensed to the Apache Software Foundation (ASF) under one
-// or more contributor license agreements.  See the NOTICE file
-// distributed with this work for additional information
-// regarding copyright ownership.  The ASF licenses this file
-// to you under the Apache License, Version 2.0 (the
-// "License"); you may not use this file except in compliance
-// with the License.  You may obtain a copy of the License at
-//
-//   http://www.apache.org/licenses/LICENSE-2.0
-//
-// Unless required by applicable law or agreed to in writing,
-// software distributed under the License is distributed on an
-// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-// KIND, either express or implied.  See the License for the
-// specific language governing permissions and limitations
-// under the License.
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
 
 @import "variables.less";
 @import "non-responsive.less";
@@ -90,6 +92,8 @@ pre {
   border: 0px !important;
   border-radius: 0px !important;
   overflow-x: auto;
+  background-color: #f7f7f7;
+  font-size: 12px;
   code {
     overflow-wrap: normal;
     white-space: pre;
@@ -162,6 +166,10 @@ td.key {
   font-size: 16px;
 }
 
+img.diagram-large {
+  width: 100%;
+}
+
 ul.documentation-list {
   list-style: none;
   padding-left: 20px;

Modified: incubator/samza/site/sitemap.xml
URL: http://svn.apache.org/viewvc/incubator/samza/site/sitemap.xml?rev=1609232&r1=1609231&r2=1609232&view=diff
==============================================================================
--- incubator/samza/site/sitemap.xml (original)
+++ incubator/samza/site/sitemap.xml Wed Jul  9 16:37:01 2014
@@ -120,14 +120,14 @@
   </url>
   
   <url>
-    <loc>http://samza.incubator.apache.org/index.html</loc>
+    <loc>http://samza.incubator.apache.org/learn/tutorials/0.7.0/index.html</loc>
     <lastmod>2014-07-09</lastmod>
     
     
   </url>
   
   <url>
-    <loc>http://samza.incubator.apache.org/learn/tutorials/0.7.0/index.html</loc>
+    <loc>http://samza.incubator.apache.org/index.html</loc>
     <lastmod>2014-07-09</lastmod>
     
     
@@ -246,6 +246,13 @@
   </url>
   
   <url>
+    <loc>http://samza.incubator.apache.org/learn/documentation/0.7.0/jobs/reprocessing.html</loc>
+    <lastmod>2014-07-09</lastmod>
+    
+    
+  </url>
+  
+  <url>
     <loc>http://samza.incubator.apache.org/contribute/rules.html</loc>
     <lastmod>2014-07-09</lastmod>
     

Modified: incubator/samza/site/startup/download/index.html
URL: http://svn.apache.org/viewvc/incubator/samza/site/startup/download/index.html?rev=1609232&r1=1609231&r2=1609232&view=diff
==============================================================================
--- incubator/samza/site/startup/download/index.html (original)
+++ incubator/samza/site/startup/download/index.html Wed Jul  9 16:37:01 2014
@@ -23,6 +23,7 @@
     <link href="/css/bootstrap.min.css" rel="stylesheet"/>
     <link href="/css/font-awesome.min.css" rel="stylesheet"/>
     <link href="/css/main.css" rel="stylesheet"/>
+    <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
   </head>
   <body>
@@ -122,74 +123,93 @@
    limitations under the License.
 -->
 
-<!-- TODO update maven dependency versions appropriately -->
+<p>Samza is released as a source artifact, and also through Maven.</p>
 
-<p>If you want to play around with Samza for the first time, go to <a href="/startup/hello-samza/0.7.0">Hello Samza</a>.</p>
+<p>If you just want to play around with Samza for the first time, go to <a href="/startup/hello-samza/0.7.0">Hello Samza</a>.</p>
 
-<!--
-### Maven
-
-All Samza JARs are published through Maven.
-
-#### Artifacts
+<h3 id="source-releases">Source Releases</h3>
 
-A Samza project that runs with Kafka and YARN should depend on the following artifacts.
-
-    <dependency>
-      <groupId>samza</groupId>
-      <artifactId>samza-api</artifactId>
-      <version>0.7.0</version>
-    </dependency>
-    <dependency>
-      <groupId>samza</groupId>
-      <artifactId>samza-core_2.9.2</artifactId>
-      <version>0.7.0</version>
-      <scope>runtime</scope>
-    </dependency>
-    <dependency>
-      <groupId>samza</groupId>
-      <artifactId>samza-serializers_2.9.2</artifactId>
-      <version>0.7.0</version>
-      <scope>runtime</scope>
-    </dependency>
-    <dependency>
-      <groupId>samza</groupId>
-      <artifactId>samza-yarn_2.9.2</artifactId>
-      <version>0.7.0</version>
-      <classifier>yarn-2.0.5-alpha</classifier>
-      <scope>runtime</scope>
-    </dependency>
-    <dependency>
-      <groupId>samza</groupId>
-      <artifactId>samza-kafka_2.9.2</artifactId>
-      <version>0.7.0</version>
-      <scope>runtime</scope>
-    </dependency>
-
-#### Repositories
-
-Samza is available in the Apache Maven repository.
-
-    <repository>
-      <id>apache-releases</id>
-      <url>https://repository.apache.org/content/groups/public</url>
-    </repository>
-
-Snapshot builds are available in the Apache Maven snapshot repository.
-
-    <repository>
-      <id>apache-snapshots</id>
-      <url>https://repository.apache.org/content/groups/snapshots</url>
-    </repository>
-&ndash;>
+<ul>
+<li><a href="http://www.apache.org/dyn/closer.cgi/incubator/samza/0.7.0-incubating">samza-sources-0.7.0-incubating.tgz</a></li>
+</ul>
+
+<h3 id="maven">Maven</h3>
+
+<p>All Samza JARs are published through <a href="https://repository.apache.org/content/groups/public/org/apache/samza/">Apache&rsquo;s Maven repository</a>.</p>
+
+<h4 id="artifacts">Artifacts</h4>
+
+<p>A Maven-based Samza project can pull in all required dependencies Samza dependencies this XML block:</p>
+
+<div class="highlight"><pre><code class="language-xml" data-lang="xml"><span class="nt">&lt;dependency&gt;</span>
+  <span class="nt">&lt;groupId&gt;</span>org.apache.samza<span class="nt">&lt;/groupId&gt;</span>
+  <span class="nt">&lt;artifactId&gt;</span>samza-api<span class="nt">&lt;/artifactId&gt;</span>
+  <span class="nt">&lt;version&gt;</span>0.7.0<span class="nt">&lt;/version&gt;</span>
+<span class="nt">&lt;/dependency&gt;</span>
+<span class="nt">&lt;dependency&gt;</span>
+  <span class="nt">&lt;groupId&gt;</span>org.apache.samza<span class="nt">&lt;/groupId&gt;</span>
+  <span class="nt">&lt;artifactId&gt;</span>samza-core_2.10<span class="nt">&lt;/artifactId&gt;</span>
+  <span class="nt">&lt;version&gt;</span>0.7.0<span class="nt">&lt;/version&gt;</span>
+  <span class="nt">&lt;scope&gt;</span>runtime<span class="nt">&lt;/scope&gt;</span>
+<span class="nt">&lt;/dependency&gt;</span>
+<span class="nt">&lt;dependency&gt;</span>
+  <span class="nt">&lt;groupId&gt;</span>org.apache.samza<span class="nt">&lt;/groupId&gt;</span>
+  <span class="nt">&lt;artifactId&gt;</span>samza-serializers_2.10<span class="nt">&lt;/artifactId&gt;</span>
+  <span class="nt">&lt;version&gt;</span>0.7.0<span class="nt">&lt;/version&gt;</span>
+<span class="nt">&lt;/dependency&gt;</span>
+<span class="nt">&lt;dependency&gt;</span>
+  <span class="nt">&lt;groupId&gt;</span>org.apache.samza<span class="nt">&lt;/groupId&gt;</span>
+  <span class="nt">&lt;artifactId&gt;</span>samza-shell<span class="nt">&lt;/artifactId&gt;</span>
+  <span class="nt">&lt;classifier&gt;</span>dist<span class="nt">&lt;/classifier&gt;</span>
+  <span class="nt">&lt;type&gt;</span>tgz<span class="nt">&lt;/type&gt;</span>
+  <span class="nt">&lt;version&gt;</span>0.7.0<span class="nt">&lt;/version&gt;</span>
+  <span class="nt">&lt;scope&gt;</span>runtime<span class="nt">&lt;/scope&gt;</span>
+<span class="nt">&lt;/dependency&gt;</span>
+<span class="nt">&lt;dependency&gt;</span>
+  <span class="nt">&lt;groupId&gt;</span>org.apache.samza<span class="nt">&lt;/groupId&gt;</span>
+  <span class="nt">&lt;artifactId&gt;</span>samza-yarn_2.10<span class="nt">&lt;/artifactId&gt;</span>
+  <span class="nt">&lt;version&gt;</span>0.7.0<span class="nt">&lt;/version&gt;</span>
+  <span class="nt">&lt;scope&gt;</span>runtime<span class="nt">&lt;/scope&gt;</span>
+<span class="nt">&lt;/dependency&gt;</span>
+<span class="nt">&lt;dependency&gt;</span>
+  <span class="nt">&lt;groupId&gt;</span>org.apache.samza<span class="nt">&lt;/groupId&gt;</span>
+  <span class="nt">&lt;artifactId&gt;</span>samza-kv_2.10<span class="nt">&lt;/artifactId&gt;</span>
+  <span class="nt">&lt;version&gt;</span>0.7.0<span class="nt">&lt;/version&gt;</span>
+  <span class="nt">&lt;scope&gt;</span>runtime<span class="nt">&lt;/scope&gt;</span>
+<span class="nt">&lt;/dependency&gt;</span>
+<span class="nt">&lt;dependency&gt;</span>
+  <span class="nt">&lt;groupId&gt;</span>org.apache.samza<span class="nt">&lt;/groupId&gt;</span>
+  <span class="nt">&lt;artifactId&gt;</span>samza-kafka_2.10<span class="nt">&lt;/artifactId&gt;</span>
+  <span class="nt">&lt;version&gt;</span>0.7.0<span class="nt">&lt;/version&gt;</span>
+  <span class="nt">&lt;scope&gt;</span>runtime<span class="nt">&lt;/scope&gt;</span>
+<span class="nt">&lt;/dependency&gt;</span></code></pre></div>
+
+<p><a href="/startup/hello-samza/0.7.0">Hello Samza</a> is a working Maven project that illustrates how to build projects that have Samza jobs in them.</p>
+
+<h4 id="repositories">Repositories</h4>
+
+<p>Samza is available in the Apache Maven repository.</p>
+
+<div class="highlight"><pre><code class="language-xml" data-lang="xml"><span class="nt">&lt;repository&gt;</span>
+  <span class="nt">&lt;id&gt;</span>apache-releases<span class="nt">&lt;/id&gt;</span>
+  <span class="nt">&lt;url&gt;</span>https://repository.apache.org/content/groups/public<span class="nt">&lt;/url&gt;</span>
+<span class="nt">&lt;/repository&gt;</span></code></pre></div>
+
+<p>Snapshot builds are available in the Apache Maven snapshot repository.</p>
+
+<div class="highlight"><pre><code class="language-xml" data-lang="xml"><span class="nt">&lt;repository&gt;</span>
+  <span class="nt">&lt;id&gt;</span>apache-snapshots<span class="nt">&lt;/id&gt;</span>
+  <span class="nt">&lt;url&gt;</span>https://repository.apache.org/content/groups/snapshots<span class="nt">&lt;/url&gt;</span>
+<span class="nt">&lt;/repository&gt;</span></code></pre></div>
 
 <h3 id="checking-out-and-building">Checking out and Building</h3>
 
 <p>If you&rsquo;re interested in working on Samza, or building the JARs from scratch, then you&rsquo;ll need to checkout and build the code. Samza does not have a binary release at this time. To check out and build Samza, run these commands.</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">git clone http://git-wip-us.apache.org/repos/asf/incubator-samza.git
-cd incubator-samza
-./gradlew clean build
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash">git clone http://git-wip-us.apache.org/repos/asf/incubator-samza.git
+<span class="nb">cd </span>incubator-samza
+./gradlew clean build</code></pre></div>
+
 <p>See the README.md file for details on building.</p>
 
 

Modified: incubator/samza/site/startup/hello-samza/0.7.0/index.html
URL: http://svn.apache.org/viewvc/incubator/samza/site/startup/hello-samza/0.7.0/index.html?rev=1609232&r1=1609231&r2=1609232&view=diff
==============================================================================
--- incubator/samza/site/startup/hello-samza/0.7.0/index.html (original)
+++ incubator/samza/site/startup/hello-samza/0.7.0/index.html Wed Jul  9 16:37:01 2014
@@ -23,6 +23,7 @@
     <link href="/css/bootstrap.min.css" rel="stylesheet"/>
     <link href="/css/font-awesome.min.css" rel="stylesheet"/>
     <link href="/css/main.css" rel="stylesheet"/>
+    <link href="/css/syntax.css" rel="stylesheet"/>
     <link rel="icon" type="image/png" href="/img/samza-icon.png">
   </head>
   <body>
@@ -127,16 +128,18 @@
 <h3 id="get-the-code">Get the Code</h3>
 
 <p>Check out the hello-samza project:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">git clone git://git.apache.org/incubator-samza-hello-samza.git hello-samza
-cd hello-samza
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash">git clone git://git.apache.org/incubator-samza-hello-samza.git hello-samza
+<span class="nb">cd </span>hello-samza</code></pre></div>
+
 <p>This project contains everything you&rsquo;ll need to run your first Samza jobs.</p>
 
 <h3 id="start-a-grid">Start a Grid</h3>
 
 <p>A Samza grid usually comprises three different systems: <a href="http://hadoop.apache.org/docs/current/hadoop-yarn/hadoop-yarn-site/YARN.html">YARN</a>, <a href="http://kafka.apache.org/">Kafka</a>, and <a href="http://zookeeper.apache.org/">ZooKeeper</a>. The hello-samza project comes with a script called &ldquo;grid&rdquo; to help you setup these systems. Start by running:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">bin/grid bootstrap
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash">bin/grid bootstrap</code></pre></div>
+
 <p>This command will download, install, and start ZooKeeper, Kafka, and YARN. It will also check out the latest version of Samza and build it. All package files will be put in a sub-directory called &ldquo;deploy&rdquo; inside hello-samza&rsquo;s root folder.</p>
 
 <p>If you get a complaint that JAVA_HOME is not set, then you&rsquo;ll need to set it to the path where Java is installed on your system.</p>
@@ -146,18 +149,21 @@ cd hello-samza
 <h3 id="build-a-samza-job-package">Build a Samza Job Package</h3>
 
 <p>Before you can run a Samza job, you need to build a package for it. This package is what YARN uses to deploy your jobs on the grid.</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">mvn clean package
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash">mvn clean package
 mkdir -p deploy/samza
-tar -xvf ./samza-job-package/target/samza-job-package-0.7.0-dist.tar.gz -C deploy/samza
-</code></pre></div>
+tar -xvf ./samza-job-package/target/samza-job-package-0.7.0-dist.tar.gz -C deploy/samza</code></pre></div>
+
 <h3 id="run-a-samza-job">Run a Samza Job</h3>
 
 <p>After you&rsquo;ve built your Samza package, you can start a job on the grid using the run-job.sh script.</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">deploy/samza/bin/run-job.sh --config-factory=org.apache.samza.config.factories.PropertiesConfigFactory --config-path=file://$PWD/deploy/samza/config/wikipedia-feed.properties
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash">deploy/samza/bin/run-job.sh --config-factory<span class="o">=</span>org.apache.samza.config.factories.PropertiesConfigFactory --config-path<span class="o">=</span>file://<span class="nv">$PWD</span>/deploy/samza/config/wikipedia-feed.properties</code></pre></div>
+
 <p>The job will consume a feed of real-time edits from Wikipedia, and produce them to a Kafka topic called &ldquo;wikipedia-raw&rdquo;. Give the job a minute to startup, and then tail the Kafka topic:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">deploy/kafka/bin/kafka-console-consumer.sh  --zookeeper localhost:2181 --topic wikipedia-raw
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash">deploy/kafka/bin/kafka-console-consumer.sh  --zookeeper localhost:2181 --topic wikipedia-raw</code></pre></div>
+
 <p>Pretty neat, right? Now, check out the YARN UI again (<a href="http://localhost:8088">http://localhost:8088</a>). This time around, you&rsquo;ll see your Samza job is running!</p>
 
 <p>If you can not see any output from Kafka consumer, you may have connection problem. Check <a href="../../../learn/tutorials/0.7.0/run-hello-samza-without-internet.html">here</a>.</p>
@@ -165,28 +171,33 @@ tar -xvf ./samza-job-package/target/samz
 <h3 id="generate-wikipedia-statistics">Generate Wikipedia Statistics</h3>
 
 <p>Let&rsquo;s calculate some statistics based on the messages in the wikipedia-raw topic. Start two more jobs:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">deploy/samza/bin/run-job.sh --config-factory=org.apache.samza.config.factories.PropertiesConfigFactory --config-path=file://$PWD/deploy/samza/config/wikipedia-parser.properties
-deploy/samza/bin/run-job.sh --config-factory=org.apache.samza.config.factories.PropertiesConfigFactory --config-path=file://$PWD/deploy/samza/config/wikipedia-stats.properties
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash">deploy/samza/bin/run-job.sh --config-factory<span class="o">=</span>org.apache.samza.config.factories.PropertiesConfigFactory --config-path<span class="o">=</span>file://<span class="nv">$PWD</span>/deploy/samza/config/wikipedia-parser.properties
+deploy/samza/bin/run-job.sh --config-factory<span class="o">=</span>org.apache.samza.config.factories.PropertiesConfigFactory --config-path<span class="o">=</span>file://<span class="nv">$PWD</span>/deploy/samza/config/wikipedia-stats.properties</code></pre></div>
+
 <p>The first job (wikipedia-parser) parses the messages in wikipedia-raw, and extracts information about the size of the edit, who made the change, etc. You can take a look at its output with:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">deploy/kafka/bin/kafka-console-consumer.sh  --zookeeper localhost:2181 --topic wikipedia-edits
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash">deploy/kafka/bin/kafka-console-consumer.sh  --zookeeper localhost:2181 --topic wikipedia-edits</code></pre></div>
+
 <p>The last job (wikipedia-stats) reads messages from the wikipedia-edits topic, and calculates counts, every ten seconds, for all edits that were made during that window. It outputs these counts to the wikipedia-stats topic.</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">deploy/kafka/bin/kafka-console-consumer.sh  --zookeeper localhost:2181 --topic wikipedia-stats
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash">deploy/kafka/bin/kafka-console-consumer.sh  --zookeeper localhost:2181 --topic wikipedia-stats</code></pre></div>
+
 <p>The messages in the stats topic look like this:</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">{&quot;is-talk&quot;:2,&quot;bytes-added&quot;:5276,&quot;edits&quot;:13,&quot;unique-titles&quot;:13}
-{&quot;is-bot-edit&quot;:1,&quot;is-talk&quot;:3,&quot;bytes-added&quot;:4211,&quot;edits&quot;:30,&quot;unique-titles&quot;:30,&quot;is-unpatrolled&quot;:1,&quot;is-new&quot;:2,&quot;is-minor&quot;:7}
-{&quot;bytes-added&quot;:3180,&quot;edits&quot;:19,&quot;unique-titles&quot;:19,&quot;is-unpatrolled&quot;:1,&quot;is-new&quot;:1,&quot;is-minor&quot;:3}
-{&quot;bytes-added&quot;:2218,&quot;edits&quot;:18,&quot;unique-titles&quot;:18,&quot;is-unpatrolled&quot;:2,&quot;is-new&quot;:2,&quot;is-minor&quot;:3}
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-json" data-lang="json"><span class="p">{</span><span class="nt">&quot;is-talk&quot;</span><span class="p">:</span><span class="mi">2</span><span class="p">,</span><span class="nt">&quot;bytes-added&quot;</span><span class="p">:</span><span class="mi">5276</span><span class="p">,</span><span class="nt">&quot;edits&quot;</span><span class="p">:</span><span class="mi">13</span><span class="p">,</span><span class="nt">&quot;unique-titles&quot;</span><span class="p">:</span><span class="mi">13</span><span class="p">}</span>
+<span class="p">{</span><span class="nt">&quot;is-bot-edit&quot;</span><span class="p">:</span><span class="mi">1</span><span class="p">,</span><span class="nt">&quot;is-talk&quot;</span><span class="p">:</span><span class="mi">3</span><span class="p">,</span><span class="nt">&quot;bytes-added&quot;</span><span class="p">:</span><span class="mi">4211</span><span class="p">,</span><span class="nt">&quot;edits&quot;</span><span class="p">:</span><span class="mi">30</span><span class="p">,</span><span class="nt">&quot;unique-titles&quot;</span><span class="p">:</span><span class="mi">30</span><span class="p">,</span><span class="nt">&quot;is-unpatrolled&quot;</span><span class="p">:</span><span class="mi">1</span><span class="p">,</span><span class="nt">&quot;is-new&quot;</span><span class="p">:</span><span class="mi">2</span><span class="p">,</span><span class="nt">&quot;is-minor&quot;</span><span class="p">:</span><span class="mi">7</span><span class="p">}</span>
+<span class="p">{</span><span class="nt">&quot;bytes-added&quot;</span><span class="p">:</span><span class="mi">3180</span><span class="p">,</span><span class="nt">&quot;edits&quot;</span><span class="p">:</span><span class="mi">19</span><span class="p">,</span><span class="nt">&quot;unique-titles&quot;</span><span class="p">:</span><span class="mi">19</span><span class="p">,</span><span class="nt">&quot;is-unpatrolled&quot;</span><span class="p">:</span><span class="mi">1</span><span class="p">,</span><span class="nt">&quot;is-new&quot;</span><span class="p">:</span><span class="mi">1</span><span class="p">,</span><span class="nt">&quot;is-minor&quot;</span><span class="p">:</span><span class="mi">3</span><span class="p">}</span>
+<span class="p">{</span><span class="nt">&quot;bytes-added&quot;</span><span class="p">:</span><span class="mi">2218</span><span class="p">,</span><span class="nt">&quot;edits&quot;</span><span class="p">:</span><span class="mi">18</span><span class="p">,</span><span class="nt">&quot;unique-titles&quot;</span><span class="p">:</span><span class="mi">18</span><span class="p">,</span><span class="nt">&quot;is-unpatrolled&quot;</span><span class="p">:</span><span class="mi">2</span><span class="p">,</span><span class="nt">&quot;is-new&quot;</span><span class="p">:</span><span class="mi">2</span><span class="p">,</span><span class="nt">&quot;is-minor&quot;</span><span class="p">:</span><span class="mi">3</span><span class="p">}</span></code></pre></div>
+
 <p>If you check the YARN UI, again, you&rsquo;ll see that all three jobs are now listed.</p>
 
 <h3 id="shutdown">Shutdown</h3>
 
 <p>After you&rsquo;re done, you can clean everything up using the same grid script.</p>
-<div class="highlight"><pre><code class="language-text" data-lang="text">bin/grid stop all
-</code></pre></div>
+
+<div class="highlight"><pre><code class="language-bash" data-lang="bash">bin/grid stop all</code></pre></div>
+
 <p>Congratulations! You&rsquo;ve now setup a local grid that includes YARN, Kafka, and ZooKeeper, and run a Samza job on it. Next up, check out the <a href="/learn/documentation/0.7.0/introduction/background.html">Background</a> and <a href="/learn/documentation/0.7.0/api/overview.html">API Overview</a> pages.</p>