Examples of ZooSpanClient


Examples of cloudtrace.instrument.receivers.ZooSpanClient

        address = InetAddress.getLocalHost().getHostAddress().toString();
      } catch (UnknownHostException e) {
        address = "unknown";
      }
    }
    Tracer.getInstance().addReceiver(new ZooSpanClient(zookeeper, path, address, application, 1000));
  }
View Full Code Here

Examples of cloudtrace.instrument.receivers.ZooSpanClient

    byte[] pass;
    try {
      if (!cl.hasOption(fakeOption.getLongOpt())) {
        String localhost = InetAddress.getLocalHost().getHostName();
        String path = ZooUtil.getRoot(instance) + Constants.ZTRACERS;
        Tracer.getInstance().addReceiver(new ZooSpanClient(instance.getZooKeepers(), path, localhost, "shell", 1000));
      }
     
      this.reader = new ConsoleReader();
     
      if (passw == null)
View Full Code Here

Examples of cloudtrace.instrument.receivers.ZooSpanClient

   
    Instance instance = new ZooKeeperInstance(instanceName, zooKeepers);
   
    String localhost = InetAddress.getLocalHost().getHostName();
    String path = ZooUtil.getRoot(instance) + Constants.ZTRACERS;
    Tracer.getInstance().addReceiver(new ZooSpanClient(zooKeepers, path, localhost, "cwalk", 1000));
   
    Connector conn = instance.getConnector(user, password.getBytes());
    Scanner scanner = conn.createScanner(table, new Authorizations());
   
    Random r = new Random();
View Full Code Here

Examples of cloudtrace.instrument.receivers.ZooSpanClient

    }
    Instance instance = new ZooKeeperInstance(instanceName, zooKeepers);
    Connector conn = instance.getConnector(user, password);
    String localhost = InetAddress.getLocalHost().getHostName();
    String path = ZooUtil.getRoot(instance) + Constants.ZTRACERS;
    Tracer.getInstance().addReceiver(new ZooSpanClient(zooKeepers, path, localhost, "cingest", 1000));
   
    BatchWriter bw = conn.createBatchWriter(table, maxMemory, maxLatency, maxWriteThreads);
    bw = Trace.wrapAll(bw, new CountSampler(1024));
    // BatchWriter bw = new NullBatchWriter();
   
View Full Code Here

Examples of cloudtrace.instrument.receivers.ZooSpanClient

        address = InetAddress.getLocalHost().getHostAddress().toString();
      } catch (UnknownHostException e) {
        address = "unknown";
      }
    }
    Tracer.getInstance().addReceiver(new ZooSpanClient(instance.getZooKeepers(), path, address, application, 1000));
  }
View Full Code Here

Examples of org.apache.accumulo.cloudtrace.instrument.receivers.ZooSpanClient

   
    Instance instance = new ZooKeeperInstance(instanceName, zooKeepers);
   
    String localhost = InetAddress.getLocalHost().getHostName();
    String path = ZooUtil.getRoot(instance) + Constants.ZTRACERS;
    Tracer.getInstance().addReceiver(new ZooSpanClient(zooKeepers, path, localhost, "cwalk", 1000));
    Accumulo.enableTracing(localhost, "ContinuousWalk");
    Connector conn = instance.getConnector(user, password.getBytes());
   
    Random r = new Random();
    RandomAuths randomAuths = new RandomAuths(authsFile);
View Full Code Here

Examples of org.apache.accumulo.cloudtrace.instrument.receivers.ZooSpanClient

    }
    Instance instance = new ZooKeeperInstance(instanceName, zooKeepers);
    Connector conn = instance.getConnector(user, password);
    String localhost = InetAddress.getLocalHost().getHostName();
    String path = ZooUtil.getRoot(instance) + Constants.ZTRACERS;
    Tracer.getInstance().addReceiver(new ZooSpanClient(zooKeepers, path, localhost, "cingest", 1000));
   
    if (!conn.tableOperations().exists(table)) {
      throw new TableNotFoundException(null, table, "Consult the README and create the table before starting ingest.");
    }
View Full Code Here

Examples of org.apache.accumulo.cloudtrace.instrument.receivers.ZooSpanClient

    }
    Instance instance = new ZooKeeperInstance(instanceName, zooKeepers);
    Connector conn = instance.getConnector(user, password);
    String localhost = InetAddress.getLocalHost().getHostName();
    String path = ZooUtil.getRoot(instance) + Constants.ZTRACERS;
    Tracer.getInstance().addReceiver(new ZooSpanClient(zooKeepers, path, localhost, "cingest", 1000));
   
    if (!conn.tableOperations().exists(table))
      try {
        conn.tableOperations().create(table);
      } catch (TableExistsException tee) {}
View Full Code Here

Examples of org.apache.accumulo.cloudtrace.instrument.receivers.ZooSpanClient

   
    Instance instance = new ZooKeeperInstance(instanceName, zooKeepers);
   
    String localhost = InetAddress.getLocalHost().getHostName();
    String path = ZooUtil.getRoot(instance) + Constants.ZTRACERS;
    Tracer.getInstance().addReceiver(new ZooSpanClient(zooKeepers, path, localhost, "cwalk", 1000));
    Accumulo.enableTracing(localhost, "ContinuousWalk");
    Connector conn = instance.getConnector(user, password.getBytes());
   
    Random r = new Random();
    RandomAuths randomAuths = new RandomAuths(authsFile);
View Full Code Here

Examples of org.apache.accumulo.cloudtrace.instrument.receivers.ZooSpanClient

   
    Instance instance = new ZooKeeperInstance(instanceName, zooKeepers);
   
    String localhost = InetAddress.getLocalHost().getHostName();
    String path = ZooUtil.getRoot(instance) + Constants.ZTRACERS;
    Tracer.getInstance().addReceiver(new ZooSpanClient(zooKeepers, path, localhost, "cwalk", 1000));
    Accumulo.enableTracing(localhost, "ContinuousWalk");
    Connector conn = instance.getConnector(user, password.getBytes());
    Scanner scanner = conn.createScanner(table, new Authorizations());
   
    Random r = new Random();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.