You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+83
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,8 @@ Frequently Asked Questions around PyFlink.
7
7
8
8
Q1: [Scala 2.11 VS Scala 2.12](#q1-scala-211-vs-scala-212)
9
9
10
+
Q2: [Java gateway process exited before sending its port number](#q2-java-gateway-process-exited-before-sending-its-port-number)
11
+
10
12
## JDK issues:
11
13
12
14
Q1: [InaccessibleObjectException: Unable to make field private final byte[] java.lang.String.value accessible: module java.base does not "opens java.lang" to unnamed module @4e4aea35](#q1-inaccessibleobjectexception-unable-to-make-field-private-final-byte-javalangstringvalue-accessible-module-javabase-does-not-opens-javalang-to-unnamed-module-4e4aea35)
@@ -39,6 +41,87 @@ Q3: [Types.BIG_INT() VS Types.LONG()](#q3-typesbig_int-vs-typeslong)
39
41
40
42
PyFlink only provides official installation packages which contain JAR packages for Scala 2.11 before Flink 1.15 and Scala 2.12 since Flink 1.15+. If you want to use Scala 2.12, you can download the [binary distribution](https://flink.apache.org/downloads.html) of Scala 2.12, unzip it and then set the environment variable **FLINK_HOME** to point to the unzipped directory. This makes it use the JAR packages specified by **FLINK_HOME** instead of the JAR packages under PyFlink installation package. You can refer to [PyFlink documentation](https://nightlies.apache.org/flink/flink-docs-stable/docs/dev/python/environment_variables/) for more details.
41
43
44
+
## Q2: Java gateway process exited before sending its port number
45
+
46
+
The exception stack is as following:
47
+
```shell
48
+
Traceback (most recent call last):
49
+
File "/Users/dianfu/code/src/github/pyflink-faq/testing/test_utils.py", line 122, in setUp
File "/Users/dianfu/code/src/github/pyflink-faq/testing/.venv/lib/python3.8/site-packages/apache_flink-1.14.4-py3.8-macosx-10.9-x86_64.egg/pyflink/table/environment_settings.py", line 267, in in_streaming_mode
File "/Users/dianfu/code/src/github/pyflink-faq/testing/.venv/lib/python3.8/site-packages/apache_flink-1.14.4-py3.8-macosx-10.9-x86_64.egg/pyflink/java_gateway.py", line 62, in get_gateway
54
+
_gateway = launch_gateway()
55
+
File "/Users/dianfu/code/src/github/pyflink-faq/testing/.venv/lib/python3.8/site-packages/apache_flink-1.14.4-py3.8-macosx-10.9-x86_64.egg/pyflink/java_gateway.py", line 112, in launch_gateway
56
+
raise Exception("Java gateway process exited before sending its port number")
57
+
Exception: Java gateway process exited before sending its port number
58
+
```
59
+
60
+
This issue is usually caused by the reason that PyFlink isn't installed correctly. You can verify whether PyFlink is installed correctly as following:
## Q1: InaccessibleObjectException: Unable to make field private final byte[] java.lang.String.value accessible: module java.base does not "opens java.lang" to unnamed module @4e4aea35
0 commit comments