Rukshan,

Double check when you start the Monitor that you have the MAC's accumulo-site.xml on the classpath. If you still see the ZooKeeper exception, please provide a stacktrace and some more information on what you've changed.

Rukshan Chathuranga wrote:
hi,

I run amc as separate application and try to write monitoring app
separately. For that i used the Monitor class with some changes.
I need to run them separately and get the statistics data using Monitor
class.

Thanks and Regards.


/Rukshan Chathuranga./
/Department Of Computer Science & Engineering,
/
/Faculty Of Engineering,
/
/University Of Moratuwa. //Sri Lanka./
/WEB: http://www.rukspot.com/ <http://rukspot.com/>
/


On Fri, Jun 5, 2015 at 10:51 PM, Josh Elser <[email protected]
<mailto:[email protected]>> wrote:

    Hi Rukshan,

    How did you start the Monitor?

    The MiniAccumuloCluster is actually a thin wrapper around
    MiniAccumuloClusterImpl (in recent versions). If you cast to
    MiniAccumuloClusterImpl, you should be able to use the exec method
    to start the Monitor for you which will do the proper classpath
    setup for you.

         ((MiniAccumuloClusterImpl) mac).exec(Monitor.class);

    The authentication failure is commonly due to a security measure we
    have in place to ensure that rogue services cannot start
    participating in an Accumulo cluster. The value of `instance.secret`
    in accumulo-site.xml is used to control the ACL in ZooKeeper used to
    write to certain znodes (such as those used for service discovery).
    If you see a NoAuthException, it's likely that the service you
    started found the wrong accumulo-site.xml (or didn't find it at all).

    - Josh

    Rukshan Chathuranga wrote:

        Hi,

        i am try to get the Accumulo statistics using
        Monitor(org.apache.accumulo.monitor.Monitor) class. But when i
        try it i
        got the exception as below.
        Do you have any idea to fix this.

        Note that i am running accumulo as mini cluster.

        2015-06-05 21:27:58,052 [monitor.Monitor] WARN : Failed to get
        monitor
        lock org.apache.zookeeper.KeeperException$NoAuthException:


        /Rukshan Chathuranga./
        /Department Of Computer Science & Engineering,
        /
        /Faculty Of Engineering,
        /
        /University Of Moratuwa. //Sri Lanka./
        /WEB: http://www.rukspot.com/ <http://rukspot.com/>
        /


Reply via email to