[vc_row][vc_column][vc_column_text]

How to display the data in HBase table?

[/vc_column_text][vc_empty_space]

  • 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’
[/vc_column][/vc_row][vc_row][vc_column][vc_empty_space][vc_row_inner][vc_column_inner width=”1/3″][vc_column_text]

Previous Sample

[/vc_column_text][/vc_column_inner][vc_column_inner width=”1/3″][vc_column_text]

List

[/vc_column_text][/vc_column_inner][vc_column_inner width=”1/3″][vc_column_text]

Next Sample

[/vc_column_text][/vc_column_inner][/vc_row_inner][vc_empty_space][/vc_column][/vc_row]
[vc_row][vc_column][vc_empty_space height=”20px”][vc_column_text]

[/vc_column_text][vc_empty_space height=”20px”][vc_column_text]

[/vc_column_text][vc_empty_space height=”20px”][vc_column_text]

[/vc_column_text][vc_empty_space height=”20px”][/vc_column][/vc_row]