Skip to content

Language Support #754

Closed Answered by rkolesnev
Shounak47 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Shounak47,
IMHO easiest would be to use an API call over Rest or GRPC etc.
There are projects that allow to execute Python code from Java - for example PemJa - https://github.com/alibaba/pemja.
Flink is using it for PyFlink UDF execution in THREAD mode - some information on that - https://flink.apache.org/2022/05/06/exploring-the-thread-mode-in-pyflink/ https://nightlies.apache.org/flink/flink-docs-master/docs/dev/python/python_execution_mode/
But it would be quite involved to integrate python code through PemJa.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by Shounak47
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants