hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Royston Sellman <Royston.Sell...@cse.org.uk>
Subject n00b trying to run HBase example code
Date Mon, 14 Nov 2011 23:30:30 GMT
Apologies if this is the wrong forum, or has come up before, or is RTFM-class...

I'm trying to run HBase example code. I think I have HBase running OK on my 6 node cluster:
I can create tables with the HBase shell. I can create tables with the ExampleClient from
Chapter 13 of the Hadoop book.  I can load the HBase Master: namenode:60000 web page and see
tables I've created. But when I try to run SampleUploader from the HBase examples I get the
(not very helpful to me) exception below. I get a similar error when trying to run the HBseTemperatureImporter
bulk load example from the Hadoop book also i.e. mapred.JobClient failing 4 times before giving
up.

Thanks,
Royston.

[hadoop1@namenode hadoop-0.20.2]$ hadoop jar ../jars/SampleUploader.jar /user/hadoop1/input/testCSV
test
11/11/14 23:00:55 INFO zookeeper.ZooKeeper: Client environment:zookeeper.version=3.3.2-1031432,
built on 11/05/2010 05:32 GMT
11/11/14 23:00:55 INFO zookeeper.ZooKeeper: Client environment:host.name=namenode
11/11/14 23:00:55 INFO zookeeper.ZooKeeper: Client environment:java.version=1.6.0_27
11/11/14 23:00:55 INFO zookeeper.ZooKeeper: Client environment:java.vendor=Sun Microsystems
Inc.
11/11/14 23:00:55 INFO zookeeper.ZooKeeper: Client environment:java.home=/usr/java/jdk1.6.0_27/jre
11/11/14 23:00:55 INFO zookeeper.ZooKeeper: Client environment:java.class.path=/opt/hadoop/hadoop-0.20.2/bin/../conf:/usr/java/jdk1.6.0_27/lib/tools.jar:/opt/hadoop/hadoop-0.20.2/bin/..:/opt/hadoop/hadoop-0.20.2/bin/../hadoop-0.20.2-core.jar:/opt/hadoop/hadoop-0.20.2/bin/../lib/commons-cli-1.2.jar:/opt/hadoop/hadoop-0.20.2/bin/../lib/commons-codec-1.3.jar:/opt/hadoop/hadoop-0.20.2/bin/../lib/commons-el-1.0.jar:/opt/hadoop/hadoop-0.20.2/bin/../lib/commons-httpclient-3.0.1.jar:/opt/hadoop/hadoop-0.20.2/bin/../lib/commons-logging-1.0.4.jar:/opt/hadoop/hadoop-0.20.2/bin/../lib/commons-logging-api-1.0.4.jar:/opt/hadoop/hadoop-0.20.2/bin/../lib/commons-net-1.4.1.jar:/opt/hadoop/hadoop-0.20.2/bin/../lib/core-3.1.1.jar:/opt/hadoop/hadoop-0.20.2/bin/../lib/hsqldb-1.8.0.10.jar:/opt/hadoop/hadoop-0.20.2/bin/../lib/jasper-compiler-5.5.12.jar:/opt/hadoop/hadoop-0.20.2/bin/../lib/jasper-runtime-5.5.12.jar:/opt/hadoop/hadoop-0.20.2/bin/../lib/jets3t-0.6.1.jar:/opt/hadoop/hadoop-0.20.2/bin/../lib/jetty-6.1.14.jar:/opt/hadoop/hadoop-0.20.2/bin/../lib/jetty-util-6.1.14.jar:/opt/hadoop/hadoop-0.20.2/bin/../lib/junit-3.8.1.jar:/opt/hadoop/hadoop-0.20.2/bin/../lib/kfs-0.2.2.jar:/opt/hadoop/hadoop-0.20.2/bin/../lib/log4j-1.2.15.jar:/opt/hadoop/hadoop-0.20.2/bin/../lib/mockito-all-1.8.0.jar:/opt/hadoop/hadoop-0.20.2/bin/../lib/oro-2.0.8.jar:/opt/hadoop/hadoop-0.20.2/bin/../lib/servlet-api-2.5-6.1.14.jar:/opt/hadoop/hadoop-0.20.2/bin/../lib/slf4j-api-1.4.3.jar:/opt/hadoop/hadoop-0.20.2/bin/../lib/slf4j-log4j12-1.4.3.jar:/opt/hadoop/hadoop-0.20.2/bin/../lib/xmlenc-0.52.jar:/opt/hadoop/hadoop-0.20.2/bin/../lib/jsp-2.1/jsp-2.1.jar:/opt/hadoop/hadoop-0.20.2/bin/../lib/jsp-2.1/jsp-api-2.1.jar
11/11/14 23:00:55 INFO zookeeper.ZooKeeper: Client environment:java.library.path=/opt/hadoop/hadoop-0.20.2/bin/../lib/native/Linux-amd64-64
11/11/14 23:00:55 INFO zookeeper.ZooKeeper: Client environment:java.io.tmpdir=/tmp
11/11/14 23:00:55 INFO zookeeper.ZooKeeper: Client environment:java.compiler=<NA>
11/11/14 23:00:55 INFO zookeeper.ZooKeeper: Client environment:os.name=Linux
11/11/14 23:00:55 INFO zookeeper.ZooKeeper: Client environment:os.arch=amd64
11/11/14 23:00:55 INFO zookeeper.ZooKeeper: Client environment:os.version=2.6.32-131.12.1.el6.x86_64
11/11/14 23:00:55 INFO zookeeper.ZooKeeper: Client environment:user.name=hadoop1
11/11/14 23:00:55 INFO zookeeper.ZooKeeper: Client environment:user.home=/home/hadoop1
11/11/14 23:00:55 INFO zookeeper.ZooKeeper: Client environment:user.dir=/opt/hadoop/hadoop-0.20.2
11/11/14 23:00:55 INFO zookeeper.ZooKeeper: Initiating client connection, connectString=localhost:2181
sessionTimeout=180000 watcher=hconnection
11/11/14 23:00:55 INFO zookeeper.ClientCnxn: Opening socket connection to server localhost/0:0:0:0:0:0:0:1:2181
11/11/14 23:00:55 INFO zookeeper.ClientCnxn: Socket connection established to localhost/0:0:0:0:0:0:0:1:2181,
initiating session
11/11/14 23:00:55 INFO zookeeper.ClientCnxn: Session establishment complete on server localhost/0:0:0:0:0:0:0:1:2181,
sessionid = 0x13391cee7600011, negotiated timeout = 180000
11/11/14 23:00:56 INFO mapreduce.TableOutputFormat: Created table instance for test
11/11/14 23:00:56 INFO input.FileInputFormat: Total input paths to process : 1
11/11/14 23:00:58 INFO mapred.JobClient: Running job: job_201111110843_0004
11/11/14 23:00:59 INFO mapred.JobClient:  map 0% reduce 0%
11/11/14 23:01:29 INFO mapred.JobClient: Task Id : attempt_201111110843_0004_m_000000_0, Status
: FAILED
java.lang.NullPointerException
        at org.apache.hadoop.hbase.mapreduce.TableOutputFormat$TableRecordWriter.write(TableOutputFormat.java:127)
        at org.apache.hadoop.hbase.mapreduce.TableOutputFormat$TableRecordWriter.write(TableOutputFormat.java:82)
        at org.apache.hadoop.mapred.MapTask$NewDirectOutputCollector.write(MapTask.java:498)
        at org.apache.hadoop.mapreduce.TaskInputOutputContext.write(TaskInputOutputContext.java:80)
        at SampleUploader$Uploader.map(SampleUploader.java:99)
        at SampleUploader$Uploader.map(SampleUploader.java:1)
        at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:144)
        at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:621)
        at org.apache.hadoop.mapred.MapTask.run(MapTask.java:305)
        at org.apache.hadoop.mapred.Child.main(Child.java:170)

11/11/14 23:01:47 INFO mapred.JobClient: Task Id : attempt_201111110843_0004_m_000000_1, Status
: FAILED
java.lang.NullPointerException
        at org.apache.hadoop.hbase.mapreduce.TableOutputFormat$TableRecordWriter.write(TableOutputFormat.java:127)
        at org.apache.hadoop.hbase.mapreduce.TableOutputFormat$TableRecordWriter.write(TableOutputFormat.java:82)
        at org.apache.hadoop.mapred.MapTask$NewDirectOutputCollector.write(MapTask.java:498)
        at org.apache.hadoop.mapreduce.TaskInputOutputContext.write(TaskInputOutputContext.java:80)
        at SampleUploader$Uploader.map(SampleUploader.java:99)
        at SampleUploader$Uploader.map(SampleUploader.java:1)
        at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:144)
        at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:621)
        at org.apache.hadoop.mapred.MapTask.run(MapTask.java:305)
        at org.apache.hadoop.mapred.Child.main(Child.java:170)

11/11/14 23:02:06 INFO mapred.JobClient: Task Id : attempt_201111110843_0004_m_000000_2, Status
: FAILED
java.lang.NullPointerException
        at org.apache.hadoop.hbase.mapreduce.TableOutputFormat$TableRecordWriter.write(TableOutputFormat.java:127)
        at org.apache.hadoop.hbase.mapreduce.TableOutputFormat$TableRecordWriter.write(TableOutputFormat.java:82)
        at org.apache.hadoop.mapred.MapTask$NewDirectOutputCollector.write(MapTask.java:498)
        at org.apache.hadoop.mapreduce.TaskInputOutputContext.write(TaskInputOutputContext.java:80)
        at SampleUploader$Uploader.map(SampleUploader.java:99)
        at SampleUploader$Uploader.map(SampleUploader.java:1)
        at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:144)
        at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:621)
        at org.apache.hadoop.mapred.MapTask.run(MapTask.java:305)
        at org.apache.hadoop.mapred.Child.main(Child.java:170)

11/11/14 23:02:41 INFO mapred.JobClient: Job complete: job_201111110843_0004
11/11/14 23:02:41 INFO mapred.JobClient: Counters: 4
11/11/14 23:02:41 INFO mapred.JobClient:   Job Counters
11/11/14 23:02:41 INFO mapred.JobClient:     Rack-local map tasks=1
11/11/14 23:02:41 INFO mapred.JobClient:     Launched map tasks=4
11/11/14 23:02:41 INFO mapred.JobClient:     Data-local map tasks=3
11/11/14 23:02:41 INFO mapred.JobClient:     Failed map tasks=1
[hadoop1@namenode hadoop-0.20.2]$

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message