我需要一些建议,我将 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
对吧?