cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "J.B. Langston (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CASSANDRA-6449) Tools error out if they can't make ~/.cassandra
Date Wed, 29 Jan 2014 18:20:09 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-6449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13885608#comment-13885608
] 

J.B. Langston edited comment on CASSANDRA-6449 at 1/29/14 6:18 PM:
-------------------------------------------------------------------

This is the error that occurs when manually defining -Duser.home in the nodetool shell script:

{code}
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/collect/AbstractMultimap$WrappedSortedSet

at com.google.common.collect.AbstractMultimap.wrapCollection(AbstractMultimap.java:374) 
at com.google.common.collect.AbstractMultimap.get(AbstractMultimap.java:363) 
at com.google.common.collect.AbstractSetMultimap.get(AbstractSetMultimap.java:59) 
at com.google.common.collect.AbstractSortedSetMultimap.get(AbstractSortedSetMultimap.java:65)

at com.google.common.collect.TreeMultimap.get(TreeMultimap.java:74) 
at com.google.common.collect.AbstractSortedSetMultimap.get(AbstractSortedSetMultimap.java:35)

at com.google.common.collect.Multimaps$UnmodifiableMultimap.get(Multimaps.java:563) 
at org.apache.cassandra.locator.TokenMetadata.getTokens(TokenMetadata.java:507) 
at org.apache.cassandra.service.StorageService.getTokens(StorageService.java:2048) 
at org.apache.cassandra.service.StorageService.getTokens(StorageService.java:2042) 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
at java.lang.reflect.Method.invoke(Method.java:597) 
at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:93)

at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:27)

at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208) 
at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:120) 
at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:264) 
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)

at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:762) 
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1454)

at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:74) 
at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1295)

at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1387)

at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:818) 
at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source) 
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
at java.lang.reflect.Method.invoke(Method.java:597) 
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:303) 
at sun.rmi.transport.Transport$1.run(Transport.java:159) 
at java.security.AccessController.doPrivileged(Native Method) 
at sun.rmi.transport.Transport.serviceCall(Transport.java:155) 
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) 
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) 
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) 
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) 
at java.lang.Thread.run(Thread.java:662)
{code}


was (Author: jblangston@datastax.com):
This is the error that occurs when manually defining -Duser.home in the nodetool shell script:

{code}
Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/collect/AbstractMultimap$WrappedSortedSet

at com.google.common.collect.AbstractMultimap.wrapCollection(AbstractMultimap.java:374) 
at com.google.common.collect.AbstractMultimap.get(AbstractMultimap.java:363) 
at com.google.common.collect.AbstractSetMultimap.get(AbstractSetMultimap.java:59) 
at com.google.common.collect.AbstractSortedSetMultimap.get(AbstractSortedSetMultimap.java:65)

at com.google.common.collect.TreeMultimap.get(TreeMultimap.java:74) 
at com.google.common.collect.AbstractSortedSetMultimap.get(AbstractSortedSetMultimap.java:35)

at com.google.common.collect.Multimaps$UnmodifiableMultimap.get(Multimaps.java:563) 
at org.apache.cassandra.locator.TokenMetadata.getTokens(TokenMetadata.java:507) 
at org.apache.cassandra.service.StorageService.getTokens(StorageService.java:2048) 
at org.apache.cassandra.service.StorageService.getTokens(StorageService.java:2042) 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
at java.lang.reflect.Method.invoke(Method.java:597) 
at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:93)

at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:27)

at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208) 
at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:120) 
at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:264) 
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)

at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:762) 
at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1454)

at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:74) 
at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1295)

at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1387)

at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:818) 
at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source) 
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
at java.lang.reflect.Method.invoke(Method.java:597) 
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:303) 
at sun.rmi.transport.Transport$1.run(Transport.java:159) 
at java.security.AccessController.doPrivileged(Native Method) 
at sun.rmi.transport.Transport.serviceCall(Transport.java:155) 
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) 
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) 
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) 
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) 
at java.lang.Thread.run(Thread.java:662)
{code}

I'm guessing maybe we use user.home elsewhere to set up the CLASSPATH.

> Tools error out if they can't make ~/.cassandra
> -----------------------------------------------
>
>                 Key: CASSANDRA-6449
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-6449
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Tools
>            Reporter: Jeremiah Jordan
>
> We shouldn't error out if we can't make the .cassandra folder for the new history stuff.
> {noformat}
> Exception in thread "main" FSWriteError in /usr/share/opscenter-agent/.cassandra
> 	at org.apache.cassandra.io.util.FileUtils.createDirectory(FileUtils.java:261)
> 	at org.apache.cassandra.utils.FBUtilities.getToolsOutputDirectory(FBUtilities.java:627)
> 	at org.apache.cassandra.tools.NodeCmd.printHistory(NodeCmd.java:1403)
> 	at org.apache.cassandra.tools.NodeCmd.main(NodeCmd.java:1122)
> Caused by: java.io.IOException: Failed to mkdirs /usr/share/opscenter-agent/.cassandra
> 	... 4 more
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message