重新启动cassandra节点时遇到令牌配置异常

busg9geu  于 2021-06-14  发布在  Cassandra
关注(0)|答案(0)|浏览(547)

最近我重新启动了一个cassandra节点(它是一个种子节点)并得到了以下错误,奇怪的是,以前我启动集群时令牌设置为256,现在我得到了一个“cannotchangetokenfrom512到256”错误。

  1. DEBUG [localhost-startStop-1] 2019-10-03 21:25:57,574
  2. YamlConfigurationLoader.java:102 - Loading settings from
  3. file:/mnt/ccm/cassandra-dev-snapshot-test/node1/conf/cassandra.yaml
  4. DEBUG [localhost-startStop-1] 2019-10-03 21:25:57,592
  5. StorageService.java:899 - Bootstrap variables: false false true true
  6. ERROR [localhost-startStop-1] 2019-10-03 21:25:57,598
  7. CassandraDaemon.java:727 - Fatal configuration error
  8. org.apache.cassandra.exceptions.ConfigurationException: Cannot change
  9. the number of tokens from 512 to 256 at org.apache.cassandra.service.StorageService.joinTokenRing(StorageService.java:1006)
  10. at org.apache.cassandra.service.StorageService.initServer(StorageService.java:753)

以前有人经历过吗?我在网上发现的唯一一件事是当人们试图从vnode变为单令牌时。解决方案是完全删除数据并从快照中恢复。
编辑1:
Cassandra版本:3.0.15
Cassandra.亚马尔:

  1. authenticator: AllowAllAuthenticator
  2. authorizer: AllowAllAuthorizer
  3. auto_bootstrap: false
  4. auto_snapshot: true
  5. batch_size_fail_threshold_in_kb: 50
  6. batch_size_warn_threshold_in_kb: 5
  7. batchlog_replay_throttle_in_kb: 1024
  8. cas_contention_timeout_in_ms: 1000
  9. client_encryption_options:
  10. enabled: false
  11. keystore: conf/.keystore
  12. keystore_password: cassandra
  13. optional: false
  14. cluster_name: cassandra-snapshot-test
  15. column_index_size_in_kb: 64
  16. commit_failure_policy: stop
  17. commitlog_directory: /mnt/ccm/cassandra-snapshot-test/node1/commitlogs
  18. commitlog_segment_size_in_mb: 32
  19. commitlog_sync: periodic
  20. commitlog_sync_period_in_ms: 10000
  21. compaction_large_partition_warning_threshold_mb: 100
  22. compaction_throughput_mb_per_sec: 16
  23. concurrent_counter_writes: 32
  24. concurrent_materialized_view_writes: 32
  25. concurrent_reads: 32
  26. concurrent_writes: 32
  27. counter_cache_save_period: 7200
  28. counter_cache_size_in_mb: null
  29. counter_write_request_timeout_in_ms: 5000
  30. cross_node_timeout: false
  31. data_file_directories:
  32. - /mnt/ccm/cassandra-snapshot-test/node1/data0
  33. disk_failure_policy: stop
  34. dynamic_snitch_badness_threshold: 0.1
  35. dynamic_snitch_reset_interval_in_ms: 600000
  36. dynamic_snitch_update_interval_in_ms: 100
  37. enable_scripted_user_defined_functions: false
  38. enable_user_defined_functions: false
  39. endpoint_snitch: SimpleSnitch
  40. gc_warn_threshold_in_ms: 1000
  41. hinted_handoff_enabled: true
  42. hinted_handoff_throttle_in_kb: 1024
  43. hints_directory: /mnt/ccm/cassandra-snapshot-test/node1/hints
  44. hints_flush_period_in_ms: 10000
  45. incremental_backups: false
  46. index_summary_capacity_in_mb: null
  47. index_summary_resize_interval_in_minutes: 60
  48. initial_token: null
  49. inter_dc_tcp_nodelay: false
  50. internode_compression: all
  51. key_cache_save_period: 14400
  52. key_cache_size_in_mb: null
  53. listen_address: 172.27.17.176
  54. max_hint_window_in_ms: 10800000
  55. max_hints_delivery_threads: 2
  56. max_hints_file_size_in_mb: 128
  57. memtable_allocation_type: heap_buffers
  58. native_transport_port: 9042
  59. num_tokens: 256
  60. partitioner: org.apache.cassandra.dht.Murmur3Partitioner
  61. permissions_validity_in_ms: 2000
  62. range_request_timeout_in_ms: 10000
  63. read_request_timeout_in_ms: 5000
  64. request_scheduler: org.apache.cassandra.scheduler.NoScheduler
  65. request_timeout_in_ms: 10000
  66. role_manager: CassandraRoleManager
  67. roles_validity_in_ms: 2000
  68. row_cache_save_period: 0
  69. row_cache_size_in_mb: 0
  70. rpc_address: *IP*
  71. rpc_keepalive: true
  72. rpc_port: 9160
  73. rpc_server_type: sync
  74. saved_caches_directory: /mnt/ccm/cassandra-snapshot-test/node1/saved_caches
  75. seed_provider:
  76. - class_name: org.apache.cassandra.locator.SimpleSeedProvider
  77. parameters:
  78. - seeds: *IP*
  79. server_encryption_options:
  80. enabled: false
  81. internode_encryption: none
  82. keystore: conf/.keystore
  83. keystore_password: cassandra
  84. optional: false
  85. truststore: conf/.truststore
  86. truststore_password: cassandra
  87. snapshot_before_compaction: false
  88. ssl_storage_port: 7001
  89. sstable_preemptive_open_interval_in_mb: 50
  90. start_native_transport: true
  91. start_rpc: false
  92. storage_port: 7000
  93. thrift_framed_transport_size_in_mb: 15
  94. tombstone_failure_threshold: 100000
  95. tombstone_warn_threshold: 1000
  96. tracetype_query_ttl: 86400
  97. tracetype_repair_ttl: 604800
  98. trickle_fsync: false
  99. trickle_fsync_interval_in_kb: 10240
  100. truncate_request_timeout_in_ms: 60000
  101. unlogged_batch_across_partitions_warn_threshold: 10
  102. windows_timer_interval: 1
  103. write_request_timeout_in_ms: 2000

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题