<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Storm and Kafka Development Cycle - Best Practices in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Storm-and-Kafka-Development-Cycle-Best-Practices/m-p/94202#M7479</link>
    <description>&lt;P&gt;I have used and built some testing utilities to be able to create unit tests and integration tests of topologies that use kafka, solr and other components. These provide the capabilities to deploy a topology from your desktop machine to your dev cluster, etc..&lt;/P&gt;&lt;P&gt;Check out the following github links for examples:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;A href="https://github.com/georgevetticaden/hdp/blob/master/reference-apps/ecm-app/ecm-streaming/src/test/java/hortonworks/hdp/refapp/ecm/streaming/topology/DocumentProcessorTopologyLocalClusterTest.java"&gt;Unit Test Example&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://github.com/georgevetticaden/hdp/blob/master/reference-apps/ecm-app/ecm-streaming/src/test/java/hortonworks/hdp/refapp/ecm/streaming/topology/DocumentProcessorTopologyLocalClusterTest.java"&gt;&lt;/A&gt;&lt;A href="https://github.com/georgevetticaden/hdp/blob/master/reference-apps/ecm-app/ecm-streaming/src/test/java/hortonworks/hdp/refapp/ecm/streaming/topology/DocumentProcessorTopologyDevClusterTest.java"&gt;Integration Test Example&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The test utilities it uses can be found &lt;A href="https://github.com/georgevetticaden/hdp/tree/master/app-utils/hdp-app-utils/src/main/java/hortonworks/hdp/apputil"&gt;here&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;Also check out the &lt;A href="http://hortonworks-gallery.github.io/index.html?sort=asc&amp;amp;filter=featured"&gt;Hortonworks Gallery&lt;/A&gt;, it has a cool project that is being featured called Mini Clusters by &lt;A rel="user" href="https://community.cloudera.com/users/149/skumpf.html" nodeid="149"&gt;@skumpf@hortonworks.com&lt;/A&gt; that has some great testing utilities to run clusters in local mode.&lt;/P&gt;</description>
    <pubDate>Thu, 24 Sep 2015 04:37:50 GMT</pubDate>
    <dc:creator>gvetticaden1</dc:creator>
    <dc:date>2015-09-24T04:37:50Z</dc:date>
    <item>
      <title>Storm and Kafka Development Cycle - Best Practices</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Storm-and-Kafka-Development-Cycle-Best-Practices/m-p/94199#M7476</link>
      <description>&lt;P&gt;Wanted to ask what process our Storm and Kafka developers &amp;amp; testers follow when they’re developing new topologies? The process of building a Storm/Kafka topology on laptop, copying files to cluster or sandbox, and testing can be time consuming and difficult to iterate quickly. Do you have any tips you could pass on for efficient development process:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Do you develop on the same machine (linux or mac) which is also running your Storm/Kafka cluster?&lt;/LI&gt;&lt;LI&gt;Do you instead rely on JUnit tests to instantiate and test Storm bolts on their own and manually trigger Tuples through the execute() method (&lt;A href="https://github.com/apache/storm/blob/master/external/storm-kafka/src/test/storm/kafka/bolt/KafkaBoltTest.java#L106"&gt;example here&lt;/A&gt;)?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Thanks for any tips you can pass along to help speed up our development.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2015 04:19:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Storm-and-Kafka-Development-Cycle-Best-Practices/m-p/94199#M7476</guid>
      <dc:creator>wfloyd</dc:creator>
      <dc:date>2015-09-24T04:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Storm and Kafka Development Cycle - Best Practices</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Storm-and-Kafka-Development-Cycle-Best-Practices/m-p/94200#M7477</link>
      <description>&lt;P&gt;Its fairly easy to setup kafka on local machine.&lt;/P&gt;&lt;P&gt;Download kafka from here &lt;A href="https://kafka.apache.org/downloads.html" target="_blank"&gt;https://kafka.apache.org/downloads.html&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Unzip &lt;A href="https://www.apache.org/dyn/closer.cgi?path=/kafka/0.8.2.0/kafka_2.10-0.8.2.0.tgz"&gt;kafka_2.10-0.8.2.0.tgz&lt;/A&gt;&lt;/P&gt;&lt;P&gt;run ./bin/zookeeper-server-start.sh config/zookeeper.properties&lt;/P&gt;&lt;P&gt;run ./bin/kafka-server-start.sh config/server.properties&lt;/P&gt;&lt;P&gt;once you've kafka up and running you can use storm LocalCluster to deploy and test your topology. More details on LocalCluster &lt;A href="https://storm.apache.org/documentation/Local-mode.html" target="_blank"&gt;https://storm.apache.org/documentation/Local-mode.html&lt;/A&gt; .&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2015 04:25:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Storm-and-Kafka-Development-Cycle-Best-Practices/m-p/94200#M7477</guid>
      <dc:creator>schintalapani</dc:creator>
      <dc:date>2015-09-24T04:25:21Z</dc:date>
    </item>
    <item>
      <title>Re: Storm and Kafka Development Cycle - Best Practices</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Storm-and-Kafka-Development-Cycle-Best-Practices/m-p/94201#M7478</link>
      <description>&lt;P&gt;Doesn't local storm instance not work for them? E.g. most of online examples check to see if topology is being launched in the same JVM or a distributed cluster.&lt;/P&gt;&lt;P&gt;One of my customers has built a web utility to be able to remotely submit topology jar to the cluster. I'd imagine it's easy to build with any REST framework.&lt;/P&gt;&lt;P&gt;This might be a good idea to suggest&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2015 04:28:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Storm-and-Kafka-Development-Cycle-Best-Practices/m-p/94201#M7478</guid>
      <dc:creator>andrewg</dc:creator>
      <dc:date>2015-09-24T04:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Storm and Kafka Development Cycle - Best Practices</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Storm-and-Kafka-Development-Cycle-Best-Practices/m-p/94202#M7479</link>
      <description>&lt;P&gt;I have used and built some testing utilities to be able to create unit tests and integration tests of topologies that use kafka, solr and other components. These provide the capabilities to deploy a topology from your desktop machine to your dev cluster, etc..&lt;/P&gt;&lt;P&gt;Check out the following github links for examples:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;A href="https://github.com/georgevetticaden/hdp/blob/master/reference-apps/ecm-app/ecm-streaming/src/test/java/hortonworks/hdp/refapp/ecm/streaming/topology/DocumentProcessorTopologyLocalClusterTest.java"&gt;Unit Test Example&lt;/A&gt;&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://github.com/georgevetticaden/hdp/blob/master/reference-apps/ecm-app/ecm-streaming/src/test/java/hortonworks/hdp/refapp/ecm/streaming/topology/DocumentProcessorTopologyLocalClusterTest.java"&gt;&lt;/A&gt;&lt;A href="https://github.com/georgevetticaden/hdp/blob/master/reference-apps/ecm-app/ecm-streaming/src/test/java/hortonworks/hdp/refapp/ecm/streaming/topology/DocumentProcessorTopologyDevClusterTest.java"&gt;Integration Test Example&lt;/A&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;The test utilities it uses can be found &lt;A href="https://github.com/georgevetticaden/hdp/tree/master/app-utils/hdp-app-utils/src/main/java/hortonworks/hdp/apputil"&gt;here&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;Also check out the &lt;A href="http://hortonworks-gallery.github.io/index.html?sort=asc&amp;amp;filter=featured"&gt;Hortonworks Gallery&lt;/A&gt;, it has a cool project that is being featured called Mini Clusters by &lt;A rel="user" href="https://community.cloudera.com/users/149/skumpf.html" nodeid="149"&gt;@skumpf@hortonworks.com&lt;/A&gt; that has some great testing utilities to run clusters in local mode.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2015 04:37:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Storm-and-Kafka-Development-Cycle-Best-Practices/m-p/94202#M7479</guid>
      <dc:creator>gvetticaden1</dc:creator>
      <dc:date>2015-09-24T04:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: Storm and Kafka Development Cycle - Best Practices</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Storm-and-Kafka-Development-Cycle-Best-Practices/m-p/94203#M7480</link>
      <description>&lt;P&gt;I plan to move these this from my github to the Gallery&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2015 19:56:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Storm-and-Kafka-Development-Cycle-Best-Practices/m-p/94203#M7480</guid>
      <dc:creator>gvetticaden1</dc:creator>
      <dc:date>2015-09-25T19:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Storm and Kafka Development Cycle - Best Practices</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Storm-and-Kafka-Development-Cycle-Best-Practices/m-p/94204#M7481</link>
      <description>&lt;P&gt;I have had success setting up an Eclipse project for Storm/Kafka and using the tools there to semi automate the build and deployment.  Anyone else tried that?&lt;/P&gt;</description>
      <pubDate>Sat, 26 Sep 2015 00:30:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Storm-and-Kafka-Development-Cycle-Best-Practices/m-p/94204#M7481</guid>
      <dc:creator>wsalazar</dc:creator>
      <dc:date>2015-09-26T00:30:43Z</dc:date>
    </item>
    <item>
      <title>Re: Storm and Kafka Development Cycle - Best Practices</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Storm-and-Kafka-Development-Cycle-Best-Practices/m-p/94205#M7482</link>
      <description>&lt;P&gt;I found using some simple ssh scripts made it quicker for me:&lt;/P&gt;&lt;PRE&gt;mvn package

ssh root@storm-server &amp;lt;&amp;lt;'ENDSSH'
storm kill &amp;lt;current topology name&amp;gt;
ENDSSH

scp target/&amp;lt;topology&amp;gt;.jar root@&amp;lt;storm server&amp;gt;:
scp src/main/resources/config.properties root@&amp;lt;storm server&amp;gt;:


ssh root@&amp;lt;storm server&amp;gt; &amp;lt;&amp;lt;'ENDSSH'
storm jar &amp;lt;topology&amp;gt;.jar &amp;lt;main class&amp;gt; config.properties
ENDSSH
&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Sep 2015 22:24:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Storm-and-Kafka-Development-Cycle-Best-Practices/m-p/94205#M7482</guid>
      <dc:creator>pwendorf</dc:creator>
      <dc:date>2015-09-29T22:24:37Z</dc:date>
    </item>
    <item>
      <title>Re: Storm and Kafka Development Cycle - Best Practices</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Storm-and-Kafka-Development-Cycle-Best-Practices/m-p/94206#M7483</link>
      <description>&lt;P&gt;using localcluster utility from storm works pretty well. I also used examples from &lt;A href="https://github.com/nathanmarz/storm-starter/blob/master/test/jvm/storm/starter/bolt/RollingCountBoltTest.java" target="_blank"&gt;https://github.com/nathanmarz/storm-starter/blob/master/test/jvm/storm/starter/bolt/RollingCountBoltTest.java&lt;/A&gt; for my own unit tests. MockTuple is the way to go&lt;/P&gt;</description>
      <pubDate>Mon, 05 Oct 2015 19:55:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Storm-and-Kafka-Development-Cycle-Best-Practices/m-p/94206#M7483</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2015-10-05T19:55:46Z</dc:date>
    </item>
  </channel>
</rss>

