hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Vigeant <mark.vige...@riskmetrics.com>
Subject Map/Reduce with HTable Source
Date Tue, 13 Oct 2009 20:26:38 GMT

So I'm writing a program to count the frequency of each value in an HTable, using RowCounter
as an example. My problem is, however, that when I use TableMapReduceUtil.initTableMapperJob
for some reason it doesn't use the mapper class specified. Instead it just prints out the
scan to a file...

Here's the snippet of code:
      public static Job createSubmittableJob(Configuration conf, String input,
                  String output) throws IOException {
            Job job = new Job(conf, NAME);
            Scan scan = new Scan();

            TableMapReduceUtil.initTableMapperJob(input, scan,
                        ErrorCounterMapper.class, ImmutableBytesWritable.class,
                        Result.class, job);
            FileOutputFormat.setOutputPath(job, new Path(output));
            return job;
Any thoughts? Thanks a lot!

Mark Vigeant
RiskMetrics Group, Inc.

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