@Override protected void removePlugin(final CommandLine cl, final Shell shellState, final String tableName) throws AccumuloException, AccumuloSecurityException { super.removePlugin(cl, shellState, tableName); if (cl.hasOption(interpeterOption.getOpt())) { shellState.getAccumuloClient().tableOperations().removeProperty(tableName, Property.TABLE_INTERPRETER_CLASS.toString()); } } }
protected void removePlugin(final CommandLine cl, final Shell shellState, final String tableName) throws AccumuloException, AccumuloSecurityException { shellState.getAccumuloClient().tableOperations().removeProperty(tableName, tableProp.toString()); }
shellState.getAccumuloClient().tableOperations().removeProperty(tableName, key);
+ ", still removing from zookeeper if it's there."); shellState.getAccumuloClient().tableOperations().removeProperty(tableName, property); Shell.log.debug("Successfully deleted table configuration option."); } else if (namespace != null) {
@Override protected void removePlugin(final CommandLine cl, final Shell shellState, final String tableName) throws AccumuloException, AccumuloSecurityException { super.removePlugin(cl, shellState, tableName); if (cl.hasOption(interpeterOption.getOpt())) { shellState.getConnector().tableOperations().removeProperty(tableName, Property.TABLE_INTERPRETER_CLASS.toString()); } } }
private void tableCheck(Connector c) throws AccumuloException, AccumuloSecurityException, TableExistsException, TableNotFoundException { if (!c.tableOperations().exists(TABLE_NAME)) { c.tableOperations().create(TABLE_NAME); // Remove the versioning iterator c.tableOperations().removeProperty(TABLE_NAME, "table.iterator.majc.vers"); c.tableOperations().removeProperty(TABLE_NAME, "table.iterator.majc.vers.opt.maxVersions"); c.tableOperations().removeProperty(TABLE_NAME, "table.iterator.minc.vers"); c.tableOperations().removeProperty(TABLE_NAME, "table.iterator.minc.vers.opt.maxVersions"); c.tableOperations().removeProperty(TABLE_NAME, "table.iterator.scan.vers"); c.tableOperations().removeProperty(TABLE_NAME, "table.iterator.scan.vers.opt.maxVersions"); } if (!c.tableOperations().exists(INDEX_TABLE_NAME)) c.tableOperations().create(INDEX_TABLE_NAME); }
@Override public void removeTableProperty(ByteBuffer login, String tableName, String property) throws org.apache.accumulo.proxy.thrift.AccumuloException, org.apache.accumulo.proxy.thrift.AccumuloSecurityException, org.apache.accumulo.proxy.thrift.TableNotFoundException, TException { try { getConnector(login).tableOperations().removeProperty(tableName, property); } catch (Exception e) { handleExceptionTNF(e); } }
protected void removePlugin(final CommandLine cl, final Shell shellState, final String tableName) throws AccumuloException, AccumuloSecurityException { shellState.getConnector().tableOperations().removeProperty(tableName, tableProp.toString()); }
connection = connectionFactory.getConnection(AccumuloConnectionFactory.Priority.ADMIN, trackingMap); TableOperations ops = connection.tableOperations(); ops.removeProperty(tableName, propertyName); } catch (AccumuloSecurityException e) { log.error(e.getMessage(), e);
env.getConnector().tableOperations().removeProperty(indexTableName, Property.TABLE_SPLIT_THRESHOLD.getKey()); env.getConnector().tableOperations().removeProperty(tmpIndexTableName, Property.TABLE_SPLIT_THRESHOLD.getKey());
shellState.getConnector().tableOperations().removeProperty(tableName, key);
+ ", still removing from zookeeper if it's there."); shellState.getConnector().tableOperations().removeProperty(tableName, property); Shell.log.debug("Successfully deleted table configuration option."); } else if (namespace != null) {
conn.tableOperations().removeProperty(tableName, propertyName);
to.removeProperty(tableName, e.getKey());
testConn.tableOperations().removeProperty(tableName, propertyName);
@Test public void testVersioning() throws Exception { conn.tableOperations().create(tableName); conn.tableOperations().removeProperty(tableName, "table.iterator.scan.vers"); conn.tableOperations().removeProperty(tableName, "table.iterator.majc.vers"); conn.tableOperations().removeProperty(tableName, "table.iterator.minc.vers"); final BatchWriter bw = conn.createBatchWriter(tableName, new BatchWriterConfig()); Mutation m = new Mutation("row1");
break; case 1: ops.removeProperty(tableName, "a"); fail(); break;
throw new IllegalStateException("Should be able to set a table property"); loginAs(testUser); test_user_conn.tableOperations().removeProperty(tableName, Property.TABLE_BLOOM_ERRORRATE.getKey()); loginAs(rootUser);
try { loginAs(testUser); test_user_conn.tableOperations().removeProperty(tableName, Property.TABLE_BLOOM_ERRORRATE.getKey()); throw new IllegalStateException("Should NOT be able to remove a table property");
loginAs(user1); user1Con.tableOperations().setProperty(t3, Property.TABLE_FILE_MAX.getKey(), "42"); user1Con.tableOperations().removeProperty(t3, Property.TABLE_FILE_MAX.getKey()); loginAs(root); c.securityOperations().revokeNamespacePermission(u1, n1, NamespacePermission.ALTER_TABLE);