log4j:WARN No appenders could be found forlogger (org.apache.hadoop.metrics2.lib.MutableMetricsFactory).
log4j:WARN Please initialize the log4jsystem properly.
log4j:WARN Seehttp://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Exception in thread "main"java.lang.UnsatisfiedLinkError:org.apache.hadoop.io.nativeio.NativeIO$Windows.access0(Ljava/lang/String;I)Z

C:\Windows\System32下缺少hadoop.dll,把这个文件拷贝到C:\Windows\System32下面即可。
报错解决Exception: org.apache.hadoop.io.nativeio.NativeIO$Windows.access0(Ljava/lang/String;I)Z
mr任务尽量在linux下的hadoop集群运行,在windows下会出现这种很玄学的问题,因为我是正确的代码,运行成功的,这次突然出这种问题。

相关文章:

  • 2021-09-01
  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
  • 2021-07-30
  • 2021-06-19
  • 2021-12-17
猜你喜欢
  • 2022-12-23
  • 2021-10-29
  • 2021-04-16
  • 2021-06-04
  • 2022-02-10
  • 2021-10-01
相关资源
相似解决方案