Examples of enableTable()


Examples of com.alibaba.wasp.client.WaspAdmin.enableTable()

    admin.waitTableNotLocked("user123");
    admin.disableTable("user123");
    admin.waitTableDisabled("user123", 3000);
    stat.executeUpdate("create index test_index on " + "user123" + "(photo_id);");
    admin.waitTableNotLocked("user123");
    admin.enableTable("user123");
    admin.waitTableEnabled("user123", 3000);
    stat.execute("INSERT INTO user123 (user_id, photo_id) VALUES (1, 1)");
    stat.execute("INSERT INTO user123 (user_id, photo_id) VALUES (2, 2)");
    stat.execute("INSERT INTO user123 (user_id, photo_id) VALUES (3, 3)");
    stat.execute("INSERT INTO user123 (user_id, photo_id) VALUES (4, 4)");
View Full Code Here

Examples of org.apache.blur.thrift.generated.Blur.Iface.enableTable()

  public static void main(String[] args) throws BlurException, TException, IOException {
    String connectionStr = args[0];
    final String tableName = args[1];

    Iface client = BlurClient.getClient(connectionStr);
    client.enableTable(tableName);
  }
}
View Full Code Here

Examples of org.apache.blur.thrift.generated.Blur.Iface.enableTable()

  }

  public static void enableTable(String table) throws TException, IOException {
    Iface client = BlurClient.getClient(Config.getConnectionString());

    client.enableTable(table);
  }

  public static void deleteTable(String table, boolean includeFiles) throws TException, IOException {
    Iface client = BlurClient.getClient(Config.getConnectionString());
View Full Code Here

Examples of org.apache.hadoop.hbase.HBaseAdmin.enableTable()

  public ReturnMsg execute(Configuration conf) {
    assert tableName != null;
    try {
      HBaseAdmin admin = new HBaseAdmin(conf);
      admin.enableTable(new Text(tableName));
      return new ReturnMsg(1, "Table enabled successfully.");
    } catch (IOException e) {
      String[] msg = e.getMessage().split("[\n]");
      return new ReturnMsg(0, msg[0]);
    }
View Full Code Here

Examples of org.apache.hadoop.hbase.client.Admin.enableTable()

      LOG.info("Sleeping " + refreshTime + "ms to ensure that the data is replicated");
      Threads.sleep(refreshTime);
    } else {
      LOG.info("Reopening the table");
      admin.disableTable(getTablename());
      admin.enableTable(getTablename());
    }

    // We should only start the ChaosMonkey after the readers are started and have cached
    // all of the region locations. Because the meta is not replicated, the timebounded reads
    // will timeout if meta server is killed.
View Full Code Here

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

      HTableDescriptor htd = admin.getTableDescriptor(table.getBytes());
      htd.setValue("NOT_DEFAULT", "true");
      admin.disableTable(table);
      admin.modifyTable(table.getBytes(), htd);
      admin.enableTable(table);
      fs.delete(status.getPath(), true);

      // fix OrphanTable with cache
      htd = admin.getTableDescriptor(table.getBytes()); // warms up cached htd on master
      hbck = doFsck(conf, true);
View Full Code Here

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

    assertTrue("Coprocessor should have been called on table disable",
      cp.wasDisableTableCalled());

    // enable
    assertFalse(cp.wasEnableTableCalled());
    admin.enableTable(TEST_TABLE);
    assertTrue(admin.isTableEnabled(TEST_TABLE));
    // preEnableTable can't bypass default action.
    assertTrue("Coprocessor should have been called on table enable",
      cp.wasEnableTableCalled());
View Full Code Here

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

    assertTrue("Second column family should be modified",
        cp.wasModifyColumnCalled());

    // enable
    assertFalse(cp.wasEnableTableCalled());
    admin.enableTable(TEST_TABLE);
    assertTrue(admin.isTableEnabled(TEST_TABLE));
    assertTrue("Coprocessor should have been called on table enable",
        cp.wasEnableTableCalled());

    // disable again
View Full Code Here

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

     hbase.createTable(wordcount);
     // Cannot edit a stucture on an active table.
     hbase.disableTable(TABLE_NAME);
     HColumnDescriptor columnFamily = new HColumnDescriptor(COLUMN_FAMILY);
     hbase.addColumn(TABLE_NAME, columnFamily);
     hbase.enableTable(TABLE_NAME);
    
     hbase.close();
   }
  
   private static Get mkGet(String word) throws IOException {
View Full Code Here

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

      HTableDescriptor htd = admin.getTableDescriptor(table);
      htd.setValue("NOT_DEFAULT", "true");
      admin.disableTable(table);
      admin.modifyTable(table, htd);
      admin.enableTable(table);
      fs.delete(status.getPath(), true);

      // fix OrphanTable with cache
      htd = admin.getTableDescriptor(table); // warms up cached htd on master
      hbck = doFsck(conf, true);
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.