Apache Cassandra™ 10 Documentation February 16, 2012
Dropping Column Families and Keyspaces 68 Configuration 68 Node and Cluster Configuration (cassandra.yaml) 68 Node and Cluster Initialization Properties 70 auto_bootstrap 70 broadcast_address 70 cluster_name Set the configuration properties needed to start your cluster in the $CASSANDRA_HOME/conf/cassandra.yaml file. This will configure Cassandra to run a single-node cluster on the localhost and store all of initial_token: 0," \ $CASSANDRA_HOME/conf/cassandra.yaml $ sed -i -e "s,- /var/lib/cassandra/data,- $HOME/datastax/cassandra-data," \ $CASSANDRA_HOME/conf/cassandra.yaml $ sed -i -e "s,saved_caches_directory:0 码力 | 141 页 | 2.52 MB | 1 年前3Apache Cassandra 快速入门指南(Quick Start)
客户端。同时还包含运行 nodetool 的相关脚本,操作 SSTables 的工具等等。 conf:这个目录下面包含了 Cassandra 的配置文件。必须包含的配置文件包括:assandra.yaml 以及 logback.xml,这两个文件分别是运行 Cassandra 必须包含的配置文件以及日志相关配置文件。同时还包含 Cassandra 网络拓扑配置文件等。 doc:这个目录包含 CQL 经启动了 Cassandra 服务,所以 cqlsh 可以正确连接到这个集群。从上面的命令可以看出 cqlsh 连接到名为 Test Cluster 的集群,这是由 conf/cassandra.yaml 文件里面的 cluster_name 参数决定的,默认值为 Test Cluster。 当然,我们也可以在启动 cqlsh 的时候指定节点和相应的端口,如下: [iteblog@www.iteblog0 码力 | 11 页 | 0 Bytes | 1 年前3
共 2 条
- 1