相关疑难解决方法(0)

如何修复 Hadoop 警告:在 Ubuntu 上发生了非法反射访问操作错误

我已经安装了 Javaopenjdk version "10.0.2"并且Hadoop 2.9.0成功了。所有进程都运行良好

hadoopusr@amalendu:~$ jps
19888 NameNode
20388 DataNode
20898 NodeManager
20343 SecondaryNameNode
20539 ResourceManager
21118 Jps
Run Code Online (Sandbox Code Playgroud)

但是当我尝试执行任何命令时,例如hdfs dfs -ls /收到此警告

hadoopusr@amalendu:~$ hdfs dfs -ls /
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.hadoop.security.authentication.util.KerberosUtil (file:/usr/local/hadoop/share/hadoop/common/lib/hadoop-auth-2.9.0.jar) to method sun.security.krb5.Config.getInstance()
WARNING: Please consider reporting this to the maintainers of org.apache.hadoop.security.authentication.util.KerberosUtil
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will …
Run Code Online (Sandbox Code Playgroud)

java ubuntu hadoop hadoop2

15
推荐指数
2
解决办法
2万
查看次数

标签 统计

hadoop ×1

hadoop2 ×1

java ×1

ubuntu ×1