Configuration config= context.getConfiguration();
HTable table = new HTable(config,"index");
context.write(key, new Text(toReturn.toString()));
Enumeration e = temp.keys();
Put put = new Put(Bytes.toBytes(key.toString()));
while(e.hasMoreElements())
{
String val = e.nextElement().toString();
put.add(Bytes.toBytes("file"),Bytes.toBytes(val),
Bytes.toBytes((temp.get(val)).toString()));
break;
}
table.put(put);
table.flushCommits();
table.close();
This is the part of reducer code.I dont know what should i do .