test/src/main/java/org/apache/accumulo/test/functional/KerberosIT.java
/**
   * Creates a table, adds a record to it, and then compacts the table. A simple way to make sure
   * that the system user exists (since the master does an RPC to the tserver which will create the
   * system user if it doesn't already exist).
   */
Creates a table, adds a record to it, and then compacts the table. A simple way to make sure
that the system user exists (since the master does an RPC to the tserver which will create the
system user if it doesn't already exist).
Creates a table adds a record to it and then compacts the table . A simple way to make sure that the system user exists ( since the master does an RPC to the tserver which will create the system user if it doesn ' t already exist ) .
private void createTableWithDataAndCompact(Connector conn) throws TableNotFoundException,
      AccumuloSecurityException, AccumuloException, TableExistsException {
    final String table = testName.getMethodName() + "_table";
    conn.tableOperations().create(table);
    BatchWriter bw = conn.createBatchWriter(table, new BatchWriterConfig());
    Mutation m = new Mutation("a");
    m.put("b", "c", "d");
    bw.addMutation(m);
    bw.close();
    conn.tableOperations().compact(table, new CompactionConfig().setFlush(true).setWait(true));
  }
private void createTableWithDataAndCompact ( Connector conn ) throws TableNotFoundException , AccumuloSecurityException , AccumuloException , TableExistsException { final String table = testName . getMethodName ( ) + "_table" ; conn . tableOperations ( ) . create ( table ) ; BatchWriter bw = conn . createBatchWriter ( table , new BatchWriterConfig ( ) ) ; Mutation m = new Mutation ( "a" ) ; m . put ( "b" , "c" , "d" ) ; bw . addMutation ( m ) ; bw . close ( ) ; conn . tableOperations ( ) . compact ( table , new CompactionConfig ( ) . setFlush ( true ) . setWait ( true ) ) ; }
Creates a table, adds a record to it, and then compacts the table.
Creates a table adds a record to it and then compacts the table .