i'm working on java project running hadoop 0.20.1 , i'm trying migrate hadoop 2.6.0. once i've changed corresponding hadoop jar files in project, obtain following error when submitting job:
exception in thread "main" java.lang.unsatisfiedlinkerror: org.apache.hadoop.io.nativeio.nativeio$windows.access0(ljava/lang/string;i)z @ org.apache.hadoop.io.nativeio.nativeio$windows.access0(native method) @ org.apache.hadoop.io.nativeio.nativeio$windows.access(nativeio.java:557) @ org.apache.hadoop.fs.fileutil.canread(fileutil.java:977) @ org.apache.hadoop.util.diskchecker.checkaccessbyfilemethods(diskchecker.java:187) @ org.apache.hadoop.util.diskchecker.checkdiraccess(diskchecker.java:174) @ org.apache.hadoop.util.diskchecker.checkdir(diskchecker.java:108) @ org.apache.hadoop.fs.localdirallocator$allocatorpercontext.confchanged(localdirallocator.java:285) @ org.apache.hadoop.fs.localdirallocator$allocatorpercontext.getlocalpathforwrite(localdirallocator.java:344) @ org.apache.hadoop.fs.localdirallocator.getlocalpathforwrite(localdirallocator.java:150) @ org.apache.hadoop.fs.localdirallocator.getlocalpathforwrite(localdirallocator.java:131) @ org.apache.hadoop.fs.localdirallocator.getlocalpathforwrite(localdirallocator.java:115) @ org.apache.hadoop.mapred.localdistributedcachemanager.setup(localdistributedcachemanager.java:131) @ org.apache.hadoop.mapred.localjobrunner$job.<init>(localjobrunner.java:163) @ org.apache.hadoop.mapred.localjobrunner.submitjob(localjobrunner.java:731) @ org.apache.hadoop.mapreduce.jobsubmitter.submitjobinternal(jobsubmitter.java:536) @ org.apache.hadoop.mapreduce.job$10.run(job.java:1296) @ org.apache.hadoop.mapreduce.job$10.run(job.java:1293) @ java.security.accesscontroller.doprivileged(native method) @ javax.security.auth.subject.doas(subject.java:422) @ org.apache.hadoop.security.usergroupinformation.doas(usergroupinformation.java:1628) @ org.apache.hadoop.mapreduce.job.submit(job.java:1293)
i've read problem related hadoop binaries, i've built them myself, placed them in "c:\hadoop\bin" , environment variable hadoop_home has right value.
i'm running project on eclipse, on machine windows 7 64 bits , java 8.
can me this?
thanks!
i've solved problem. had java 8 32 bits installed instead of 64 bits version. installed right version , hadoop jobs submitted perfectly.
Comments
Post a Comment