Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spark + Java 11 requires additional config param for Apache Arrow #102

Open
takuti opened this issue Feb 2, 2021 · 0 comments
Open

Spark + Java 11 requires additional config param for Apache Arrow #102

takuti opened this issue Feb 2, 2021 · 0 comments

Comments

@takuti
Copy link
Contributor

takuti commented Feb 2, 2021

According to the latest Spark documentation:

For Java 11, -Dio.netty.tryReflectionSetAccessible=true is required additionally for Apache Arrow library. This prevents java.lang.UnsupportedOperationException: sun.misc.Unsafe or java.nio.DirectByteBuffer.(long, int) not available when Apache Arrow uses Netty internally.

We'd need to tweak pytd/spark.py to handle this case.

Like this...

SparkConf()
  .setMaster("local[*]")
  .set("spark.serializer", "org.apache.spark.serializer.KryoSerializer")
  .set("spark.sql.execution.arrow.pyspark.enabled", "true")
  .set("spark.executor.extraJavaOptions", "-Dio.netty.tryReflectionSetAccessible=true")
  .set("spark.driver.extraJavaOptions", "-Dio.netty.tryReflectionSetAccessible=true")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant