在windows中使用hadoop时发生java非法反射访问操作
问:当我试图使用cmd中的“hadoop fs-mkdir/input_dir”命令创建目录时。在Hadoop安装成功后执行。我犯了这个错误。我将附上下面的截图
C:\hadoop-2.10.0\sbin>hdfs dfs -mkdir /sample WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.apache.hadoop.security.authentication. util.KerberosUtil (file:/C:/hadoop-2.10.0/share/hadoop/common/lib/hadoop-auth-2. 10.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 be denied in a future release mkdir: Call From LGNNV1CC to localhost:9870 failed on connection exception: java.net.ConnectException: Connection refused: no further information"
# 1 楼答案
警告是什么意思
程序从另一个不可见/不可访问的模块访问字段/方法,但使该字段/方法可访问
影响是什么
事实上,这只是一个警告。你可以忽略它