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();
}
}