thanks i checked the link it's good for me but the question that i'm searching about 1- is production mode means distributed mode ? 2- if question 1 = yes , is that mean working on more than one machine ? 3- if question 2 = yes , is there specific configuration should i wrote in storm.yaml and zoo.cfg means is that configuration right storm.zookeeper.servers: - "ipaddress" nimbus.host: "ipaddress" storm.zookeeper.port: 2181
storm.local.dir: /home/storm supervisor.slots.ports: - 6700 - 6701 - 6702 - 6703 drpc.port: 3772 drpc.servers: - "localhost" and zoo.cfg is tickTime=2000 dataDir=/home/storm/zookeeper clientPort=2181 initLimit=5 syncLimit=2 sorry for lot questions i'm searching to find a good solution but i hope you can help me , Thanks On Thu, Dec 24, 2015 at 9:06 PM, Harsha <m...@harsha.io> wrote: > You can actually use single node cluster for testing this out. The link > I gave you have instructions to start all the required storm services > and once thats up and running you can use storm jar to deploy the > topology. > > On Thu, Dec 24, 2015, at 10:58 AM, researcher cs wrote: > > thanks for replying , but what i mean that i found project using storm > > and > > coder wrote this lines > > > > *To compile and run the project in local mode*, type the following > > commands > > while being on the project root directory > > mvn package > > mvn compile exec:java -Dexec.classpathScope=compile > > -Dexec.mainClass=trident.topology_name > > > > *To run in production cluster*, first package the code into a jar by > > running > > mvn package. > > This will package your code into a jar at the path > > target/Topology_name-{version}-jar-with-dependencies.jar. > > Then you can submit your jar to the cluster using the storm client: > > storm jar target/Topology_namr-1.0-SNAPSHOT-jar-with-dependencies.jar > > trident.Topology_name > > > > Please note that in the production cluster mode, you require a DRPCClient > > to feed the topology with tweets and get results. > > > > > > i ran it in local mode by the above commands and worked well but now i > > want > > to run it in distrbuted mode as he wote i need to submit the topology to > > storm but what i should need in configuration for zoo.cfg and storm.yaml > > for working ? > > > > should i need more than single machine or not ? > > > > how it can be in distributed mode in single machine ? > > > > > > Thanks for your help > > > > > > > > On Thu, Dec 24, 2015 at 7:43 PM, Harsha <st...@harsha.io> wrote: > > > > > In storm, local mode means you run by using LocalCluster class its a > > > simulated cluster for testing topologies and aid development of > > > topologies . Example of LocalCluster > > > > > > > https://github.com/apache/storm/blob/master/examples/storm-starter/src/jvm/storm/starter/WordCountTopology.java#L99 > > > > > > In production it would be a distributed cluster. One needs to setup a > > > distributed cluster and config you showed seems ok . > > > You can follow steps here setup up a single node cluster > > > http://blog.harsha.io/setting-up-a-single-node-apache-storm-cluster/ > > > and same can be extended for multi-node cluster. > > > > > > I am not quite sure about what you mean by importing a topology that > run > > > in two modes in local or production. In the first link I gave you , > > > wordcount topology can run local cluster and on distributed as well. > > > > > > -Harsha > > > > > > On Thu, Dec 24, 2015, at 08:54 AM, researcher cs wrote: > > > > can i find help ? > > > > > > > > On Thu, Dec 24, 2015 at 7:08 AM, researcher cs > > > > <prog.researc...@gmail.com> > > > > wrote: > > > > > > > > > I want to import a project that run in two modes "local and > production" > > > > > mode > > > > > > > > > > want to get what is mean by production mode is that mean in > cluster or > > > > > distributed mode ? > > > > > > > > > > and if that right . are the configurations in storm.yaml is like > that > > > or > > > > > not ? > > > > > storm.zookeeper.servers: > > > > > - "ipaddress" > > > > > nimbus.host: "ipaddress" > > > > > storm.zookeeper.port: 2181 > > > > > > > > > > storm.local.dir: /home/storm > > > > > > > > > > supervisor.slots.ports: > > > > > - 6700 > > > > > - 6701 > > > > > - 6702 > > > > > - 6703 > > > > > drpc.port: 3772 > > > > > drpc.servers: > > > > > - "localhost" > > > > > > > > > > and zoo.cfg is > > > > > tickTime=2000 > > > > > dataDir=/home/storm/zookeeper > > > > > clientPort=2181 > > > > > initLimit=5 > > > > > syncLimit=2 > > > > > > > > >