109110111112113114115116117118119
HConnection conn = HConnectionManager.newConnection(); System.out.println(conn.execute("ENABLE TABLE foo")); // Or using the API conn.enableTable("foo"); // END SNIPPET: enable-table }