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 2019/10/31 14:21:59 UTC

[GitHub] [pulsar] candlerb edited a comment on issue #5518: python functions cannot find python3 interpreter

candlerb edited a comment on issue #5518: python functions cannot find python3 interpreter
URL: https://github.com/apache/pulsar/issues/5518#issuecomment-548351376
 
 
   Part of the answer comes from pulsar's debug output: it is running `python .../python_instance_main.py ...args...`
   
   ```
   12:25:45.004 [function-timer-thread-94-1] INFO  org.apache.pulsar.functions.runtime.ProcessRuntime - ProcessBuilder starting the process with args
     python /home/ubuntu/apache-pulsar-2.4.1/instances/python-instance/python_instance_main.py
     --py /tmp/pulsar_functions/public/default/womble/0/func1.py
     --logging_directory /home/ubuntu/apache-pulsar-2.4.1/logs/functions --logging_file womble
     --logging_config_file /home/ubuntu/apache-pulsar-2.4.1/conf/functions-logging/logging_config.ini
     --instance_id 0 --function_id 67fb9828-56ab-49ff-bbbc-56db9510d26c
     --function_version 4f01d696-28da-40b7-b9f5-2283fbe9bd7c
     --function_details '{"tenant":"public","namespace":"default","name":"womble","className":"FirstFunction","logTopic":"pulsar-log","runtime":"PYTHON","autoAck":true,"parallelism":1,"source":{"inputSpecs":{"my-topic":{}},"cleanupSubscription":true},"sink":{},"resources":{"cpu":1.0,"ram":"1073741824","disk":"10737418240"},"componentType":"FUNCTION"}'
     --pulsar_serviceurl pulsar://ldex-pulsar.int.example.net:6650 --max_buffered_tuples 1024
     --port 38423 --metrics_port 36591 --state_storage_serviceurl bk://127.0.0.1:4181
     --expected_healthcheck_interval 30 --secrets_provider secretsprovider.ClearTextSecretsProvider
     --cluster_name standalone
   ```
   
   So a configuration option to change "python" to "python3" here would be great, and solve the problem.

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services