You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Asit KAUSHIK <as...@gmail.com> on 2015/08/27 13:23:17 UTC

Error when connecting from secure .net code hosted on IIS to Cassandra cluster

Hi All,

I am using cassandra 2.1.3 , we have an application written in .net for
that we are using DataStax .Net Drivers . We are deploying this to our
production server (the .Net application) , we have created a static route
from our .net Webserver to the cassandra Cluster on port 9042 .
The Webserver is on a secured network.
But still i am getting this issue . On my local environment it is
connecting to the cassandra cluster. Please point me to any solution on
this.

Below are the logs i am getting on the Cassandra cluster


ERROR [SharedPool-Worker-1] 2015-08-27 04:50:58,070 Message.java:538 -
Unexpected exception during request; channel = [id: 0xb34f0ee8,
/XX.XX.XX.XX(IP adress of Webserver machine):64849 => /XX.XX.XX.XX(IP
address of cassandra machines):9042]
io.netty.handler.codec.DecoderException:
org.apache.cassandra.transport.ProtocolException: Unknown opcode 91
at
io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:280)
~[netty-all-4.0.23.Final.jar:4.0.23.Final]
at
io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:149)
~[netty-all-4.0.23.Final.jar:4.0.23.Final]
at
io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333)
~[netty-all-4.0.23.Final.jar:4.0.23.Final]
at
io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319)
~[netty-all-4.0.23.Final.jar:4.0.23.Final]
at
io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787)
~[netty-all-4.0.23.Final.jar:4.0.23.Final]
at
io.netty.channel.epoll.EpollSocketChannel$EpollSocketUnsafe.epollInReady(EpollSocketChannel.java:722)
~[netty-all-4.0.23.Final.jar:4.0.23.Final]
at
io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:326)
~[netty-all-4.0.23.Final.jar:4.0.23.Final]
at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:264)
~[netty-all-4.0.23.Final.jar:4.0.23.Final]
at
io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116)
~[netty-all-4.0.23.Final.jar:4.0.23.Final]
at
io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137)
~[netty-all-4.0.23.Final.jar:4.0.23.Final]
at java.lang.Thread.run(Thread.java:745) [na:1.7.0_65]
Caused by: org.apache.cassandra.transport.ProtocolException: Unknown opcode
91
at org.apache.cassandra.transport.Message$Type.fromOpcode(Message.java:131)
~[main/:na]
at org.apache.cassandra.transport.Frame$Decoder.decode(Frame.java:207)
~[main/:na]
at
io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:249)
~[netty-all-4.0.23.Final.jar:4.0.23.Final]
... 10 common frames omitted
INFO  [ScheduledTasks:1] 2015-08-27 04:51:07,152 ColumnFamilyStore.java:877
- Enqueuing flush of sstable_activity: 1559 (0%) on-heap, 0 (0%) off-heap
INFO  [MemtableFlushWriter:1127] 2015-08-27 04:51:07,154 Memtable.java:339
- Writing Memtable-sstable_activity@1999826205(162 serialized bytes, 72
ops, 0%/0% of on/off-heap limit)
INFO  [MemtableFlushWriter:1127] 2015-08-27 04:51:07,194 Memtable.java:378
- Completed flushing
/var/lib/cassandra/data/system/sstable_activity-5a1ff267ace03f128563cfae6103c65e/system-sstable_activity-ka-4202-Data.db
(184 bytes) for commitlog position ReplayPosition(segmentId=1437563816246,
position=13606179)
ERROR [CompactionExecutor:1545] 2015-08-27 05:51:04,111
CassandraDaemon.java:167 - Exception in thread
Thread[CompactionExecutor:1545,1,main]
java.lang.NullPointerException: null
at
org.apache.cassandra.service.CacheService$KeyCacheSerializer.serialize(CacheService.java:475)
~[main/:na]
at
org.apache.cassandra.service.CacheService$KeyCacheSerializer.serialize(CacheService.java:463)
~[main/:na]
at
org.apache.cassandra.cache.AutoSavingCache$Writer.saveCache(AutoSavingCache.java:274)
~[main/:na]
at
org.apache.cassandra.db.compaction.CompactionManager$11.run(CompactionManager.java:1152)
~[main/:na]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
~[na:1.7.0_65]
at java.util.concurrent.FutureTask.run(FutureTask.java:262) ~[na:1.7.0_65]
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
~[na:1.7.0_65]
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
[na:1.7.0_65]
at java.lang.Thread.run(Thread.java:745) [na:1.7.0_65]
INFO  [ScheduledTasks:1] 2015-08-27 05:51:07,153 ColumnFamilyStore.java:877
- Enqueuing flush of sstable_activity: 1559 (0%) on-heap, 0 (0%) off-heap
INFO  [MemtableFlushWriter:1128] 2015-08-27 05:51:07,154 Memtable.java:339
- Writing Memtable-sstable_activity@1875596231(162 serialized bytes, 72
ops, 0%/0% of on/off-heap limit)
INFO  [MemtableFlushWriter:1128] 2015-08-27 05:51:07,252 Memtable.java:378
- Completed flushing
/var/lib/cassandra/data/system/sstable_activity-5a1ff267ace03f128563cfae6103c65e/system-sstable_activity-ka-4203-Data.db
(182 bytes) for commitlog position ReplayPosition(segmentId=1437563816246,
position=13611183)
INFO  [CompactionExecutor:1545] 2015-08-27 05:51:07,254
CompactionTask.java:144 - Compacting
[SSTableReader(path='/var/lib/cassandra/data/system/sstable_activity-5a1ff267ace03f128563cfae6103c65e/system-sstable_activity-ka-4202-Data.db'),
SSTableReader(path='/var/lib/cassandra/data/system/sstable_activity-5a1ff267ace03f128563cfae6103c65e/system-sstable_activity-ka-4201-Data.db'),
SSTableReader(path='/var/lib/cassandra/data/system/sstable_activity-5a1ff267ace03f128563cfae6103c65e/system-sstable_activity-ka-4200-Data.db'),
SSTableReader(path='/var/lib/cassandra/data/system/sstable_activity-5a1ff267ace03f128563cfae6103c65e/system-sstable_activity-ka-4203-Data.db')]
INFO  [CompactionExecutor:1545] 2015-08-27 05:51:07,324
CompactionTask.java:271 - Compacted 4 sstables to
[/var/lib/cassandra/data/system/sstable_activity-5a1ff267ace03f128563cfae6103c65e/system-sstable_activity-ka-4204,].
 734 bytes to 182 (~24% of original) in 68ms = 0.002552MB/s.  8 total
partitions merged to 2.  Partition merge counts were {4:2, }