Configure process runtime

You can use the default configurations of process runtime in the conf/functions_worker.yml file.

If you want to customize more parameters, refer to the following example.

  1. functionRuntimeFactoryClassName: org.apache.pulsar.functions.runtime.process.ProcessRuntimeFactory
  2. functionRuntimeFactoryConfigs:
  3. # the directory for storing the function logs
  4. logDirectory:
  5. # change the jar location only when you put the java instance jar in a different location
  6. javaInstanceJarLocation:
  7. # change the python instance location only when you put the python instance jar in a different location
  8. pythonInstanceLocation:
  9. # change the extra dependencies location:
  10. extraFunctionDependenciesDir:

For more details, see code.