How to Read the Data from HBase Table

  • Sample code Segment

    Configuration config = HBaseConfiguration.create();
    HTable table=new HTable(config, “tablename”);
    Get g=new Get(rowname);
    Result res=table.get(g);
    byte[] colvalue=res.getValue(columnfamily,columnname);

  • Command

    hbase< get 'tablename', 'rowname'