Examples of enableTable()


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

    results.close();
    String tableDigestBefore = HBaseTestUtil.checksumRows(table);
           
    // Cause regions to reopen
    admin.disableTable(TABLE_NAME);
    admin.enableTable(TABLE_NAME);
    assertEquals("Data should remain after reopening of regions",
                 tableDigestBefore, HBaseTestUtil.checksumRows(table));

    // cleanup
    // - disable and drop table
View Full Code Here

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

    FSTableDescriptors.
      createTableDescriptor(fs, FSUtils.getRootDir(TEST_UTIL.getConfiguration()), htd);
    // Assign out the regions we just created.
    HBaseAdmin admin = new HBaseAdmin(TEST_UTIL.getConfiguration());
    admin.disableTable(TABLENAME);
    admin.enableTable(TABLENAME);
    // Assert that every regionserver has some regions on it.
    MiniHBaseCluster cluster = TEST_UTIL.getMiniHBaseCluster();
    for (int i = 0; i < cluster.getRegionServerThreads().size(); i++) {
      HRegionServer hrs = cluster.getRegionServer(i);
      Assert.assertFalse(hrs.getOnlineRegions().isEmpty());
View Full Code Here

Examples of org.apache.hadoop.hbase.hbql.client.HConnection.enableTable()

        HConnection conn = HConnectionManager.newConnection();
        System.out.println(conn.execute("ENABLE TABLE foo"));

        // Or using the API
        conn.enableTable("foo");

        // END SNIPPET: enable-table

    }
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.