#5, First Floor, 4th Street , Dr. Subbarayan Nagar Kodambakkam, Chennai-600 024 pro@slogix.in

Office Address

  • #5, First Floor, 4th Street Dr. Subbarayan Nagar Kodambakkam, Chennai-600 024 Landmark : Samiyar Madam
  • pro@slogix.in
  • +91- 81240 01111

Social List

How to display the data in HBase table?
  • Sample code Segment
    Configuration config = HBaseConfiguration.create();
    HTable table=new HTable(config, “tablename”);
    Scan scan =new Scan();
    scan.addcolumn(columnfamily,columnname);
    ResultScanner dispaly=table.getScanner(scan);
    for(Result r=display.next(); r!=null;r=display.next()) {
    System.out.println(“row value”+r);
    }
  • Command
    hbase> scan ‘tablename’