0

I want to call my Java interfaces in a jar file in a PyFlink job. No solutions are found in the offical document.

Xingjun Wang
  • 413
  • 2
  • 4
  • 17

2 Answers2

0

It looks to me like support for this was not included in Flink 1.9, but is ongoing work. See FLIP-58. FLIP-78 and FLIP-88 may also be of interest. Note that most of these improvements will be included in the upcoming Flink 1.10 release.

David Anderson
  • 39,434
  • 4
  • 33
  • 60
  • Yes, it is not mentioned in the doc. I have tried to call Java interface in jar file successfully with two modules "pyflink.java_gateway" and "py4j.java_gateway". But there might be some problems hidden. Thanks for your reply. – Xingjun Wang Jan 07 '20 at 06:22
0

You can use python table api to register java user-defined function if it satisfies your need. The signature of method is register_java_function in table_environment

Xingbo Huang
  • 363
  • 1
  • 5