小编jmh*_*des的帖子

apache-spark 运行时出现警告,org.apache.spark.unsafe.Platform java.nio.DirectByteBuffer(long,int) 进行非法反射访问

我通过 homebrew 安装了 apache-spark

brew install apache-spark
Run Code Online (Sandbox Code Playgroud)

然后跑了

Spark-shell  
Run Code Online (Sandbox Code Playgroud)

并返回以下警告:

WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.spark.unsafe.Platform (file:/usr/local/Cellar/apache-spark/3.2.0/libexec/jars/spark-unsafe_2.12-3.2.0.jar) to constructor java.nio.DirectByteBuffer(long,int)
WARNING: Please consider reporting this to the maintainers of org.apache.spark.unsafe.Platform
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
Using Spark's default log4j profile: org/apache/spark/log4j-defaults.properties
Setting default log level to "WARN".
To adjust logging level use sc.setLogLevel(newLevel). …
Run Code Online (Sandbox Code Playgroud)

java apache-spark

5
推荐指数
1
解决办法
5818
查看次数

标签 统计

apache-spark ×1

java ×1