accumulo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Medinets <david.medin...@gmail.com>
Subject Using Monitor With MiniAccumuloCluster
Date Mon, 08 Dec 2014 02:10:16 GMT
Adding a Monitor page to the MiniAccumuloCluster was quite easy once I
looked at the code and using the Impl classes instead of the
Interfaces.

        MiniAccumuloConfigImpl miniAccumuloConfig = new
MiniAccumuloConfigImpl(new File("/accumulo"), "password");
       MiniAccumuloClusterImpl accumulo = new
MiniAccumuloClusterImpl(miniAccumuloConfig);
        accumulo.start();
        accumulo.exec(Monitor.class);

Here is the process tree on my laptop with 20 TServers in my Docker instance.

  MiniAccumuloConfigImpl miniAccumuloConfig = new
MiniAccumuloConfigImpl(new File("/accumulo"), "password");root
2094  0.2  0.0 841980 21728 ?        Ssl  13:59   1:06 /usr/bin/docker
-d -H tcp://0.0.0.0:2375 -H unix:///var/run/docker.sock
root      6595  0.0  0.0  17656  1484 pts/14   Ss+  20:57   0:00  \_
/bin/bash ./startup.sh
root      6607  0.0  0.0  35660  1312 pts/14   S+   20:57   0:00
\_ su david -c java -DTSERVER_COUNT=20 -DACCUMULO_SCHEMA=D4M
-DZOOKEEPER_PORT=20000 -jar jodoc-1.0-SNAPSHOT.jar
david     6608  0.0  0.0   4188   580 ?        Ss   20:57   0:00
   \_ sh -c java -DTSERVER_COUNT=20 -DACCUMULO_SCHEMA=D4M
-DZOOKEEPER_PORT=20000 -jar jodoc-1.0-SNAPSHOT.jar
david     6609  0.4  0.5 8951640 175744 ?      Sl   20:57   0:03
       \_ java -DTSERVER_COUNT=20 -DACCUMULO_SCHEMA=D4M
-DZOOKEEPER_PORT=20000 -jar jodoc-1.0-SNAPSHOT.jar
david     6627  3.0  0.3 556084 111800 ?       Sl   20:57   0:20
           \_ /usr/lib/jvm/zulu-7-amd64/jre/bin/java
-Dproc=ZooKeeperServerMain -cp /accumulo/conf:/jodoc-1.0-SNAPSHOT.jar
-Xmx134217728 -XX:+UseConcMarkSweepGC -XX:CMS
david     6705  0.9  0.3 574652 117668 ?       Sl   20:57   0:06
           \_ /usr/lib/jvm/zulu-7-amd64/jre/bin/java
-Dproc=TabletServer -cp /accumulo/conf:/jodoc-1.0-SNAPSHOT.jar
-Xmx134217728 -XX:+UseConcMarkSweepGC -XX:CMSInitiat
david     6708  0.9  0.3 631788 111280 ?       Sl   20:57   0:06
           \_ /usr/lib/jvm/zulu-7-amd64/jre/bin/java
-Dproc=TabletServer -cp /accumulo/conf:/jodoc-1.0-SNAPSHOT.jar
-Xmx134217728 -XX:+UseConcMarkSweepGC -XX:CMSInitiat
david     6713  1.2  0.3 586744 123808 ?       Sl   20:57   0:08
           \_ /usr/lib/jvm/zulu-7-amd64/jre/bin/java
-Dproc=TabletServer -cp /accumulo/conf:/jodoc-1.0-SNAPSHOT.jar
-Xmx134217728 -XX:+UseConcMarkSweepGC -XX:CMSInitiat
david     6718  1.2  0.3 577776 119284 ?       Sl   20:57   0:08
           \_ /usr/lib/jvm/zulu-7-amd64/jre/bin/java
-Dproc=TabletServer -cp /accumulo/conf:/jodoc-1.0-SNAPSHOT.jar
-Xmx134217728 -XX:+UseConcMarkSweepGC -XX:CMSInitiat
david     6724  1.2  0.3 587032 121948 ?       Sl   20:57   0:08
           \_ /usr/lib/jvm/zulu-7-amd64/jre/bin/java
-Dproc=TabletServer -cp /accumulo/conf:/jodoc-1.0-SNAPSHOT.jar
-Xmx134217728 -XX:+UseConcMarkSweepGC -XX:CMSInitiat
david     6779  0.9  0.3 641912 118068 ?       Sl   20:57   0:06
           \_ /usr/lib/jvm/zulu-7-amd64/jre/bin/java
-Dproc=TabletServer -cp /accumulo/conf:/jodoc-1.0-SNAPSHOT.jar
-Xmx134217728 -XX:+UseConcMarkSweepGC -XX:CMSInitiat
david     6786  1.4  0.3 588468 123792 ?       Sl   20:57   0:09
           \_ /usr/lib/jvm/zulu-7-amd64/jre/bin/java
-Dproc=TabletServer -cp /accumulo/conf:/jodoc-1.0-SNAPSHOT.jar
-Xmx134217728 -XX:+UseConcMarkSweepGC -XX:CMSInitiat
david     6793  1.2  0.3 586052 119356 ?       Sl   20:57   0:08
           \_ /usr/lib/jvm/zulu-7-amd64/jre/bin/java
-Dproc=TabletServer -cp /accumulo/conf:/jodoc-1.0-SNAPSHOT.jar
-Xmx134217728 -XX:+UseConcMarkSweepGC -XX:CMSInitiat
david     6845  1.2  0.3 586552 118796 ?       Sl   20:57   0:08
           \_ /usr/lib/jvm/zulu-7-amd64/jre/bin/java
-Dproc=TabletServer -cp /accumulo/conf:/jodoc-1.0-SNAPSHOT.jar
-Xmx134217728 -XX:+UseConcMarkSweepGC -XX:CMSInitiat
david     6858  1.2  0.3 649056 123932 ?       Sl   20:57   0:08
           \_ /usr/lib/jvm/zulu-7-amd64/jre/bin/java
-Dproc=TabletServer -cp /accumulo/conf:/jodoc-1.0-SNAPSHOT.jar
-Xmx134217728 -XX:+UseConcMarkSweepGC -XX:CMSInitiat
david     6872  1.2  0.3 577744 124172 ?       Sl   20:57   0:08
           \_ /usr/lib/jvm/zulu-7-amd64/jre/bin/java
-Dproc=TabletServer -cp /accumulo/conf:/jodoc-1.0-SNAPSHOT.jar
-Xmx134217728 -XX:+UseConcMarkSweepGC -XX:CMSInitiat
david     6889  1.2  0.3 576852 122272 ?       Sl   20:57   0:08
           \_ /usr/lib/jvm/zulu-7-amd64/jre/bin/java
-Dproc=TabletServer -cp /accumulo/conf:/jodoc-1.0-SNAPSHOT.jar
-Xmx134217728 -XX:+UseConcMarkSweepGC -XX:CMSInitiat
david     6948  1.2  0.3 579372 116196 ?       Sl   20:57   0:08
           \_ /usr/lib/jvm/zulu-7-amd64/jre/bin/java
-Dproc=TabletServer -cp /accumulo/conf:/jodoc-1.0-SNAPSHOT.jar
-Xmx134217728 -XX:+UseConcMarkSweepGC -XX:CMSInitiat
david     6980  1.2  0.3 581544 116852 ?       Sl   20:57   0:08
           \_ /usr/lib/jvm/zulu-7-amd64/jre/bin/java
-Dproc=TabletServer -cp /accumulo/conf:/jodoc-1.0-SNAPSHOT.jar
-Xmx134217728 -XX:+UseConcMarkSweepGC -XX:CMSInitiat
david     7005  2.5  0.4 729304 140812 ?       Sl   20:57   0:17
           \_ /usr/lib/jvm/zulu-7-amd64/jre/bin/java
-Dproc=TabletServer -cp /accumulo/conf:/jodoc-1.0-SNAPSHOT.jar
-Xmx134217728 -XX:+UseConcMarkSweepGC -XX:CMSInitiat
david     7012  1.2  0.3 588032 122988 ?       Sl   20:57   0:08
           \_ /usr/lib/jvm/zulu-7-amd64/jre/bin/java
-Dproc=TabletServer -cp /accumulo/conf:/jodoc-1.0-SNAPSHOT.jar
-Xmx134217728 -XX:+UseConcMarkSweepGC -XX:CMSInitiat
david     7021  1.4  0.3 653592 122920 ?       Sl   20:57   0:09
           \_ /usr/lib/jvm/zulu-7-amd64/jre/bin/java
-Dproc=TabletServer -cp /accumulo/conf:/jodoc-1.0-SNAPSHOT.jar
-Xmx134217728 -XX:+UseConcMarkSweepGC -XX:CMSInitiat
david     7027  2.9  0.4 723760 135912 ?       Sl   20:57   0:19
           \_ /usr/lib/jvm/zulu-7-amd64/jre/bin/java
-Dproc=TabletServer -cp /accumulo/conf:/jodoc-1.0-SNAPSHOT.jar
-Xmx134217728 -XX:+UseConcMarkSweepGC -XX:CMSInitiat
david     7034  1.2  0.3 578684 120444 ?       Sl   20:57   0:08
           \_ /usr/lib/jvm/zulu-7-amd64/jre/bin/java
-Dproc=TabletServer -cp /accumulo/conf:/jodoc-1.0-SNAPSHOT.jar
-Xmx134217728 -XX:+UseConcMarkSweepGC -XX:CMSInitiat
david     7061  1.2  0.3 588952 124944 ?       Sl   20:57   0:08
           \_ /usr/lib/jvm/zulu-7-amd64/jre/bin/java
-Dproc=TabletServer -cp /accumulo/conf:/jodoc-1.0-SNAPSHOT.jar
-Xmx134217728 -XX:+UseConcMarkSweepGC -XX:CMSInitiat
david     7465  3.9  0.3 644752 125272 ?       Sl   20:57   0:26
           \_ /usr/lib/jvm/zulu-7-amd64/jre/bin/java -Dproc=Master -cp
/accumulo/conf:/jodoc-1.0-SNAPSHOT.jar -Xmx134217728
-XX:+UseConcMarkSweepGC -XX:CMSInitiatingOcc
david     7481  2.3  0.3 556028 118292 ?       Sl   20:57   0:15
           \_ /usr/lib/jvm/zulu-7-amd64/jre/bin/java
-Dproc=SimpleGarbageCollector -cp
/accumulo/conf:/jodoc-1.0-SNAPSHOT.jar -Xmx134217728
-XX:+UseConcMarkSweepGC -XX:
david     7522  1.4  0.3 631724 122912 ?       Sl   20:57   0:09
           \_ /usr/lib/jvm/zulu-7-amd64/jre/bin/java -Dproc=Monitor
-cp /accumulo/conf:/jodoc-1.0-SNAPSHOT.jar -Xmx134217728
-XX:+UseConcMarkSweepGC -XX:CMSInitiatingOc

Mime
View raw message