Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase >> mail # user >> configureIncrementalLoad: 1 reduce pending, never running

Copy link to this message
configureIncrementalLoad: 1 reduce pending, never running

I am using

Hbase: 0.90.6-cdh3u4, r

I'm also using configureIncrementalLoad to bulk load a small 1000 record
data set(it will run on larger datasets later)

The maps run to completion, the single reducer is stuck in Pending. There
is nothing wrong with the cluster since other jobs complete.

What could i be doing wrong?
Here is a fragment  of the code

    public int run(String[] args) throws Exception {
    Configuration conf = new Configuration();
    //args: jobname, tablename, input-source, output-path
    // Load hbase-site.xml

    Job job = new Job(conf, args[0]);

    FileInputFormat.addInputPath(job, new Path(args[2]));
    FileOutputFormat.setOutputPath(job, new Path(args[3]));

    HTable hTable = new HTable(args[1]);

    // Auto configure partitioner and reducer
    job.setWorkingDirectory(new Path("/user/sguha/tmp/"));
    HFileOutputFormat.configureIncrementalLoad(job, hTable);

    int rcode;
    if(job.waitForCompletion(true)) rcode=1; else rcode=0;
    // Load generated HFiles into table
    // LoadIncrementalHFiles loader = new LoadIncrementalHFiles(conf);
    // loader.doBulkLoad(new Path(args[3]), hTable);