示例#1
0
 public static void main(String[] args) throws Exception {
   SecurityUtil.serverLogin();
   ServerOpts opts = new ServerOpts();
   opts.parseArgs("tracer", args);
   Instance instance = HdfsZooInstance.getInstance();
   ServerConfiguration conf = new ServerConfiguration(instance);
   VolumeManager fs = VolumeManagerImpl.get();
   Accumulo.init(fs, conf, "tracer");
   String hostname = opts.getAddress();
   TraceServer server = new TraceServer(conf, hostname);
   Accumulo.enableTracing(hostname, "tserver");
   server.run();
   log.info("tracer stopping");
 }
示例#2
0
  public static void main(String[] args) throws Exception {
    SecurityUtil.serverLogin(ServerConfiguration.getSiteConfiguration());

    VolumeManager fs = VolumeManagerImpl.get();
    ServerOpts opts = new ServerOpts();
    opts.parseArgs("monitor", args);
    String hostname = opts.getAddress();

    instance = HdfsZooInstance.getInstance();
    config = new ServerConfiguration(instance);
    Accumulo.init(fs, config, "monitor");
    Monitor monitor = new Monitor();
    Accumulo.enableTracing(hostname, "monitor");
    monitor.run(hostname);
  }