import com.alibaba.fastjson.JSON
Configuration conf = HBaseConfiguration.create();
HTableInterface usersTable = new HTable(conf,table);
Get g = new Get(Bytes.toBytes("TheRealMT"));
Result r = usersTable.get(g);
Map<byte[], NavigableMap<byte[], NavigableMap<Long, byte[]>>> map = r.getMap();
String text = JSON.toJSONString(map);
System.out.println(text);
转载于:https://blog.51cto.com/yjplxq/1576652