首页 > 解决方案 > 未找到请求操作的编解码器:[varchar <-> com.thelastpickle.tlpstress.PartitionKey]

问题描述

我正在使用 tlp-stress ( http://thelastpickle.com/blog/2018/10/31/tlp-stress-intro.html ) 在 Cassandra 中对 LWT 进行压力测试。当我运行以下命令时,它会出错。

bin/tlp-stress run LWT -d "2m" --replication "{'class': 'NetworkTopologyStrategy', 'us-east': '3', 'us-west-2': '3'}" -t 10 --host 10.xxx.xxx.xxx

Codec not found for requested operation: [varchar <-> com.thelastpickle.tlpstress.PartitionKey]
com.datastax.driver.core.exceptions.CodecNotFoundException: Codec not found for requested operation: [varchar <-> com.thelastpickle.tlpstress.PartitionKey]

我不是开发人员,也不知道 java,需要帮助来找出这里出了什么问题以及应该怎么做才能让它运行?是否需要安装任何java驱动程序?我只下载链接中提到的 tlp-stress,不过我可以使用此工具运行其他基本测试。

标签: javacassandracodec

解决方案


此错误意味着他们试图将文本数据保存或读取到在 Java 驱动程序中没有相应映射的类的对象中。因为其他测试有效,所以所有驱动程序等都设置正确。我认为这是代码中的简单错误,您可以在 Github 上打开问题


推荐阅读