[ 
https://issues.apache.org/jira/browse/CASSANDRA-10466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Brandon Williams updated CASSANDRA-10466:
-----------------------------------------
    Description: 
In CASSANDRA-7477 we fixed part of this, but it's still possible to have a 
variant of this problem:

{noformat}
Importing 1 keys...
java.lang.ClassCastException: 
org.apache.cassandra.db.composites.CompoundComposite cannot be cast to 
org.apache.cassandra.db.composites.CellName
        at 
org.apache.cassandra.db.composites.AbstractCellNameType.cellFromByteBuffer(AbstractCellNameType.java:188)
        at 
org.apache.cassandra.tools.SSTableImport$JsonColumn.<init>(SSTableImport.java:145)
        at 
org.apache.cassandra.tools.SSTableImport.addColumnsToCF(SSTableImport.java:213)
        at 
org.apache.cassandra.tools.SSTableImport.importUnsorted(SSTableImport.java:327)
        at 
org.apache.cassandra.tools.SSTableImport.importJson(SSTableImport.java:287)
        at org.apache.cassandra.tools.SSTableImport.main(SSTableImport.java:514)
ERROR: org.apache.cassandra.db.composites.CompoundComposite cannot be cast to 
org.apache.cassandra.db.composites.CellName
{noformat}

I can provide the schema and json file offline if needed.

  was:
In CASANDRA-7477 we fixed part of this, but it's still possible to have a 
variant of this problem:

{noformat}
Importing 1 keys...
java.lang.ClassCastException: 
org.apache.cassandra.db.composites.CompoundComposite cannot be cast to 
org.apache.cassandra.db.composites.CellName
        at 
org.apache.cassandra.db.composites.AbstractCellNameType.cellFromByteBuffer(AbstractCellNameType.java:188)
        at 
org.apache.cassandra.tools.SSTableImport$JsonColumn.<init>(SSTableImport.java:145)
        at 
org.apache.cassandra.tools.SSTableImport.addColumnsToCF(SSTableImport.java:213)
        at 
org.apache.cassandra.tools.SSTableImport.importUnsorted(SSTableImport.java:327)
        at 
org.apache.cassandra.tools.SSTableImport.importJson(SSTableImport.java:287)
        at org.apache.cassandra.tools.SSTableImport.main(SSTableImport.java:514)
ERROR: org.apache.cassandra.db.composites.CompoundComposite cannot be cast to 
org.apache.cassandra.db.composites.CellName
{noformat}

I can provide the schema and json file offline if needed.


> json2sstable import failing
> ---------------------------
>
>                 Key: CASSANDRA-10466
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10466
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>            Reporter: Brandon Williams
>             Fix For: 2.1.x
>
>
> In CASSANDRA-7477 we fixed part of this, but it's still possible to have a 
> variant of this problem:
> {noformat}
> Importing 1 keys...
> java.lang.ClassCastException: 
> org.apache.cassandra.db.composites.CompoundComposite cannot be cast to 
> org.apache.cassandra.db.composites.CellName
>         at 
> org.apache.cassandra.db.composites.AbstractCellNameType.cellFromByteBuffer(AbstractCellNameType.java:188)
>         at 
> org.apache.cassandra.tools.SSTableImport$JsonColumn.<init>(SSTableImport.java:145)
>         at 
> org.apache.cassandra.tools.SSTableImport.addColumnsToCF(SSTableImport.java:213)
>         at 
> org.apache.cassandra.tools.SSTableImport.importUnsorted(SSTableImport.java:327)
>         at 
> org.apache.cassandra.tools.SSTableImport.importJson(SSTableImport.java:287)
>         at 
> org.apache.cassandra.tools.SSTableImport.main(SSTableImport.java:514)
> ERROR: org.apache.cassandra.db.composites.CompoundComposite cannot be cast to 
> org.apache.cassandra.db.composites.CellName
> {noformat}
> I can provide the schema and json file offline if needed.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to