> Thanks for the work around, setting disk_access_mode: standard worked. hmmm, it's only a work around.
If you can reproduce the fault could you report it on https://issues.apache.org/jira/browse/CASSANDRA Cheers ----------------- Aaron Morton Freelance Cassandra Developer New Zealand @aaronmorton http://www.thelastpickle.com On 20/11/2012, at 11:03 PM, Alain RODRIGUEZ <arodr...@gmail.com> wrote: > Hi Aaron. > > Here is my java -version > > java version "1.6.0_35" > Java(TM) SE Runtime Environment (build 1.6.0_35-b10) > Java HotSpot(TM) 64-Bit Server VM (build 20.10-b01, mixed mode) > > Thanks for the work around, setting disk_access_mode: standard worked. > > Alain > > > 2012/11/19 aaron morton <aa...@thelastpickle.com> > Are you running a 32 bit JVM ? What is the full JVM version ? > > As a work around you can try disabling memory mapped access set > disk_access_mode to standard. > > Cheers > > ----------------- > Aaron Morton > Freelance Cassandra Developer > New Zealand > > @aaronmorton > http://www.thelastpickle.com > > On 20/11/2012, at 6:27 AM, Alain RODRIGUEZ <arodr...@gmail.com> wrote: > >> I have backed up production sstables from one of my 3 production nodes >> (RF=3) and I want to use them on my dev environment.(C* 1.1.6 on both >> environments) >> >> My dev server is a 4 core, 4 GB RAM hardware runing on ubuntu. >> >> I have applied the production schema in my dev node and copied all sstable >> in the appropriated folder and restart my node like I always do. >> >> But this time have had the following error (many times and only for ) : >> >> INFO [SSTableBatchOpen:4] 2012-11-19 17:52:52,980 SSTableReader.java (line >> 169) Opening >> /var/lib/cassandra/data/cassa_teads/data_action/cassa_teads-data_action-hf-660 >> (7015417424 bytes) >> ERROR [SSTableBatchOpen:3] 2012-11-19 17:53:17,259 >> AbstractCassandraDaemon.java (line 135) Exception in thread >> Thread[SSTableBatchOpen:3,5,main] >> java.io.IOError: java.io.IOException: Invalid argument >> at >> org.apache.cassandra.io.util.MmappedSegmentedFile$Builder.createSegments(MmappedSegmentedFile.java:202) >> at >> org.apache.cassandra.io.util.MmappedSegmentedFile$Builder.complete(MmappedSegmentedFile.java:179) >> at >> org.apache.cassandra.io.sstable.SSTableReader.load(SSTableReader.java:429) >> at >> org.apache.cassandra.io.sstable.SSTableReader.open(SSTableReader.java:200) >> at >> org.apache.cassandra.io.sstable.SSTableReader.open(SSTableReader.java:153) >> at >> org.apache.cassandra.io.sstable.SSTableReader$1.run(SSTableReader.java:242) >> at java.util.concurrent.Executors$RunnableAdapter.call(Unknown >> Source) >> at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) >> at java.util.concurrent.FutureTask.run(Unknown Source) >> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown >> Source) >> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) >> at java.lang.Thread.run(Unknown Source) >> Caused by: java.io.IOException: Invalid argument >> at sun.nio.ch.FileChannelImpl.truncate0(Native Method) >> at sun.nio.ch.FileChannelImpl.map(Unknown Source) >> at >> org.apache.cassandra.io.util.MmappedSegmentedFile$Builder.createSegments(MmappedSegmentedFile.java:194) >> ... 11 more >> >> If I try with nodetool refresh I have the following error : >> >> Exception in thread "main" java.io.IOError: java.io.IOException: Invalid >> argument >> at >> org.apache.cassandra.io.util.MmappedSegmentedFile$Builder.createSegments(MmappedSegmentedFile.java:202) >> at >> org.apache.cassandra.io.util.MmappedSegmentedFile$Builder.complete(MmappedSegmentedFile.java:179) >> at >> org.apache.cassandra.io.sstable.SSTableReader.load(SSTableReader.java:429) >> at >> org.apache.cassandra.io.sstable.SSTableReader.open(SSTableReader.java:200) >> at >> org.apache.cassandra.io.sstable.SSTableReader.open(SSTableReader.java:153) >> at >> org.apache.cassandra.db.ColumnFamilyStore.loadNewSSTables(ColumnFamilyStore.java:510) >> at >> org.apache.cassandra.db.ColumnFamilyStore.loadNewSSTables(ColumnFamilyStore.java:468) >> at >> org.apache.cassandra.service.StorageService.loadNewSSTables(StorageService.java:3089) >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) >> at java.lang.reflect.Method.invoke(Unknown Source) >> at >> com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown Source) >> at >> com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown Source) >> at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(Unknown Source) >> at com.sun.jmx.mbeanserver.PerInterface.invoke(Unknown Source) >> at com.sun.jmx.mbeanserver.MBeanSupport.invoke(Unknown Source) >> at >> com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown Source) >> at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source) >> at javax.management.remote.rmi.RMIConnectionImpl.doOperation(Unknown >> Source) >> at javax.management.remote.rmi.RMIConnectionImpl.access$200(Unknown >> Source) >> at >> javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(Unknown >> Source) >> at >> javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(Unknown >> Source) >> at javax.management.remote.rmi.RMIConnectionImpl.invoke(Unknown >> Source) >> at sun.reflect.GeneratedMethodAccessor43.invoke(Unknown Source) >> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) >> at java.lang.reflect.Method.invoke(Unknown Source) >> at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source) >> at sun.rmi.transport.Transport$1.run(Unknown Source) >> at java.security.AccessController.doPrivileged(Native Method) >> at sun.rmi.transport.Transport.serviceCall(Unknown Source) >> at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source) >> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown >> Source) >> at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown >> Source) >> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown >> Source) >> at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) >> at java.lang.Thread.run(Unknown Source) >> Caused by: java.io.IOException: Invalid argument >> at sun.nio.ch.FileChannelImpl.truncate0(Native Method) >> at sun.nio.ch.FileChannelImpl.map(Unknown Source) >> at >> org.apache.cassandra.io.util.MmappedSegmentedFile$Builder.createSegments(MmappedSegmentedFile.java:194) >> ... 36 more >> >> I Google it without success. >> >> Any clue ? >> >> Alain >> > >