Hi all ,

I am new to HBase MR programming . Though i have already used MR on hadoop
.. iam facing some difficulties in running my HBase MR job . Details are as
follows

I have written a file sample.java

I want to run only Map phase and no reduce phase and iam using
IdentityTableMp to take the input from a certain Hbase table

JobConf settings

JobConf c = new JobConf(getConf(), sample.class);
IdentityTableMap.initJob(args[0], args[1], this.getClass(), c);
c.setOutputFormat(NullOutputFormat.class);       ----------------------->
iam not sure abt this statement
c.setNumReduceTasks(0);

Initially i didnt set any OutputPath .. but when i tried to run the code ...
it raised some error saying that an OuputhPath must be set      ..so i set
it as above

Map fnction

public void mapp(ImmutableBytesWritable row, RowResult value,
OutputCollector<Text, Text> output, Reporter reporter) throws IOException {
        System.out.println(row);
}

In the map function here  im just trying to print the value of row to see
whether its working or not
when i compile the code and execute "bin/hbase sample" ... i dont get any
error and INFO abt the MR job is displayed normally. BUT the print statement
is not executed .. that is row name s not printed ..
this means that there is some problem in the conf because there is a simple
print statement in Map .. can anyone point it please ... KINDA URGENT

Reply via email to