AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / dba / 问题 / 344913
Accepted
Коля Курик
Коля Курик
Asked: 2025-01-25 00:17:30 +0800 CST2025-01-25 00:17:30 +0800 CST 2025-01-25 00:17:30 +0800 CST

Cassandra 4.1 中已弃用的配置属性

  • 772

我需要一些建议,我将 Ubuntu 22.04 上拥有 7 个节点的 cassandra 集群从 4.0.5 升级到了 4.1.7,我是这样做的:

  • 停止 Cassandra,步骤:nodetool drip、nodetool stopdaemon
  • 编辑 /etc/apt/sources.list.d/cassandra.sources.list,将 deb http://www.apache.org/dist/cassandra/debian 40x main 替换为 deb https://debian.cassandra.apache.org 41x main
  • 升级:apt-get install --only-upgrade Cassandra
  • 重新启动 systemctl restart Cassandra

我对每个节点都继续执行此操作。之后我收到了警告:

WARN  08:50:08,758 [dynamic_snitch_reset_interval_in_ms, tracetype_query_ttl, request_timeout_in_ms, row_cache_size_in_mb, counter_write_request_timeout_in_ms, column_index_size_in_kb, trickle_fsync_interval_in_kb, cas_contention_timeout_in_ms, key_cache_size_in_mb, range_request_timeout_in_ms, enable_transient_replication, dynamic_snitch_update_interval_in_ms, column_index_cache_size_in_kb, write_request_timeout_in_ms, index_summary_resize_interval_in_minutes, permissions_validity_in_ms, max_hint_window_in_ms, enable_user_defined_functions, enable_sasi_indexes, read_request_timeout_in_ms, enable_drop_compact_storage, enable_legacy_ssl_storage_port, credentials_validity_in_ms, batch_size_warn_threshold_in_kb, index_summary_capacity_in_mb, commitlog_sync_period_in_ms, batchlog_replay_throttle_in_kb, windows_timer_interval, enable_scripted_user_defined_functions, commitlog_segment_size_in_mb, sstable_preemptive_open_interval_in_mb, tracetype_repair_ttl, roles_validity_in_ms, enable_materialized_views, prepared_statements_cache_size_mb, hinted_handoff_throttle_in_kb, compaction_large_partition_warning_threshold_mb, truncate_request_timeout_in_ms, slow_query_log_timeout_in_ms, hints_flush_period_in_ms, counter_cache_size_in_mb, max_hints_file_size_in_mb, compaction_throughput_mb_per_sec, batch_size_fail_threshold_in_kb] parameters have been deprecated. They have new names and/or value format; For more information, please refer to NEWS.txt

正如我在文档https://cassandra.apache.org/doc/4.1/cassandra/configuration/cass_yaml_file.html中看到的那样,我应该在以下内容中注释此参数cassandra.yaml:

  • dynamic_snitch_reset_interval_in_ms
  • tracetype_query_ttl
  • 请求超时(单位:毫秒)
  • row_cache_size_in_mb
  • counter_write_request_timeout_in_ms
  • 列索引大小(单位:kb)
  • trickle_fsync_interval_in_kb
  • cas_contention_timeout_in_ms
  • key_cache_size_in_mb
  • 范围请求超时(单位:毫秒)
  • 启用瞬时复制
  • dynamic_snitch_update_interval_in_ms
  • 列索引缓存大小(单位:kb)
  • 写入请求超时(毫秒)
  • index_summary_resize_interval_in_minutes
  • 权限有效性(单位:毫秒)
  • max_hint_window_in_ms
  • 启用用户定义函数
  • 启用_sasi_索引
  • 读取请求超时(毫秒)
  • 启用删除压缩存储
  • 启用旧版 SSL 存储端口
  • 凭证有效性(单位:毫秒)
  • 批次大小警告阈值(单位:kb)
  • index_summary_capacity_in_mb
  • commitlog_sync_period_in_ms
  • batchlog_replay_throttle_in_kb
  • windows_timer_interval
  • 启用脚本用户定义函数
  • commitlog_segment_size_in_mb
  • tracetype_repair_ttl
  • 角色有效性(单位:毫秒)
  • 启用物化视图
  • 准备好的语句缓存大小
  • hinted_handoff_throttle_in_kb
  • 压缩_大型分区_警告_阈值_mb
  • 截断请求超时(毫秒)
  • slow_query_log_timeout_in_ms
  • hints_flush_period_in_ms
  • counter_cache_size_in_mb
  • max_hints_file_size_in_mb
  • 压缩吞吐量
  • 批次大小_失败阈值_单位:kb

并sstable_preemptive_open_interval_in_mb改为sstable_preemptive_open_interval

对吧?

cassandra
  • 1 1 个回答
  • 26 Views

1 个回答

  • Voted
  1. Best Answer
    Erick Ramirez
    2025-01-28T08:51:38+08:002025-01-28T08:51:38+08:00

    你说得对。Cassandra 4.1 中许多参数都已重命名,以便在未来版本中标准化配置属性和 JVM 选项 ( CASSANDRA-15234 )。

    旧的属性名称已被弃用但并未删除,因此启动时的消息记录在WARN级别(不是ERROR),因为它们将至少继续工作到 C* 5.x,但在升级集群时需要注意一些事项。以下是公告NEWS.txt的摘录:

    - There is a new cassandra.yaml version 2. Units suffixes should be provided
      for all rates(B/s|KiB/s|MiB/s), memory (B|KiB|MiB|GiB) and duration(d|h|m|s|ms|us|µs|ns)
      parameters. List of changed parameters and details to consider during configuration setup
      can be found at https://cassandra.apache.org/doc/latest/cassandra/new/configuration.html.
      (CASSANDRA-15234)
      Backward compatibility with the old cassandra.yaml file will be in place
      until at least the next major version.
      By default we refuse starting Cassandra with a config containing both old
      and new config keys for the same parameter.
      Start Cassandra with -Dcassandra.allow_new_old_config_keys=true to override. 
      For historical reasons duplicate config keys in cassandra.yaml are allowed by default, 
      start Cassandra with -Dcassandra.allow_duplicate_config_keys=false to disallow this.
    

    此外,Ekaterina Dimitrova 于 2022 年 7 月撰写了一篇博客文章,宣布了 Apache Cassandra 4.1 的变化:配置标准化。

    有关重命名属性的列表,请参阅Apache Cassandra 官方网站上的将 cassandra.yaml 参数的名称从其单位中解放出来。干杯!

    • 1

相关问题

  • 具有 1 个外部 IP 的 Cassandra 多数据中心配置

  • 迁移中的 Cassandra 升级/修复问题

  • Cassandra cqlsh 浏览器查询只能以字节为单位

  • 在 Cassandra 中使用许多(数千个)列族或键空间会有什么后果?

  • Cassandra 静态加密

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    连接到 PostgreSQL 服务器:致命:主机没有 pg_hba.conf 条目

    • 12 个回答
  • Marko Smith

    如何让sqlplus的输出出现在一行中?

    • 3 个回答
  • Marko Smith

    选择具有最大日期或最晚日期的日期

    • 3 个回答
  • Marko Smith

    如何列出 PostgreSQL 中的所有模式?

    • 4 个回答
  • Marko Smith

    列出指定表的所有列

    • 5 个回答
  • Marko Smith

    如何在不修改我自己的 tnsnames.ora 的情况下使用 sqlplus 连接到位于另一台主机上的 Oracle 数据库

    • 4 个回答
  • Marko Smith

    你如何mysqldump特定的表?

    • 4 个回答
  • Marko Smith

    使用 psql 列出数据库权限

    • 10 个回答
  • Marko Smith

    如何从 PostgreSQL 中的选择查询中将值插入表中?

    • 4 个回答
  • Marko Smith

    如何使用 psql 列出所有数据库和表?

    • 7 个回答
  • Martin Hope
    Jin 连接到 PostgreSQL 服务器:致命:主机没有 pg_hba.conf 条目 2014-12-02 02:54:58 +0800 CST
  • Martin Hope
    Stéphane 如何列出 PostgreSQL 中的所有模式? 2013-04-16 11:19:16 +0800 CST
  • Martin Hope
    Mike Walsh 为什么事务日志不断增长或空间不足? 2012-12-05 18:11:22 +0800 CST
  • Martin Hope
    Stephane Rolland 列出指定表的所有列 2012-08-14 04:44:44 +0800 CST
  • Martin Hope
    haxney MySQL 能否合理地对数十亿行执行查询? 2012-07-03 11:36:13 +0800 CST
  • Martin Hope
    qazwsx 如何监控大型 .sql 文件的导入进度? 2012-05-03 08:54:41 +0800 CST
  • Martin Hope
    markdorison 你如何mysqldump特定的表? 2011-12-17 12:39:37 +0800 CST
  • Martin Hope
    Jonas 如何使用 psql 对 SQL 查询进行计时? 2011-06-04 02:22:54 +0800 CST
  • Martin Hope
    Jonas 如何从 PostgreSQL 中的选择查询中将值插入表中? 2011-05-28 00:33:05 +0800 CST
  • Martin Hope
    Jonas 如何使用 psql 列出所有数据库和表? 2011-02-18 00:45:49 +0800 CST

热门标签

sql-server mysql postgresql sql-server-2014 sql-server-2016 oracle sql-server-2008 database-design query-performance sql-server-2017

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve