Research breakthrough possible @S-Logix pro@slogix.in

Office Address

  • 2nd Floor, #7a, High School Road, Secretariat Colony Ambattur, Chennai-600053 (Landmark: SRM School) Tamil Nadu, India
  • pro@slogix.in
  • +91- 81240 01111

Social List

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’