[vc_row][vc_column][vc_column_text]

How to Insert the Data in HBase Table

[/vc_column_text][vc_empty_space]

  • Sample code Segment
    Configuration config = HBaseConfiguration.create();
    HBaseAdmin h1 = new HBaseAdmin(config);
    HTableDescriptor h2 = new HTableDescriptor(“tablename”);
    h2.addFamily(new HColumnDescriptor(“columnfamily”));
    h1.createTable(h2);
    HTable table=new HTable(config, “tablename”);
    Put p=new Put(rowname);
    P.add(columnfamily,columnname,columnvalue);
    table.put(p);
  • Command
    hbase< put ‘tablename’, ‘rowname’, ‘columnfamily:columnname’, ‘columnvalue’
[/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]