This means your nodetool version and Cassandra version are different. When you 'git clone' it usually place you to 'trunk' version (the latest development branch that is not yet released.) Use branch like cassandra-2.1 that matches your Cassandra version.
On Sat, Nov 14, 2015 at 9:04 PM, Michael Edge <edge.mich...@gmail.com> wrote: > Hi, > > I want to start working on Cassandra-10660 but I'm having a problem running > the nodetool script I downloaded using 'git clone'. > > After cloning the latest Cassandra version from Git, I execute the > following from the 'cassandra' directory: > > ./bin/nodetool -h 127.0.0.1 -p 7100 compact > > and I receive: > > javax.management.AttributeNotFoundException: No such attribute: > NonSystemKeyspaces > > Not all 'nodetool' commands result in an error. 'nodetool ring' works fine > (see example below) > > > *My environment==============* > Oracle Java 8u45 > Ant 1.9 > CentOS 7.1 > > > *Steps to reproduce================* > git clone git://git.apache.org/cassandra.git cassandra > cd cassandra > ant > > The ant build is successful. Then I do the following from the 'cassandra' > directory where the repo was cloned: > > [michael@localhost cassandra]$ ./bin/nodetool -h 127.0.0.1 -p 7100 ring > > Datacenter: datacenter1 > ========== > Address Rack Status State Load Owns > Token > > 3074457345618258602 > 127.0.0.1 rack1 Up Normal 2.02 MB ? > -9223372036854775808 > 127.0.0.2 rack1 Up Normal 2.04 MB ? > -3074457345618258603 > 127.0.0.3 rack1 Up Normal 2.01 MB ? > 3074457345618258602 > > [michael@localhost cassandra]$ ./bin/nodetool -h 127.0.0.1 -p 7100 compact > > error: No such attribute: NonSystemKeyspaces > -- StackTrace -- > javax.management.AttributeNotFoundException: No such attribute: > NonSystemKeyspaces > at > com.sun.jmx.mbeanserver.PerInterface.getAttribute(PerInterface.java:81) > at > com.sun.jmx.mbeanserver.MBeanSupport.getAttribute(MBeanSupport.java:206) > at > com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:647) > at > com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:678) > at > javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1443) > at > javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76) > at > javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1307) > at > javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1399) > at > javax.management.remote.rmi.RMIConnectionImpl.getAttribute(RMIConnectionImpl.java:637) > at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:497) > at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:323) > at sun.rmi.transport.Transport$1.run(Transport.java:200) > at sun.rmi.transport.Transport$1.run(Transport.java:197) > at java.security.AccessController.doPrivileged(Native Method) > at sun.rmi.transport.Transport.serviceCall(Transport.java:196) > at > sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568) > at > sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826) > at > sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$241(TCPTransport.java:683) > at > sun.rmi.transport.tcp.TCPTransport$ConnectionHandler$$Lambda$9/475003191.run(Unknown > Source) > at java.security.AccessController.doPrivileged(Native Method) > at > sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682) > at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) > at java.lang.Thread.run(Thread.java:745) > at > sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:276) > at > sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:253) > at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:162) > at com.sun.jmx.remote.internal.PRef.invoke(Unknown Source) > at > javax.management.remote.rmi.RMIConnectionImpl_Stub.getAttribute(Unknown > Source) > at > javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.getAttribute(RMIConnector.java:906) > at > javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:267) > at com.sun.proxy.$Proxy7.getNonSystemKeyspaces(Unknown Source) > at > org.apache.cassandra.tools.NodeProbe.getNonSystemKeyspaces(NodeProbe.java:808) > at > org.apache.cassandra.tools.NodeTool$NodeToolCmd.parseOptionalKeyspace(NodeTool.java:326) > at > org.apache.cassandra.tools.NodeTool$NodeToolCmd.parseOptionalKeyspace(NodeTool.java:318) > at org.apache.cassandra.tools.nodetool.Compact.execute(Compact.java:42) > at > org.apache.cassandra.tools.NodeTool$NodeToolCmd.run(NodeTool.java:245) > at org.apache.cassandra.tools.NodeTool.main(NodeTool.java:159) > > > Regards, > > Michael Edge -- Yuki Morishita t:yukim (http://twitter.com/yukim)