How to resolve java.lang.RuntimeException: PipeMapRed.waitOutputThreads(): subprocess failed with code 2?

时光总嘲笑我的痴心妄想 提交于 2019-11-30 22:59:34

Could you pls post the python files? My guess is that, you need to add #!/usr/bin/python to the top of your py file. This was the case when I was streaming using python.

Best, Hari

Adding below line to the top of python script made the code work for me.

#!/usr/bin/python

I can't say exactly what your error is, but mine was that I had an unresolved dependency in my python script. Namely statsmodels.

In your sentiment.py file, add the following line to the top:

```

!/usr/bin/env python

```

This worked for me.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!