You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2018/11/04 20:57:00 UTC
[GitHub] sijie opened a new pull request #2926: Fix process runtime with
extra dependencies and re-enable python integration tests
sijie opened a new pull request #2926: Fix process runtime with extra dependencies and re-enable python integration tests
URL: https://github.com/apache/pulsar/pull/2926
### Motivation
fix python process with extra dependencies
```
java.io.IOException: Cannot run program “PYTHONPATH=${PYTHONPATH}:/Users/jerrypeng/workspace/incubator-pulsar/instances/deps”: error=2, No such file or directory
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1048) ~[?:1.8.0_144]
at org.apache.pulsar.functions.runtime.ProcessRuntime.startProcess(ProcessRuntime.java:291) [pulsar-functions-runtime.jar:2.3.0-SNAPSHOT]
at org.apache.pulsar.functions.runtime.ProcessRuntime.start(ProcessRuntime.java:124) [pulsar-functions-runtime.jar:2.3.0-SNAPSHOT]
at org.apache.pulsar.functions.runtime.RuntimeSpawner$1.run(RuntimeSpawner.java:94) [pulsar-functions-runtime.jar:2.3.0-SNAPSHOT]
at java.util.TimerThread.mainLoop(Timer.java:555) [?:1.8.0_144]
at java.util.TimerThread.run(Timer.java:505) [?:1.8.0_144]
Caused by: java.io.IOException: error=2, No such file or directory
at java.lang.UNIXProcess.forkAndExec(Native Method) ~[?:1.8.0_144]
at java.lang.UNIXProcess.<init>(UNIXProcess.java:247) ~[?:1.8.0_144]
at java.lang.ProcessImpl.start(ProcessImpl.java:134) ~[?:1.8.0_144]
at java.lang.ProcessBuilder.start(ProcessBuilder.java:1029) ~[?:1.8.0_144]
... 5 more
```
### Modifications
- set environment variables in process builder for process runtime
- enable python function integration tests
- add integration test for python function with extra dependencies
### Result
python functions test passed and integration test for python function with extra deps is tested.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services