java - 未找到请求操作的编解码器:[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,不过我可以使用此工具运行其他基本测试。
解决方案
此错误意味着他们试图将文本数据保存或读取到在 Java 驱动程序中没有相应映射的类的对象中。因为其他测试有效,所以所有驱动程序等都设置正确。我认为这是代码中的简单错误,您可以在 Github 上打开问题。
推荐阅读
- c# - Blazor Wasm(无 WebApi)Google 表格授权
- python - Scapy:发现已知源 ip 时发出警报
- typeorm - 如何在 typeorm 中使用存储库?
- css - 将 SmartTable 的选定行设为自定义颜色
- docker - GCP - 无法写回 UDP 数据包
- javascript - 给出了一个整数数组。检查它是否包含相同的元素
- c# - IssuerSigningKeys 更改时如何重置 OpenIdConnectConfiguration?
- python - 保存到/从 SQL 加载的大型稀疏矩阵数据与 Numpy 文件数据
- jmespath - 在 JMESPath 查询中,如何在嵌套值旁边重复一个值?
- swift - WKWebView 的 Swift 关闭帮助评估javascript