hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Meil <doug.m...@explorysmedical.com>
Subject Re: Error running org.apache.hadoop.examples.DBCountPageView
Date Fri, 07 Oct 2011 14:53:00 GMT

Hi there-

I don't think this is an HBase question.



On 10/7/11 10:35 AM, "Ta, Le (Clovis)" <Ta_Le@ne.bah.com> wrote:

>Hi,
>
>I am getting the following exception when trying to run the
>DBCountPageView example obtained from
>http://search-hadoop.com/c/Map/Reduce:/src/examples/org/apache/hadoop/exam
>ples/DBCountPageView.java. I am using a PostgreSQL database. Any help
>would be greatly appreciated!
>
>Thanks,
>Le
>
>java.io.IOException: Type mismatch in key from map: expected
>org.apache.hadoop.io.Text, recieved org.apache.hadoop.io.LongWritable
>            at 
>org.apache.hadoop.mapred.MapTask$MapOutputBuffer.collect(MapTask.java:871)
>            at 
>org.apache.hadoop.mapred.MapTask$NewOutputCollector.write(MapTask.java:574
>)
>            at 
>org.apache.hadoop.mapreduce.TaskInputOutputContext.write(TaskInputOutputCo
>ntext.java:80)
>            at org.apache.hadoop.mapreduce.Mapper.map(Mapper.java:124)
>            at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:144)
>            at 
>org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:647)
>            at org.apache.hadoop.mapred.MapTask.run(MapTask.java:323)
>            at 
>org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:210)
>11/10/06 08:48:37 INFO mapred.JobClient:  map 0% reduce 0%
>11/10/06 08:48:37 INFO mapred.JobClient: Job complete: job_local_0001
>11/10/06 08:48:37 INFO mapred.JobClient: Counters: 0
>11/10/06 08:48:37 INFO examples.DBCountPageView: totalPageview=60
>11/10/06 08:48:37 INFO examples.DBCountPageView: sumPageview=0
>java.lang.RuntimeException: Evaluation was not correct!
>            at 
>org.apache.hadoop.examples.DBCountPageView.run(DBCountPageView.java:439)
>            at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
>            at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
>            at 
>org.apache.hadoop.examples.DBCountPageView.main(DBCountPageView.java:452)
>
>


Mime
View raw message