使用Kettle从Cassandra中读取动态列族

使用Kettle从Cassandra中读取动态列族,cassandra,kettle,Cassandra,Kettle,我必须将数据从一个集群迁移到另一个集群,对数据进行一些转换。在本教程中,我尝试使用Ketter来实现这一点: 但我试图从通过cli(在以前的Cassandra版本中)创建的动态列族中读取以下内容: 创建列族IndividualMorpsIndividuals,read_repair_chance=0,gc_grace=0 我创建cassandra输入步骤如下: 当我单击“显示模式”时,将显示以下信息: 列族:个体变体个体 密钥验证程序:org.apache.cassandra.db.mars

我必须将数据从一个集群迁移到另一个集群,对数据进行一些转换。在本教程中,我尝试使用Ketter来实现这一点:

但我试图从通过cli(在以前的Cassandra版本中)创建的动态列族中读取以下内容:

创建列族IndividualMorpsIndividuals,read_repair_chance=0,gc_grace=0

我创建cassandra输入步骤如下:

当我单击“显示模式”时,将显示以下信息:

列族:个体变体个体 密钥验证程序:org.apache.cassandra.db.marshal.BytesType 列比较器:org.apache.cassandra.db.marshal.BytesType 默认列验证器:org.apache.cassandra.db.marshal.BytesType 读取修复机会:0.0 GC宽限期:0 最小压缩阈值:4 最大压缩阈值:32 写时复制:true

Column metadata:
但当我尝试预览该步骤时,出现以下错误:

2013/11/06 08:17:22 - Cassandra Input.0 - Getting meta data for column family IndividualMorphsIndividuals
2013/11/06 08:17:22 - Cassandra Input.0 - Executing query SELECT * FROM IndividualMorphsIndividuals;  ...
2013/11/06 08:17:22 - Cassandra Input.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : Unexpected error
2013/11/06 08:17:22 - Cassandra Input.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : org.pentaho.di.core.exception.KettleException: 
2013/11/06 08:17:22 - Cassandra Input.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : Cant find a deserializer for type "{0}"
2013/11/06 08:17:22 - Cassandra Input.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : 
2013/11/06 08:17:22 - Cassandra Input.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) :  at org.pentaho.cassandra.CassandraColumnMetaData.getColumnValue(CassandraColumnMetaData.java:965)
2013/11/06 08:17:22 - Cassandra Input.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) :  at org.pentaho.cassandra.CassandraColumnMetaData.getColumnName(CassandraColumnMetaData.java:878)
2013/11/06 08:17:22 - Cassandra Input.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) :  at org.pentaho.di.trans.steps.cassandrainput.CassandraInputData.cassandraRowToKettle(CassandraInputData.java:567)
2013/11/06 08:17:22 - Cassandra Input.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) :  at org.pentaho.di.trans.steps.cassandrainput.CassandraInput.processRow(CassandraInput.java:271)
2013/11/06 08:17:22 - Cassandra Input.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) :  at org.pentaho.di.trans.step.RunThread.run(RunThread.java:50)
2013/11/06 08:17:22 - Cassandra Input.0 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) :  at java.lang.Thread.run(Thread.java:722)
2013/11/06 08:17:22 - Cassandra Input.0 - Finished processing (I=0, O=0, R=0, W=0, U=0, E=1)
2013/11/06 08:17:22 - Spoon - The transformation has finished!!
2013/11/06 08:17:22 - Transformation 1 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : Errors detected!
2013/11/06 08:17:23 - Transformation 1 - ERROR (version 4.4.0-stable, build 17588 from 2012-11-21 16.02.21 by buildguy) : Errors detected!
有人知道如何使用这种带水壶的柱族吗


感谢

我也遇到了这个问题,但没有找到任何解决方案,所以我改用了CLI,改用了cql(cassandra查询语言),因为我使用的是pdi 4.4,所以我们必须为cql添加1个插件,然后您可以轻松地将cassandra连接到kettle

按照链接通过CQL连接cassandra


如果您想使用此链接,请告诉我,我将共享相应的链接。如果您有合适的链接,为什么不共享@努力工作我已经编辑了我的答案。。跟着它走,你被击中了,然后告诉我。链接肯定会帮助你。