コード例 #1
0
ファイル: TraceServer.java プロジェクト: harayz/accumulo
 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
ファイル: Monitor.java プロジェクト: joshelser/accumulo
  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);
  }