hadoop - Issues with running mapreduce on hbase 1.0.1 -


i'm running hbase 1.0.1 standalone on apache hadoop 2.7 cluster environment. i'm getting below issue while running simple map reduce job on hbase.

exception in thread "main" java.io.filenotfoundexception: file not exist: hdfs://hdmaster:9000/usr/hadoop/share/hadoop/common/lib/zookeeper-3.4.6.jar         @ org.apache.hadoop.hdfs.distributedfilesystem$22.docall(distributedfilesystem.java:1309)         @ org.apache.hadoop.hdfs.distributedfilesystem$22.docall(distributedfilesystem.java:1301)         @ org.apache.hadoop.fs.filesystemlinkresolver.resolve(filesystemlinkresolver.java:81)         @ org.apache.hadoop.hdfs.distributedfilesystem.getfilestatus(distributedfilesystem.java:1301)         @ org.apache.hadoop.mapreduce.filecache.clientdistributedcachemanager.getfilestatus(clientdistributedcachemanager.java:288)         @ org.apache.hadoop.mapreduce.filecache.clientdistributedcachemanager.getfilestatus(clientdistributedcachemanager.java:224) .. .. .. .. 

my hadoop , hbase setup seems fine since can run wordcount example , can put/get hbase tables without issues.

it doesn't seem though i'm missing settings running mapreduce on hbase. have tried with:

export hadoop_classpath="$hbase_home/lib/hadoop-client-2.5.1.jar:$hbase_home/lib/hbase-common-1.0.1.jar:$hbase_home/lib/protobuf-java-2.5.0.jar:$hbase_home/lib/guava-12.0.1.jar:$hbase_home/lib/zookeeper-3.4.6.jar:$hbase_home/lib/hbase-protocol-1.0.1.jar"

resolved it- posting if comes across same issue.

the hadoop jars version in $hbase_home/lib not matching hadoop installation jars. replaced them required version. restarted hdfs, yarn , hbase.

ran mr job using below command:

$ hadoop_classpath=$(hbase classpath) hadoop jar myjob.jar myjobmainclass 

Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -