Package org.apache.accumulo.core.cli

Examples of org.apache.accumulo.core.cli.ClientOnRequiredTable


    log.info("Test successful on table " + Setup.getTableName());
    state.getConnector().tableOperations().delete(Setup.getTableName());
  }
   
  public static void main(String args[]) throws Exception {
    ClientOnRequiredTable opts = new ClientOnRequiredTable();
    opts.parseArgs(Verify.class.getName(), args);
    Scanner scanner = opts.getConnector().createScanner(opts.tableName, opts.auths);
    scanner.fetchColumnFamily(BulkPlusOne.CHECK_COLUMN_FAMILY);
    Text startBadRow = null;
    Text lastBadRow = null;
    Value currentBadValue = null;
    for (Entry<Key,Value> entry : scanner) {
View Full Code Here


    log.info("Test successful on table " + Setup.getTableName());
    state.getConnector().tableOperations().delete(Setup.getTableName());
  }
   
  public static void main(String args[]) throws Exception {
    ClientOnRequiredTable opts = new ClientOnRequiredTable();
    opts.parseArgs(Verify.class.getName(), args);
    Scanner scanner = opts.getConnector().createScanner(opts.tableName, opts.auths);
    scanner.fetchColumnFamily(BulkPlusOne.CHECK_COLUMN_FAMILY);
    Text startBadRow = null;
    Text lastBadRow = null;
    Value currentBadValue = null;
    for (Entry<Key,Value> entry : scanner) {
View Full Code Here

*/
public class InsertWithBatchWriter {
 
  public static void main(String[] args) throws AccumuloException, AccumuloSecurityException, MutationsRejectedException, TableExistsException,
      TableNotFoundException {
    ClientOnRequiredTable opts = new ClientOnRequiredTable();
    BatchWriterOpts bwOpts = new BatchWriterOpts();
    opts.parseArgs(InsertWithBatchWriter.class.getName(), args, bwOpts);
   
    Connector connector = opts.getConnector();
    MultiTableBatchWriter mtbw = connector.createMultiTableBatchWriter(bwOpts.getBatchWriterConfig());
   
    if (!connector.tableOperations().exists(opts.tableName))
      connector.tableOperations().create(opts.tableName);
    BatchWriter bw = mtbw.getBatchWriter(opts.tableName);
View Full Code Here

* Simple example for using tableOperations() (like create, delete, flush, etc).
*/
public class Flush {
 
  public static void main(String[] args) {
    ClientOnRequiredTable opts = new ClientOnRequiredTable();
    opts.parseArgs(Flush.class.getName(), args);
    try {
      Connector connector = opts.getConnector();
      connector.tableOperations().flush(opts.tableName, null, null, true);
    } catch (Exception e) {
      throw new RuntimeException(e);
    }
  }
View Full Code Here

    log.info("Test successful on table " + Setup.getTableName());
    state.getConnector().tableOperations().delete(Setup.getTableName());
  }
   
  public static void main(String args[]) throws Exception {
    ClientOnRequiredTable opts = new ClientOnRequiredTable();
    opts.parseArgs(Verify.class.getName(), args);
    Scanner scanner = opts.getConnector().createScanner(opts.tableName, opts.auths);
    scanner.fetchColumnFamily(BulkPlusOne.CHECK_COLUMN_FAMILY);
    Text startBadRow = null;
    Text lastBadRow = null;
    Value currentBadValue = null;
    for (Entry<Key,Value> entry : scanner) {
View Full Code Here

TOP

Related Classes of org.apache.accumulo.core.cli.ClientOnRequiredTable

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.