hadoop-mapreduce-user mailing list archives

Hi,
I am using the setup() and cleanup() methods as follows:
@Override
protected void setup(Context context) throws IOException,
InterruptedException {
HBaseConfiguration conf = new
HBaseConfiguration(context.getConfiguration());
System.out.println("Opening table NwKeyword");
keywordTable = new HTable(conf, "NwKeyword");
System.out.println("Table opened");
}
@Override
protected void cleanup(Context context) throws IOException,
InterruptedException {
keywordTable.close();
System.out.println("Table closed");
}
@Override
public void reduce(Text key, Iterable<Text> values, Context context)
throws IOException, InterruptedException {
......
I know that the setup method is being called because I can use the
keywordTable in my reduce function, which I cannot do if I don't initialize
the table in setup(). But the System.out.println statement is not getting
printed. I checked the sysout as well as the job logs. Where does/should it
get printed?
Thanks,
hari