static void AjouterValeur(Configuration config, String nomtable, String id, String fam, String col, String val) { HTable table = new HTable(config, nomtable); try { // construire un Put final byte[] rawid = Bytes.toBytes(id); Put action = new Put(rawid); final byte[] rawfam = Bytes.toBytes(fam); final byte[] rawcol = Bytes.toBytes(col); final byte[] rawval = Bytes.toBytes(val); action.add(rawfam, rawcol, rawval); // effectuer l'ajout dans la table table.put(action); } finally { table.close(); } }