+ ", still removing from zookeeper if it's there."); shellState.getAccumuloClient().namespaceOperations().removeProperty(namespace, property); Shell.log.debug("Successfully deleted namespace configuration option."); } else {
@Override public void removeNamespaceProperty(ByteBuffer login, String namespaceName, String property) throws org.apache.accumulo.proxy.thrift.AccumuloException, org.apache.accumulo.proxy.thrift.AccumuloSecurityException, org.apache.accumulo.proxy.thrift.NamespaceNotFoundException, TException { try { getConnector(login).namespaceOperations().removeProperty(namespaceName, property); } catch (Exception e) { handleExceptionNNF(e); } }
+ ", still removing from zookeeper if it's there."); shellState.getConnector().namespaceOperations().removeProperty(namespace, property); Shell.log.debug("Successfully deleted namespace configuration option."); } else {
break; case 10: ops.removeProperty(namespace, "a"); fail(); break;
try { loginAs(testUser); test_user_conn.namespaceOperations().removeProperty(namespace, Property.TABLE_BLOOM_ERRORRATE.getKey()); throw new IllegalStateException("Should NOT be able to remove a namespace property");
throw new IllegalStateException("Should be able to set a table property"); loginAs(testUser); test_user_conn.namespaceOperations().removeProperty(namespace, Property.TABLE_BLOOM_ERRORRATE.getKey()); loginAs(rootUser);
loginAs(user1); user1Con.namespaceOperations().setProperty(n1, Property.TABLE_FILE_MAX.getKey(), "42"); user1Con.namespaceOperations().removeProperty(n1, Property.TABLE_FILE_MAX.getKey()); loginAs(root); c.securityOperations().revokeNamespacePermission(u1, n1, NamespacePermission.ALTER_NAMESPACE); loginAs(user1); user1Con.namespaceOperations().setProperty(n1, Property.TABLE_FILE_MAX.getKey(), "33"); user1Con.namespaceOperations().removeProperty(n1, Property.TABLE_FILE_MAX.getKey()); loginAs(root); c.securityOperations().revokeSystemPermission(u1, SystemPermission.ALTER_NAMESPACE);
c.namespaceOperations().removeProperty(namespace, k); assertFalse(checkNamespaceHasProp(namespace, k, v)); assertFalse(checkTableHasProp(t1, k, v));