Package org.apache.accumulo.server.security

Examples of org.apache.accumulo.server.security.Authenticator


      } else {
        Connector connector = instance.getConnector(rootCredentials.user, rootCredentials.password);
        bw = connector.createBatchWriter("test_ingest", 20000000l, 60000l, 10);
      }
     
      Authenticator authenticator = ZKAuthenticator.getInstance();
      authenticator.changeAuthorizations(rootCredentials, rootCredentials.user, AUTHS);
      ColumnVisibility le = new ColumnVisibility("L1&L2&G1&GROUP2");
      Text labBA = new Text(le.getExpression());
     
      // int step = 100;
     
View Full Code Here


  }
 
  @Override
  public Repo<Master> call(long tid, Master env) throws Exception {
    // give all table permissions to the creator
    Authenticator authenticator = ZKAuthenticator.getInstance();
    for (TablePermission permission : TablePermission.values()) {
      try {
        authenticator.grantTablePermission(SecurityConstants.getSystemCredentials(), tableInfo.user, tableInfo.tableId, permission);
      } catch (AccumuloSecurityException e) {
        Logger.getLogger(FinishCreateTable.class).error(e.getMessage(), e);
        throw e.asThriftException();
      }
    }
View Full Code Here

        rootCredentials = new AuthInfo(username, passwd.getBytes(), instance.getInstanceID());
        Connector connector = instance.getConnector(rootCredentials.user, rootCredentials.password);
        bw = connector.createBatchWriter("test_ingest", 20000000l, 60000l, 10);
      }
     
      Authenticator authenticator = ZKAuthenticator.getInstance();
      authenticator.changeAuthorizations(rootCredentials, rootCredentials.user, AUTHS);
      ColumnVisibility le = new ColumnVisibility("L1&L2&G1&GROUP2");
      Text labBA = new Text(le.getExpression());
     
      // int step = 100;
     
View Full Code Here

TOP

Related Classes of org.apache.accumulo.server.security.Authenticator

Copyright © 2018 www.massapicom. 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.