- cassandra-env.sh file
cassandra.auto_bootstrap=falsecassandra.available_processors=<number_of_processors>cassandra.boot_without_jna=truecassandra.config=<directory>cassandra.ignore_dynamic_snitch_severity=true|falsecassandra.initial_token=<token>cassandra.join_ring=true|falsecassandra.load_ring_state=true|falsecassandra.metricsReporterConfigFile=<filename>cassandra.partitioner=<partitioner>cassandra.prepared_statements_cache_size_in_bytes=<cache_size>cassandra.replace_address=<listen_address of dead node>|<broadcast_address of dead node>cassandra.replayList=<table>cassandra.ring_delay_ms=<number_of_ms>cassandra.native_transport_port=<port>cassandra.rpc_port=<port>cassandra.storage_port=<port>cassandra.ssl_storage_port=<port>cassandra.start_native_transport=true|falsecassandra.start_rpc=true|falsecassandra.triggers_dir=<directory>cassandra.write_survey=trueconsistent.rangemovement=true|false
- cassandra-env.sh file
- -
cassandra-env.sh file
cassandra-env.shbash script file can be used to pass additional options to the Java virtual machine (JVM), such as maximum and minimum heap size, rather than setting them in the environment. If the JVM settings are static and do not need to be computed from the node characteristics, thecassandra-jvm-optionsfiles should be used instead. For example, commonly computed values are the heap sizes, using the system values.JVM_OPTS="$JVM_OPTS -Dcassandra.load_ring_state=false"to thecassandra_env.shfile and run the command-linecassandrato start. The option is set from thecassandra-env.shfile, and is equivalent to starting Cassandra with the command-line optioncassandra -Dcassandra.load_ring_state=false.-Doption specifies the start-up parameters in both the command line andcassandra-env.shfile. The following options are available:cassandra.auto_bootstrap=falsecassandra.yamlfile on each node to revert to true, the default value.
In a multi-instance deployment, multiple Cassandra instances will independently assume that all CPU processors are available to it. This setting allows you to specify a smaller set of processors.cassandra.available_processors=<number_of_processors>
If JNA fails to initialize, Cassandra fails to boot. Use this command to boot Cassandra without JNA.cassandra.boot_without_jna=truecassandra.config=<directory>cassandra.yaml file. The default location depends on the type of installation.
Setting this property to true causes the dynamic snitch to ignore the severity indicator from gossip when scoring nodes. Explore failure detection and recovery and dynamic snitching for more information. Default: falsecassandra.ignore_dynamic_snitch_severity=true|false
Use when virtual nodes (vnodes) are not used. Sets the initial partitioner token for a node the first time the node is started. Note: Vnodes are highly recommended as they automatically select tokens. Default: disabledcassandra.initial_token=<token>cassandra.join_ring=true|falsenodetool joinand a JMX call to join the ring afterwards. Default: true
Set to false to clear all gossip state for the node on restart. Default: truecassandra.load_ring_state=true|false
Enable pluggable metrics reporter. Explore pluggable metrics reporting for more information.cassandra.metricsReporterConfigFile=<filename>
Set the partitioner. Default: org.apache.cassandra.dht.Murmur3Partitionercassandra.partitioner=<partitioner>
Set the cache size for prepared statements.cassandra.prepared_statements_cache_size_in_bytes=<cache_size>cassandra.replace_address=<listen_address of dead node>|<broadcast_address of dead node>listen_addressorbroadcast_addressthat the new node is assuming. The new node must not have any data in its data directory, the same state as before bootstrapping. Note: Thebroadcast_addressdefaults to thelisten_addressexcept when using theEc2MultiRegionSnitch.
Allow restoring specific tables from an archived commit log.cassandra.replayList=<table>
Defines the amount of time a node waits to hear from other nodes before formally joining the ring. Default: 1000mscassandra.ring_delay_ms=<number_of_ms>
Set the port on which the CQL native transport listens for clients. Default: 9042cassandra.native_transport_port=<port>
Set the port for the Thrift RPC service, which is used for client connections. Default: 9160cassandra.rpc_port=<port>
Set the port for inter-node communication. Default: 7000cassandra.storage_port=<port>
Set the SSL port for encrypted communication. Default: 7001cassandra.ssl_storage_port=<port>cassandra.start_native_transport=true|falsestart_native_transportincassandra.yaml. Default: true
Enable or disable the Thrift RPC server. Default: truecassandra.start_rpc=true|false
Set the default location for the trigger JARs. Default: conf/triggerscassandra.triggers_dir=<directory>
For testing new compaction and compression strategies. It allows you to experiment with different strategies and benchmark write performance differences without affecting the production workload.cassandra.write_survey=true
Set to true makes Cassandra perform bootstrap safely without violating consistency. False disables this.consistent.rangemovement=true|false
