hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ta, Le (Clovis)" <Ta...@ne.bah.com>
Subject FW: Error running org.apache.hadoop.examples.DBCountPageView
Date Fri, 07 Oct 2011 15:38:18 GMT
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/examples/DBCountPageView.java.
I am using a PostgreSQL database. Any help would be greatly appreciated!

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(TaskInputOutputContext.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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message