8 Replies Latest reply on Jun 4, 2015 10:44 AM by Steven Hawkins

    Large size of Blob data in Cassandra

    H B Newbie

      I am using teiid Cassandra translator (teiid version is 8.10.1) for Cassandra DB. I got following error when access blob data in Cassandra:

       

      org.teiid.core.types.TransformationException: TEIID10076 Invalid conversion from type class java.lang.Object with value 'java.nio.HeapByteBuffer[pos=88 lim=92 cap=109]' to type class org.teiid.core.types.BinaryType

      org.teiid.core.types.basic.ObjectToAnyTransform.transform(ObjectToAnyTransform.java:111)

      org.teiid.core.types.DataTypeManager.transformValue(DataTypeManager.java:941)

      org.teiid.dqp.internal.datamgr.ConnectorWorkItem.correctTypes(ConnectorWorkItem.java:543)

      org.teiid.dqp.internal.datamgr.ConnectorWorkItem.handleBatch(ConnectorWorkItem.java:410)

      org.teiid.dqp.internal.datamgr.ConnectorWorkItem.more(ConnectorWorkItem.java:210)

      sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

      sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

      java.lang.reflect.Method.invoke(Method.java:606)

      org.teiid.dqp.internal.datamgr.ConnectorManager$1.invoke(ConnectorManager.java:209)

      com.sun.proxy.$Proxy133.more(Unknown Source)

      org.teiid.dqp.internal.process.DataTierTupleSource.getResults(DataTierTupleSource.java:301)

      org.teiid.dqp.internal.process.DataTierTupleSource$1.call(DataTierTupleSource.java:110)

      org.teiid.dqp.internal.process.DataTierTupleSource$1.call(DataTierTupleSource.java:107)

      java.util.concurrent.FutureTask.run(FutureTask.java:262)

      org.teiid.dqp.internal.process.FutureWork.run(FutureWork.java:58)

      org.teiid.dqp.internal.process.DQPWorkContext.runInContext(DQPWorkContext.java:276)

      org.teiid.dqp.internal.process.ThreadReuseExecutor$RunnableWrapper.run(ThreadReuseExecutor.java:119)

      org.teiid.dqp.internal.process.ThreadReuseExecutor$3.run(ThreadReuseExecutor.java:210)

      java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

      java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

      java.lang.Thread.run(Thread.java:745)

       

      The Cassandra server version is 2.0.

      The schema of the table I tried to access is:

       

      CREATE TABLE testcass.applicationbinarydata (

        key text PRIMARY KEY,

        data blob

      )

       

      Does this version of Teiid (8.10.1) support Cassandra 2.0? Or this is the code bug in Teiid?

       

      Please help and thanks in advance!

       

      Haifen Bi