Closed liujiaqiid closed 6 years ago
@dan-blanchard @tdhopper
btw: storm version is 1.2.0; steamparse version is 3.13.1
It's weird. My solution is:
virtualenv /opt/data/virtualenv/pyenvforstorm
source /opt/data/virtualenv/pyenvforstorm/bin/activate
pip install -r pyenvforstorm.txt
"virtualenv_root": "/opt/data/virtualenvs",
"install_virtualenv": true,
"virtualenv_name": "pyenvforstorm",
"use_virtualenv": true
I intend to use the same virtual env for all my topls. And It looks fine for me。
The detail error info:
java.lang.RuntimeException: Error when launching multilang subprocess at org.apache.storm.utils.ShellProcess.launch(ShellProcess.java:94) at org.apache.storm.spout.ShellSpout.open(ShellSpout.java:114) at org.apache.storm.daemon.executor$fn__4975$fn__4990.invoke(executor.clj:609) at org.apache.storm.util$async_loop$fn__557.invoke(util.clj:482) at clojure.lang.AFn.run(AFn.java:22) at java.lang.Thread.run(Thread.java:748) Caused by: java.io.IOException: Cannot run program "/opt/data/virtualenvs/hfp_searchindex/bin/streamparse_run" (in directory "/opt/data/storm/supervisor/stormdist/hfp_searchindex-125-1522140260/resources"): error=2, No such file or directory at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) at org.apache.storm.utils.ShellProcess.launch(ShellProcess.java:87) ... 5 more Caused by: java.io.IOException: error=2, No such file or directory at java.lang.UNIXProcess.forkAndExec(Native Method) at java.lang.UNIXProcess.<init>(UNIXProcess.java:247) at java.lang.ProcessImpl.start(ProcessImpl.java:134) at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) ... 6 more
The pip install requirements : ./virtualenvs/hfp_searchindex.txt
List the bin directory , the streamparse_run is exists
The config.json