AnsweredAssumed Answered

Importtsv fails with Unable to resolve CLDB hostname user, for cluster

Question asked by ravi on Nov 13, 2012
Latest reply on Nov 14, 2012 by ravi
Hi,

I'm trying to do bulk upload a csv file into HBase table on M3 Cluster. Here is the result of command execution, what did I miss on CLDB setup? Why it was unable to resolve hostname? Any help would be really appreciated.

    hadoop jar /opt/mapr/hbase/hbase-0.92.1/hbase-0.92.1.jar importtsv -Dimporttsv.columns=HBASE_ROW_KEY,cf1:ID,cf1:Name,cf1:Desc -Dimporttsv.bulk.output=maprfs://user/ravi/mystorefile device maprfs://user/ravi/data/xaa '-Dimporttsv.separator=,'
    12/11/13 17:33:10 ERROR fs.ClusterConf: Invalid port -1specified in /opt/mapr//conf/mapr-clusters.conf, using default port 7222 instead
    12/11/13 17:33:10 INFO zookeeper.RecoverableZooKeeper: The identifier of this process is 31112@eng-poc02.archerlab.local
    12/11/13 17:33:10 INFO mapreduce.HFileOutputFormat: Looking up current regions for table org.apache.hadoop.hbase.client.HTable@753b460f
    12/11/13 17:33:10 INFO mapreduce.HFileOutputFormat: Configuring 1 reduce partitions to match current region count
    12/11/13 17:33:10 INFO mapreduce.HFileOutputFormat: Writing partition information to /user/veerar1/partitions_1352849590380
    12/11/13 17:33:10 WARN fs.ClusterConf: Could not resolve CLDB hostname user, for cluster: user:7222
    Exception in thread "main" java.lang.reflect.InvocationTargetException
            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:601)
            at org.apache.hadoop.hbase.mapreduce.Driver.main(Driver.java:51)
            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:601)
            at org.apache.hadoop.util.RunJar.main(RunJar.java:197)
    Caused by: java.io.IOException: Could not resolve any CLDB hostnames for cluster: user:7222
            at com.mapr.fs.MapRFileSystem.lookupClient(MapRFileSystem.java:230)
            at com.mapr.fs.MapRFileSystem.lookupClient(MapRFileSystem.java:242)
            at com.mapr.fs.MapRFileSystem.create(MapRFileSystem.java:261)
            at com.mapr.fs.MapRFileSystem.create(MapRFileSystem.java:286)
            at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:588)
            at org.apache.hadoop.io.SequenceFile$RecordCompressWriter.<init>(SequenceFile.java:1083)
            at org.apache.hadoop.io.SequenceFile.createWriter(SequenceFile.java:399)
            at org.apache.hadoop.io.SequenceFile.createWriter(SequenceFile.java:286)
            at org.apache.hadoop.io.SequenceFile.createWriter(SequenceFile.java:267)
            at org.apache.hadoop.hbase.mapreduce.HFileOutputFormat.writePartitions(HFileOutputFormat.java:256)
            at org.apache.hadoop.hbase.mapreduce.HFileOutputFormat.configureIncrementalLoad(HFileOutputFormat.java:318)
            at org.apache.hadoop.hbase.mapreduce.ImportTsv.createSubmittableJob(ImportTsv.java:226)
            at org.apache.hadoop.hbase.mapreduce.ImportTsv.main(ImportTsv.java:312)
            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:601)
            at org.apache.hadoop.util.ProgramDriver$ProgramDescription.invoke(ProgramDriver.java:68)
            at org.apache.hadoop.util.ProgramDriver.driver(ProgramDriver.java:139)
            ... 10 more

Outcomes