You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@storm.apache.org by ka...@apache.org on 2016/08/24 02:28:03 UTC

svn commit: r1757454 - in /storm/site: publish/feed.xml publish/releases/0.10.0/feed.xml publish/releases/0.10.1/feed.xml publish/releases/2.0.0-SNAPSHOT/storm-sql.html releases/2.0.0-SNAPSHOT/storm-sql.md

Author: kabhwan
Date: Wed Aug 24 02:28:02 2016
New Revision: 1757454

URL: http://svn.apache.org/viewvc?rev=1757454&view=rev
Log:
Update the new usage of storm-sql

Modified:
    storm/site/publish/feed.xml
    storm/site/publish/releases/0.10.0/feed.xml
    storm/site/publish/releases/0.10.1/feed.xml
    storm/site/publish/releases/2.0.0-SNAPSHOT/storm-sql.html
    storm/site/releases/2.0.0-SNAPSHOT/storm-sql.md

Modified: storm/site/publish/feed.xml
URL: http://svn.apache.org/viewvc/storm/site/publish/feed.xml?rev=1757454&r1=1757453&r2=1757454&view=diff
==============================================================================
--- storm/site/publish/feed.xml (original)
+++ storm/site/publish/feed.xml Wed Aug 24 02:28:02 2016
@@ -5,8 +5,8 @@
     <description></description>
     <link>http://storm.apache.org/</link>
     <atom:link href="http://storm.apache.org/feed.xml" rel="self" type="application/rss+xml"/>
-    <pubDate>Tue, 23 Aug 2016 17:28:36 +0900</pubDate>
-    <lastBuildDate>Tue, 23 Aug 2016 17:28:36 +0900</lastBuildDate>
+    <pubDate>Wed, 24 Aug 2016 11:12:20 +0900</pubDate>
+    <lastBuildDate>Wed, 24 Aug 2016 11:12:20 +0900</lastBuildDate>
     <generator>Jekyll v3.1.2</generator>
     
       <item>

Modified: storm/site/publish/releases/0.10.0/feed.xml
URL: http://svn.apache.org/viewvc/storm/site/publish/releases/0.10.0/feed.xml?rev=1757454&r1=1757453&r2=1757454&view=diff
==============================================================================
--- storm/site/publish/releases/0.10.0/feed.xml (original)
+++ storm/site/publish/releases/0.10.0/feed.xml Wed Aug 24 02:28:02 2016
@@ -5,8 +5,8 @@
     <description></description>
     <link>http://storm.apache.org/</link>
     <atom:link href="http://storm.apache.org/feed.xml" rel="self" type="application/rss+xml"/>
-    <pubDate>Tue, 23 Aug 2016 17:28:36 +0900</pubDate>
-    <lastBuildDate>Tue, 23 Aug 2016 17:28:36 +0900</lastBuildDate>
+    <pubDate>Wed, 24 Aug 2016 11:12:20 +0900</pubDate>
+    <lastBuildDate>Wed, 24 Aug 2016 11:12:20 +0900</lastBuildDate>
     <generator>Jekyll v3.1.2</generator>
     
       <item>

Modified: storm/site/publish/releases/0.10.1/feed.xml
URL: http://svn.apache.org/viewvc/storm/site/publish/releases/0.10.1/feed.xml?rev=1757454&r1=1757453&r2=1757454&view=diff
==============================================================================
--- storm/site/publish/releases/0.10.1/feed.xml (original)
+++ storm/site/publish/releases/0.10.1/feed.xml Wed Aug 24 02:28:02 2016
@@ -5,8 +5,8 @@
     <description></description>
     <link>http://storm.apache.org/</link>
     <atom:link href="http://storm.apache.org/feed.xml" rel="self" type="application/rss+xml"/>
-    <pubDate>Tue, 23 Aug 2016 17:28:36 +0900</pubDate>
-    <lastBuildDate>Tue, 23 Aug 2016 17:28:36 +0900</lastBuildDate>
+    <pubDate>Wed, 24 Aug 2016 11:12:20 +0900</pubDate>
+    <lastBuildDate>Wed, 24 Aug 2016 11:12:20 +0900</lastBuildDate>
     <generator>Jekyll v3.1.2</generator>
     
       <item>

Modified: storm/site/publish/releases/2.0.0-SNAPSHOT/storm-sql.html
URL: http://svn.apache.org/viewvc/storm/site/publish/releases/2.0.0-SNAPSHOT/storm-sql.html?rev=1757454&r1=1757453&r2=1757454&view=diff
==============================================================================
--- storm/site/publish/releases/2.0.0-SNAPSHOT/storm-sql.html (original)
+++ storm/site/publish/releases/2.0.0-SNAPSHOT/storm-sql.html Wed Aug 24 02:28:02 2016
@@ -198,17 +198,12 @@ Current implementation of <code>storm-sq
 
 <p>Similarly, the second statement specifies the table <code>LARGE_ORDERS</code> which represents the output stream. The third statement is a <code>SELECT</code> statement which defines the topology: it instructs StormSQL to filter all orders in the external table <code>ORDERS</code>, calculates the total price and inserts matching records into the Kafka stream specified by <code>LARGE_ORDER</code>.</p>
 
-<p>To run this example, users need to include the data sources (<code>storm-sql-kafka</code> in this case) and its dependency in the class path. One approach is to put the required jars into the <code>extlib</code> directory:</p>
-<div class="highlight"><pre><code class="language-" data-lang="">$ cp curator-client-2.5.0.jar curator-framework-2.5.0.jar zookeeper-3.4.6.jar
- extlib/
-$ cp scala-library-2.10.4.jar kafka-clients-0.8.2.1.jar kafka_2.10-0.8.2.1.jar metrics-core-2.2.0.jar extlib/
-$ cp json-simple-1.1.1.jar extlib/
-$ cp jackson-annotations-2.6.0.jar extlib/
-$ cp storm-kafka-*.jar storm-sql-kafka-*.jar storm-sql-runtime-*.jar extlib/
-</code></pre></div>
-<p>The next step is to submit the SQL statements to StormSQL:</p>
-<div class="highlight"><pre><code class="language-" data-lang="">$ bin/storm sql order_filtering order_filtering.sql
+<p>To run this example, users need to include the data sources (<code>storm-sql-kafka</code> in this case) and its dependency in the
+class path. Dependencies for Storm SQL are automatically handled when users run <code>storm sql</code>. Users can include data sources at the submission step like below:</p>
+<div class="highlight"><pre><code class="language-" data-lang="">$ bin/storm sql order_filtering.sql order_filtering --artifacts "org.apache.storm:storm-sql-kafka:2.0.0-SNAPSHOT,org.apache.storm:storm-kafka:2.0.0-SNAPSHOT,org.apache.kafka:kafka_2.10:0.8.2.2\!org.slf4j:slf4j-log4j12,org.apache.kafka:kafka-clients:0.8.2.2"
 </code></pre></div>
+<p>Above command submits the SQL statements to StormSQL. Users need to modify each artifacts&#39; version if users are using different version of Storm or Kafka. </p>
+
 <p>By now you should be able to see the <code>order_filtering</code> topology in the Storm UI.</p>
 
 <h2 id="current-limitations">Current Limitations</h2>

Modified: storm/site/releases/2.0.0-SNAPSHOT/storm-sql.md
URL: http://svn.apache.org/viewvc/storm/site/releases/2.0.0-SNAPSHOT/storm-sql.md?rev=1757454&r1=1757453&r2=1757454&view=diff
==============================================================================
--- storm/site/releases/2.0.0-SNAPSHOT/storm-sql.md (original)
+++ storm/site/releases/2.0.0-SNAPSHOT/storm-sql.md Wed Aug 24 02:28:02 2016
@@ -69,22 +69,14 @@ Current implementation of `storm-sql-kaf
 
 Similarly, the second statement specifies the table `LARGE_ORDERS` which represents the output stream. The third statement is a `SELECT` statement which defines the topology: it instructs StormSQL to filter all orders in the external table `ORDERS`, calculates the total price and inserts matching records into the Kafka stream specified by `LARGE_ORDER`.
 
-To run this example, users need to include the data sources (`storm-sql-kafka` in this case) and its dependency in the class path. One approach is to put the required jars into the `extlib` directory:
+To run this example, users need to include the data sources (`storm-sql-kafka` in this case) and its dependency in the
+class path. Dependencies for Storm SQL are automatically handled when users run `storm sql`. Users can include data sources at the submission step like below:
 
 ```
-$ cp curator-client-2.5.0.jar curator-framework-2.5.0.jar zookeeper-3.4.6.jar
- extlib/
-$ cp scala-library-2.10.4.jar kafka-clients-0.8.2.1.jar kafka_2.10-0.8.2.1.jar metrics-core-2.2.0.jar extlib/
-$ cp json-simple-1.1.1.jar extlib/
-$ cp jackson-annotations-2.6.0.jar extlib/
-$ cp storm-kafka-*.jar storm-sql-kafka-*.jar storm-sql-runtime-*.jar extlib/
+$ bin/storm sql order_filtering.sql order_filtering --artifacts "org.apache.storm:storm-sql-kafka:2.0.0-SNAPSHOT,org.apache.storm:storm-kafka:2.0.0-SNAPSHOT,org.apache.kafka:kafka_2.10:0.8.2.2\!org.slf4j:slf4j-log4j12,org.apache.kafka:kafka-clients:0.8.2.2"
 ```
 
-The next step is to submit the SQL statements to StormSQL:
-
-```
-$ bin/storm sql order_filtering order_filtering.sql
-```
+Above command submits the SQL statements to StormSQL. Users need to modify each artifacts' version if users are using different version of Storm or Kafka. 
 
 By now you should be able to see the `order_filtering` topology in the Storm UI.