简体   繁体   中英

what is the working directory for jar laucher in apache storm topology jar

I am a novice in Apache Storm. I have created a storm project in java and it successfully creates. My Application had a java process which needs absolute path of the application working directory or class path of the topology jar. please answer my following question:

  1. What is the path of the class files of a topology jar which we upload using storm jar command ?

  2. I am java process which need some JVM parameters, i had tried setting them in storm.yaml file. Is it right way to do or not ?

The uploaded jars go into {storm.local.dir}/nimbus/inbox (or something similar -- can't remember exactly). storm.local.dir is configured in storm.yaml .

Using worker.childopts in storm.yaml to set worker JVM options is the correct way to go.

After trying different type of use cases and options available in internet, i found solution to my problem.

Using topology.classpath in topology Config to set the classpath of the jars i want to read its working.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM