Examples of createTable()


Examples of org.apache.hadoop.hbase.client.HBaseAdmin.createTable()

    IdxColumnDescriptor descriptor = new IdxColumnDescriptor(family);
    descriptor.addIndexDescriptor(new IdxIndexDescriptor(qualifier,
      IdxQualifierType.CHAR_ARRAY));
    desc.addFamily(descriptor);
    HBaseAdmin admin = new HBaseAdmin(conf);
    admin.createTable(desc);
    HTable table = new HTable(conf, desc.getName());

    ExecutorService service = Executors.newCachedThreadPool();
    for (int i = 0; i < 5; i++) {
      service.submit(new Writer(table, family, qualifier, sequence, rows));
View Full Code Here

Examples of org.apache.hadoop.hbase.client.HBaseAdmin.createTable()

  private void setupReplication() throws Exception {
    ReplicationAdmin admin1 = new ReplicationAdmin(conf1);
    ReplicationAdmin admin2 = new ReplicationAdmin(conf2);

    HBaseAdmin ha = new HBaseAdmin(conf1);
    ha.createTable(t1_syncupSource);
    ha.createTable(t2_syncupSource);
    ha.close();

    ha = new HBaseAdmin(conf2);
    ha.createTable(t1_syncupTarget);
View Full Code Here

Examples of org.apache.hadoop.hbase.client.HBaseAdmin.createTable()

    ReplicationAdmin admin1 = new ReplicationAdmin(conf1);
    ReplicationAdmin admin2 = new ReplicationAdmin(conf2);

    HBaseAdmin ha = new HBaseAdmin(conf1);
    ha.createTable(t1_syncupSource);
    ha.createTable(t2_syncupSource);
    ha.close();

    ha = new HBaseAdmin(conf2);
    ha.createTable(t1_syncupTarget);
    ha.createTable(t2_syncupTarget);
View Full Code Here

Examples of org.apache.hadoop.hbase.client.HBaseAdmin.createTable()

    ha.createTable(t1_syncupSource);
    ha.createTable(t2_syncupSource);
    ha.close();

    ha = new HBaseAdmin(conf2);
    ha.createTable(t1_syncupTarget);
    ha.createTable(t2_syncupTarget);
    ha.close();

    // Get HTable from Master
    ht1Source = new HTable(conf1, t1_su);
View Full Code Here

Examples of org.apache.hadoop.hbase.client.HBaseAdmin.createTable()

    ha.createTable(t2_syncupSource);
    ha.close();

    ha = new HBaseAdmin(conf2);
    ha.createTable(t1_syncupTarget);
    ha.createTable(t2_syncupTarget);
    ha.close();

    // Get HTable from Master
    ht1Source = new HTable(conf1, t1_su);
    ht1Source.setWriteBufferSize(1024);
View Full Code Here

Examples of org.apache.hadoop.hbase.client.HBaseAdmin.createTable()

    for (String familyName : familyNames) {
      tableDescriptor.addFamily(new HColumnDescriptor(familyName));
    }

    hBaseAdmin.createTable(tableDescriptor);

    return true;
  }

  @Override
View Full Code Here

Examples of org.apache.hadoop.hbase.master.MasterServices.createTable()

      // the system.
      labelsTable.setValue(HTableDescriptor.SPLIT_POLICY,
          DisabledRegionSplitPolicy.class.getName());
      labelsTable.setValue(Bytes.toBytes(HConstants.DISALLOW_WRITES_IN_RECOVERING),
          Bytes.toBytes(true));
      master.createTable(labelsTable, null);
    }
  }

  @Override
  public void preCreateTable(ObserverContext<MasterCoprocessorEnvironment> ctx,
View Full Code Here

Examples of org.apache.hadoop.hbase.rest.client.RemoteAdmin.createTable()

   */
  private boolean checkTable() throws IOException {
    HTableDescriptor tableDescriptor = getTableDescriptor();
    RemoteAdmin admin = new RemoteAdmin(new Client(cluster), conf);
    if (!admin.isTableAvailable(tableDescriptor.getName())) {
      admin.createTable(tableDescriptor);
      return true;
    }
    return false;
  }

View Full Code Here

Examples of org.apache.hadoop.hbase.stargate.client.RemoteAdmin.createTable()

  private boolean checkTable() throws IOException {
    HTableDescriptor tableDescriptor = getTableDescriptor();
    RemoteAdmin admin =
      new RemoteAdmin(new Client(cluster), conf, accessToken);
    if (!admin.isTableAvailable(tableDescriptor.getName())) {
      admin.createTable(tableDescriptor);
      return true;
    }
    return false;
  }
View Full Code Here

Examples of org.apache.hadoop.hive.metastore.HiveMetaStoreClient.createTable()

      client.dropTable(dbName, tableName);
      client.dropDatabase(dbName);

      client.createDatabase(dbName, "newloc");
      client.createTable(tbl);

      tbl = client.getTable(dbName, tableName);

      List<String> partValues = new ArrayList<String>();
      partValues.add("value1");
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.