How to Create a Table in HBase

  • Sample code Segment

    Configuration config = HBaseConfiguration.create();
    HBaseAdmin h1 = new HBaseAdmin(config);
    HTableDescriptor h2 = new HTableDescriptor("table");
    h1.createTable(h2);

  • Command

    hbase> create 'table', 'f1'