[ 
https://issues.apache.org/jira/browse/SPARK-32475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17167736#comment-17167736
 ] 

Hyukjin Kwon commented on SPARK-32475:
--------------------------------------

Looks like you're Java paths are mixed up. It happens when you compile with JDK 
11 but run it with JDK 8.

> java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;
> ----------------------------------------------------------------------------
>
>                 Key: SPARK-32475
>                 URL: https://issues.apache.org/jira/browse/SPARK-32475
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 3.0.0
>         Environment: Spark-3.0.0;JDK 8
>            Reporter: jinhai
>            Priority: Major
>         Attachments: image-2020-07-30-15-15-42-319.png
>
>
> When I use the command to compile spark-core_2.12 module, and then use the 
> spark-core_2.12-3.0.0.jar instead of /jars/spark-core_2.12-3.0.0.jar, I will 
> report an error (without making any code changes)
> command: ./build/mvn -pl :spark-core_2.12 -Pyarn -Phive -Phive-thriftserver 
> -Dhadoop.version=2.7.4 -DskipTests clean package
> version: spark-3.0.0
> jdk: 1.8



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to