casionone commented on issue #1991: URL: https://github.com/apache/incubator-linkis/issues/1991#issuecomment-1102361240
Unfortunately there is a compatibility issue with spark versions. The version of net.sf.py4j that spark-core_2.11:2.4.3 depends on is 0.10.7 The version of net.sf.py4j that spark-core_2.11:2.3.0 depends on is 0.10.6 The authToken method was introduced in the py4j.GatewayServer.GatewayServerBuilder version 0.10.7 of py4j. Details can be viewed: https://github.com/py4j/py4j/blob/0.10.6/py4j-java/src/main/java/py4j/GatewayServer.java https://github.com/py4j/py4j/blob/0.10.7/py4j-java/src/main/java/py4j/GatewayServer.java You can try to manually introduce the dependencies of the 0.10.7 version of py4j to solve this problem ---- 是存在spark版本的兼容性问题。 spark-core_2.11:2.4.3版本依赖的net.sf.py4j版本是0.10.7 spark-core_2.11:2.3.0版本依赖的net.sf.py4j版本是0.10.6 py4j的版本0.10.7版本的py4j.GatewayServer.GatewayServerBuilder 才引入了authToken方法 。 详细可以查看: https://github.com/py4j/py4j/blob/0.10.6/py4j-java/src/main/java/py4j/GatewayServer.java https://github.com/py4j/py4j/blob/0.10.7/py4j-java/src/main/java/py4j/GatewayServer.java 可以尝试手动引入py4j的0.10.7 版本的依赖,来解决这个问题 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@linkis.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@linkis.apache.org For additional commands, e-mail: dev-h...@linkis.apache.org