Hadoop 2.0 JAR files

后端 未结 3 1603
感动是毒
感动是毒 2020-12-11 22:46

I am getting an unexpected error when trying to instantiate a Configuration object in my Map/Reduce program.

The error is as follows:

相关标签:
3条回答
  • 2020-12-11 23:00

    you can try right-clicking the Project, ->Build Path -> Configure Build Path

    Go to your src folder, point to "Native Library", then edit the location to the location of your hadoop native library folder (normally: ~/hadoop-x.x.x/lib/native/"folder-depending-on-your-system")

    0 讨论(0)
  • 2020-12-11 23:06

    Including JARs in folders listed below worked for me: share\hadoop\common
    share\hadoop\common\lib
    share\hadoop\mapreduce
    share\hadoop\mapreduce\lib share\hadoop\yarn
    share\hadoop\yarn\lib

    0 讨论(0)
  • 2020-12-11 23:09

    I resolved the problem by downloading the JAR files from commons.apache directory and from Maven repositories. Each time I added a new JAR to the project, the application crashed with a different error (a different class was not found) until I downloaded all of the JAR files from the Maven repository. After downloading a lot of JAR files from the online repositories, most of the JAR related problems seem to be resolved.

    0 讨论(0)
提交回复
热议问题