8000 add trobule shooting section in readme · sqlparser/python_data_lineage@b242b31 · GitHub
[go: up one dir, main page]

Skip to content

Commit b242b31

Browse files
committed
add trobule shooting section in readme
1 parent f7e9bd4 commit b242b31

File tree

1 file changed

+43
-1
lines changed

1 file changed

+43
-1
lines changed

README.md

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,28 @@ You only need a JDK and a python interpreter to run the Gudu SQLFlow lite versio
127127

128128
### Step 1: Prerequisites
129129
* Install python3
130-
* Install Java jdk1.8
130+
* Install Java jdk1.8 (openJdk-8 is recommended)
131+
132+
Command used to check java version:
133+
134+
`java -version`
135+
136+
If the Java is not installed, exexute this command:
137+
138+
`sudo apt install openjdk-8-jdk`
139+
140+
If this error occurs:
141+
142+
`Unable to locate package openjdk-8-jdk`
143+
144+
Please execute the following commands:
145+
146+
```
147+
sudo add-apt-repository ppa:openjdk-r/ppa
148+
apt-get update
149+
sudo apt install openjdk-8-jdk
150+
```
151+
131152
132153
### Step 2: Open the web service
133154
Switch to the widget directory of this project and execute the following command to start the web service:
@@ -215,5 +236,26 @@ and hand it over to Gudu SQLFlow for data lineage analysis.。
215236
216237
## Trouble shooting
217238
239+
240+
### 1. SystemError: java.lang.ClassNotFoundException: org.jpype.classloader.DynamicClassLoader
241+
242+
```
243+
Traceback (most recent call last):
244+
File "/home/grq/python_data_lineage/dlineage.py", line 231, in <module>
245+
call_dataFlowAnalyzer(args)
246+
File "/home/grq/python_data_lineage/dlineage.py", line 20, in call_dataFlowAnalyzer
247+
jpype.startJVM(jvm, "-ea", jar)
248+
File "/usr/lib/python3/dist-packages/jpype/_core.py", line 224, in startJVM
249+
_jpype.startup(jvmpath, tuple(args),
250+
SystemError: java.lang.ClassNotFoundException: org.jpype.classloader.DynamicClassLoader
251+
```
252+
253+
This problem is related to python3 jpype on ubuntu system. It seems that org.jpype.jar file is missing under /usr/lib/python3/dist-packages/
254+
just copy org.jpype.jar to /usr/lib/python3/dist-packages/
255+
256+
```
257+
cp /usr/share/java/org.jpype.jar /usr/lib/python3/dist-packages/org.jpype.jar
258+
```
259+
218260
## Contact
219261
For further information, please contact support@gudusoft.com

0 commit comments

Comments
 (0)
0