【问题标题】:Cannot write on table on Amazon Keyspaces无法在 Amazon Keyspaces 上的表上写入
【发布时间】:2021-11-11 00:21:19
【问题描述】:

我在使用 spark 连接器在 aws 键空间上写入数据时遇到问题。以下消息显示:

ERROR QueryExecutor: Failed to execute: com.datastax.spark.connector.writer.RichBoundStatementWrapper@681c47f5 com.datastax.oss.driver.api.core.servererrors.WriteTimeoutException: Cassandra timeout during SIMPLE write query at consistency LOCAL_QUORUM (2 replica were required but only 0 acknowledged the write)

Spark 版本:3.1 电子病历:6.3.1 卡桑德拉:3.11.2

【问题讨论】:

    标签: apache-spark cassandra amazon-keyspaces


    【解决方案1】:

    当您收到 Amazon Keyspaces 的 WriteTimeout 错误时,通常表示写入请求因容量不足而失败。为了提供更多信息,我们建议使用我们在 Github 上发布的 Cloud Watch Monitoring 模板:https://github.com/aws-samples/amazon-keyspaces-cloudwatch-cloudformation-templates。它是一个 Cloud Watch 模板,可帮助您监控资源,来自 Cloud watch 指标的信息将帮助我们确定您收到此错误的原因,以便我们更好地为您提供帮助。

    【讨论】:

      【解决方案2】:

      首先请检查集群上所有节点的负载意味着 IO、CPU 和内存统计是否都正常。

      作为一种解决方法,您还可以考虑在 cassandra.conf 中增加以下超时参数。 write_request_timeout_in_ms & read_request_timeout_in_ms

      【讨论】:

        猜你喜欢
        • 2021-02-03
        • 2022-08-22
        • 2022-11-18
        • 1970-01-01
        • 2021-07-08
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2021-07-21
        相关资源
        最近更新 更多