sbourkeostk commented on issue #5518: python functions cannot find python3 interpreter URL: https://github.com/apache/pulsar/issues/5518#issuecomment-581825225 @srkukarni, you got me thinking. How about reusing `customRuntimeOptions`? Eg: 3a2b312c4ded8cd78ca61e3877add394f01b8fe4. Then setting custom-runtime-options to `{"PythonInterpreter": "python3"}` or even `{"PythonInterpreter": "/opt/python-3.6.5/bin/python3"}` would set the interpreter. The reason for using json is to maintain compatibility with `KubernetesManifestCustomizer` which I think is the only other use of the parameter. By the way, the protobuf python definitions also need to be recompiled for this to work. Probably should be done in any case. The one in master seems to be [old](https://github.com/apache/pulsar/blob/master/pulsar-functions/instance/src/main/python/Function_pb2.py) and doesn't include `customRuntimeOptions` (added with 320cebe09f80116a2df81a5df1bcfd518ecf8c08) (The python definitions don't get built by maven - they are been generated manually and tracked by git).
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
