Skip to content

Instantly share code, notes, and snippets.

@maisaengineering
Created June 22, 2012 19:16
Show Gist options
  • Save maisaengineering/2974590 to your computer and use it in GitHub Desktop.
Save maisaengineering/2974590 to your computer and use it in GitHub Desktop.
Column family creation exception...
va.lang.RuntimeException: java.nio.charset.MalformedInputException: Input length = 1
at org.apache.cassandra.cql3.ColumnIdentifier.<init>(ColumnIdentifier.java:50)
at org.apache.cassandra.cql3.CFDefinition.getKeyId(CFDefinition.java:125)
at org.apache.cassandra.cql3.CFDefinition.<init>(CFDefinition.java:59)
at org.apache.cassandra.config.CFMetaData.updateCfDef(CFMetaData.java:1278)
at org.apache.cassandra.config.CFMetaData.keyAlias(CFMetaData.java:221)
at org.apache.cassandra.config.CFMetaData.fromSchemaNoColumns(CFMetaData.java:1162)
at org.apache.cassandra.config.CFMetaData.fromSchema(CFMetaData.java:1190)
at org.apache.cassandra.config.KSMetaData.deserializeColumnFamilies(KSMetaData.java:291)
at org.apache.cassandra.db.DefsTable.mergeColumnFamilies(DefsTable.java:395)
at org.apache.cassandra.db.DefsTable.mergeSchema(DefsTable.java:270)
at org.apache.cassandra.db.DefsTable.mergeRemoteSchema(DefsTable.java:248)
at org.apache.cassandra.db.DefinitionsUpdateVerbHandler$1.runMayThrow(DefinitionsUpdateVerbHandler.java:48)
at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:30)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.nio.charset.MalformedInputException: Input length = 1
at java.nio.charset.CoderResult.throwException(CoderResult.java:260)
at java.nio.charset.CharsetDecoder.decode(CharsetDecoder.java:781)
at org.apache.cassandra.utils.ByteBufferUtil.string(ByteBufferUtil.java:163)
at org.apache.cassandra.utils.ByteBufferUtil.string(ByteBufferUtil.java:120)
at org.apache.cassandra.cql3.ColumnIdentifier.<init>(ColumnIdentifier.java:46)
... 18 more
following cli based statements executed on one of the cluster nodes:
create keyspace Keyspace1 with strategy_options = {datacenter1 : 2};
create column family Standard1 with compaction_strategy = LeveledCompactionStrategy;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment