【发布时间】:2014-08-06 06:35:28
【问题描述】:
当我尝试在 Windows 中部署 Word 拓扑时出现以下错误。
我已经按照下面的链接在 windows 中部署了 Topology 这个词。
http://ptgoetz.github.io/blog/2013/12/18/running-apache-storm-on-windows/
当我部署并看到我收到以下错误。
java.lang.RuntimeException: Error when launching multilang subprocess
at backtype.storm.task.ShellBolt.prepare(ShellBolt.java:105)
at backtype.storm.daemon.executor$fn__3493$fn__3505.invoke(executor.clj:689)
at backtype.storm.util$async_loop$fn__457.invoke(util.clj:431)
at clojure.lang.AFn.run(AFn.java:24)
at java.lang.Thread.run(Thread.java:722)
Caused by: java.io.IOException: Cannot run program "python" (in directory "storm- local\supervisor\stormdist\WordCount-1-1407303402\resources"): CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029)
at backtype.storm.utils.ShellProcess.launch(ShellProcess.java:50)
at backtype.storm.task.ShellBolt.prepare(ShellBolt.java:102)
... 4 more
Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.(ProcessImpl.java:189)
at java.lang.ProcessImpl.start(ProcessImpl.java:133)
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1021)
谁能帮帮我。
【问题讨论】:
-
你的机器上安装python了吗?在教程中提到安装python
-
是的,我已经安装了python,但我仍然觉得python只是导致问题的原因。资源文件夹文件未正确加载
-
也许 python 只是不在你的 PATH 中?
标签: java python apache-storm topology