You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by yeshwanth kumar <ye...@gmail.com> on 2014/02/08 15:46:28 UTC

DNS Exception while running TableMapper

hi

i am using hbase 94.10 and hadoop 1.2.1
trying to run couple of map-reduce jobs on hbase by TableMapper,
i am getting this exception

do i really need to configure DNS on local.?
can someone help me with this issue.

Exception in thread "main" java.lang.NullPointerException
at org.apache.hadoop.net.DNS.reverseDns(DNS.java:79)
at
org.apache.hadoop.hbase.mapreduce.TableInputFormatBase.reverseDNS(TableInputFormatBase.java:219)
at
org.apache.hadoop.hbase.mapreduce.TableInputFormatBase.getSplits(TableInputFormatBase.java:184)
at org.apache.hadoop.mapred.JobClient.writeNewSplits(JobClient.java:1054)
at org.apache.hadoop.mapred.JobClient.writeSplits(JobClient.java:1071)
at org.apache.hadoop.mapred.JobClient.access$700(JobClient.java:179)
at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:983)
at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:936)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:415)
at
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1190)
at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:936)
at org.apache.hadoop.mapreduce.Job.submit(Job.java:550)
at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:580)
at
com.serendio.penton.hbase.mapping.DataScrubbingMR.main(DataScrubbingMR.java:233)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.hadoop.util.RunJar.main(RunJar.java:160)


Thanks,
Yeshwanth

Re: DNS Exception while running TableMapper

Posted by yeshwanth kumar <ye...@gmail.com>.
hi Ted,

i am using single node setup.
this DNS issue turns up only  incase of HBASE TableMapper ,
where as other map-reduce jobs running perfectly.

i don't understand the actual theory behind it.





On Sat, Feb 8, 2014 at 8:21 PM, Ted Yu <yu...@gmail.com> wrote:

> Are you using single node deployment ?
>
> Please configure DNS on the node.
>
> Cheers
>
> On Feb 8, 2014, at 6:46 AM, yeshwanth kumar <ye...@gmail.com> wrote:
>
> > hi
> >
> > i am using hbase 94.10 and hadoop 1.2.1
> > trying to run couple of map-reduce jobs on hbase by TableMapper,
> > i am getting this exception
> >
> > do i really need to configure DNS on local.?
> > can someone help me with this issue.
> >
> > Exception in thread "main" java.lang.NullPointerException
> > at org.apache.hadoop.net.DNS.reverseDns(DNS.java:79)
> > at
> >
> org.apache.hadoop.hbase.mapreduce.TableInputFormatBase.reverseDNS(TableInputFormatBase.java:219)
> > at
> >
> org.apache.hadoop.hbase.mapreduce.TableInputFormatBase.getSplits(TableInputFormatBase.java:184)
> > at org.apache.hadoop.mapred.JobClient.writeNewSplits(JobClient.java:1054)
> > at org.apache.hadoop.mapred.JobClient.writeSplits(JobClient.java:1071)
> > at org.apache.hadoop.mapred.JobClient.access$700(JobClient.java:179)
> > at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:983)
> > at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:936)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at javax.security.auth.Subject.doAs(Subject.java:415)
> > at
> >
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1190)
> > at
> org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:936)
> > at org.apache.hadoop.mapreduce.Job.submit(Job.java:550)
> > at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:580)
> > at
> >
> com.serendio.penton.hbase.mapping.DataScrubbingMR.main(DataScrubbingMR.java:233)
> > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> > at
> >
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> > at
> >
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> > at java.lang.reflect.Method.invoke(Method.java:606)
> > at org.apache.hadoop.util.RunJar.main(RunJar.java:160)
> >
> >
> > Thanks,
> > Yeshwanth
>

Re: DNS Exception while running TableMapper

Posted by Ted Yu <yu...@gmail.com>.
Are you using single node deployment ?

Please configure DNS on the node. 

Cheers

On Feb 8, 2014, at 6:46 AM, yeshwanth kumar <ye...@gmail.com> wrote:

> hi
> 
> i am using hbase 94.10 and hadoop 1.2.1
> trying to run couple of map-reduce jobs on hbase by TableMapper,
> i am getting this exception
> 
> do i really need to configure DNS on local.?
> can someone help me with this issue.
> 
> Exception in thread "main" java.lang.NullPointerException
> at org.apache.hadoop.net.DNS.reverseDns(DNS.java:79)
> at
> org.apache.hadoop.hbase.mapreduce.TableInputFormatBase.reverseDNS(TableInputFormatBase.java:219)
> at
> org.apache.hadoop.hbase.mapreduce.TableInputFormatBase.getSplits(TableInputFormatBase.java:184)
> at org.apache.hadoop.mapred.JobClient.writeNewSplits(JobClient.java:1054)
> at org.apache.hadoop.mapred.JobClient.writeSplits(JobClient.java:1071)
> at org.apache.hadoop.mapred.JobClient.access$700(JobClient.java:179)
> at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:983)
> at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:936)
> at java.security.AccessController.doPrivileged(Native Method)
> at javax.security.auth.Subject.doAs(Subject.java:415)
> at
> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1190)
> at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:936)
> at org.apache.hadoop.mapreduce.Job.submit(Job.java:550)
> at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:580)
> at
> com.serendio.penton.hbase.mapping.DataScrubbingMR.main(DataScrubbingMR.java:233)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.apache.hadoop.util.RunJar.main(RunJar.java:160)
> 
> 
> Thanks,
> Yeshwanth