本人使用ubuntu18.04,hadoop2.7.1版本,默认jdk应该是openjdk11.0.4。
启动hadoop,包括使用hadoop中的hdfs进行一系列操作,都会报出这一串的警告,但是运行也是正常,但是着实影响体验。
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.hadoop.security.authentication.util.KerberosUtil (file:/usr/local/hadoop/myapp/HDFSExample_lib/hadoop-auth-2.7.1.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 be denied in a future release
百度了一下网友的观点,发现是jdk版本过高,我修改了当前用户的环境变量,就好了,具体操作:
vim ~/.bashrc
添加:
export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_162
export PATH=
启动hadoop报出一串警告
最新推荐文章于 2024-05-16 01:04:38 发布