mirror of https://github.com/apache/cassandra
fix line endings
git-svn-id: https://svn.apache.org/repos/asf/incubator/cassandra/trunk@785436 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a48110e815
commit
a102a3e73a
|
|
@ -17,133 +17,133 @@
|
||||||
~ under the License.
|
~ under the License.
|
||||||
-->
|
-->
|
||||||
<Storage>
|
<Storage>
|
||||||
<!--======================================================================-->
|
<!--======================================================================-->
|
||||||
<!-- Basic Configuration -->
|
<!-- Basic Configuration -->
|
||||||
<!--======================================================================-->
|
<!--======================================================================-->
|
||||||
<ClusterName>Test Cluster</ClusterName>
|
<ClusterName>Test Cluster</ClusterName>
|
||||||
|
|
||||||
<!-- Tables and ColumnFamilies -->
|
<!-- Tables and ColumnFamilies -->
|
||||||
<Tables>
|
<Tables>
|
||||||
<Table Name="Table1">
|
<Table Name="Table1">
|
||||||
<!-- if FlushPeriodInMinutes is configured and positive, it will be
|
<!-- if FlushPeriodInMinutes is configured and positive, it will be
|
||||||
flushed to disk with that period whether it is dirty or not.
|
flushed to disk with that period whether it is dirty or not.
|
||||||
This is intended for lightly-used columnfamilies so that they
|
This is intended for lightly-used columnfamilies so that they
|
||||||
do not prevent commitlog segments from being purged. -->
|
do not prevent commitlog segments from being purged. -->
|
||||||
<ColumnFamily ColumnSort="Name" Name="Standard1" FlushPeriodInMinutes="60"/>
|
<ColumnFamily ColumnSort="Name" Name="Standard1" FlushPeriodInMinutes="60"/>
|
||||||
<ColumnFamily ColumnSort="Name" Name="Standard2"/>
|
<ColumnFamily ColumnSort="Name" Name="Standard2"/>
|
||||||
<ColumnFamily ColumnSort="Time" Name="StandardByTime1"/>
|
<ColumnFamily ColumnSort="Time" Name="StandardByTime1"/>
|
||||||
<ColumnFamily ColumnSort="Time" Name="StandardByTime2"/>
|
<ColumnFamily ColumnSort="Time" Name="StandardByTime2"/>
|
||||||
<ColumnFamily ColumnType="Super" ColumnSort="Name" Name="Super1"/>
|
<ColumnFamily ColumnType="Super" ColumnSort="Name" Name="Super1"/>
|
||||||
<ColumnFamily ColumnType="Super" ColumnSort="Name" Name="Super2"/>
|
<ColumnFamily ColumnType="Super" ColumnSort="Name" Name="Super2"/>
|
||||||
</Table>
|
</Table>
|
||||||
</Tables>
|
</Tables>
|
||||||
|
|
||||||
<!-- Partitioner: any IPartitioner may be used, including your own
|
<!-- Partitioner: any IPartitioner may be used, including your own
|
||||||
as long as it is on the classpath. Out of the box,
|
as long as it is on the classpath. Out of the box,
|
||||||
Cassandra provides
|
Cassandra provides
|
||||||
org.apache.cassandra.dht.RandomPartitioner and
|
org.apache.cassandra.dht.RandomPartitioner and
|
||||||
org.apache.cassandra.dht.OrderPreservingPartitioner.
|
org.apache.cassandra.dht.OrderPreservingPartitioner.
|
||||||
Range queries require using OrderPreservingPartitioner or a subclass.
|
Range queries require using OrderPreservingPartitioner or a subclass.
|
||||||
|
|
||||||
Achtung! Changing this parameter requires wiping your data directories,
|
Achtung! Changing this parameter requires wiping your data directories,
|
||||||
since the partitioner can modify the sstable on-disk format.
|
since the partitioner can modify the sstable on-disk format.
|
||||||
-->
|
-->
|
||||||
<Partitioner>org.apache.cassandra.dht.RandomPartitioner</Partitioner>
|
<Partitioner>org.apache.cassandra.dht.RandomPartitioner</Partitioner>
|
||||||
|
|
||||||
<!-- If you are using the OrderPreservingPartitioner and you know your key
|
<!-- If you are using the OrderPreservingPartitioner and you know your key
|
||||||
distribution, you can specify the token for this node to use.
|
distribution, you can specify the token for this node to use.
|
||||||
(Keys are sent to the node with the "closest" token, so distributing
|
(Keys are sent to the node with the "closest" token, so distributing
|
||||||
your tokens equally along the key distribution space will spread
|
your tokens equally along the key distribution space will spread
|
||||||
keys evenly across your cluster.) This setting is only checked the
|
keys evenly across your cluster.) This setting is only checked the
|
||||||
first time a node is started.
|
first time a node is started.
|
||||||
|
|
||||||
This can also be useful with RandomPartitioner to force equal
|
This can also be useful with RandomPartitioner to force equal
|
||||||
spacing of tokens around the hash space, especially for
|
spacing of tokens around the hash space, especially for
|
||||||
clusters with a small number of nodes. -->
|
clusters with a small number of nodes. -->
|
||||||
<InitialToken></InitialToken>
|
<InitialToken></InitialToken>
|
||||||
|
|
||||||
<!-- RackAware: Setting this to true instructs Cassandra to try and place the replicas in
|
<!-- RackAware: Setting this to true instructs Cassandra to try and place the replicas in
|
||||||
a different rack in the same datacenter and one in a different datacenter
|
a different rack in the same datacenter and one in a different datacenter
|
||||||
-->
|
-->
|
||||||
<RackAware>false</RackAware>
|
<RackAware>false</RackAware>
|
||||||
|
|
||||||
<!-- Number of replicas of the data-->
|
<!-- Number of replicas of the data-->
|
||||||
<ReplicationFactor>1</ReplicationFactor>
|
<ReplicationFactor>1</ReplicationFactor>
|
||||||
|
|
||||||
<!-- Directories: Specify where Cassandra should store different data on disk
|
<!-- Directories: Specify where Cassandra should store different data on disk
|
||||||
Keep the data disks and the CommitLog disks separate for best performance
|
Keep the data disks and the CommitLog disks separate for best performance
|
||||||
-->
|
-->
|
||||||
<CommitLogDirectory>/var/cassandra/commitlog</CommitLogDirectory>
|
<CommitLogDirectory>/var/cassandra/commitlog</CommitLogDirectory>
|
||||||
<MetadataDirectory>/var/cassandra/system</MetadataDirectory>
|
<MetadataDirectory>/var/cassandra/system</MetadataDirectory>
|
||||||
<DataFileDirectories>
|
<DataFileDirectories>
|
||||||
<DataFileDirectory>/var/cassandra/data</DataFileDirectory>
|
<DataFileDirectory>/var/cassandra/data</DataFileDirectory>
|
||||||
</DataFileDirectories>
|
</DataFileDirectories>
|
||||||
<CalloutLocation>/var/cassandra/callouts</CalloutLocation>
|
<CalloutLocation>/var/cassandra/callouts</CalloutLocation>
|
||||||
<BootstrapFileDirectory>/var/cassandra/bootstrap</BootstrapFileDirectory>
|
<BootstrapFileDirectory>/var/cassandra/bootstrap</BootstrapFileDirectory>
|
||||||
<StagingFileDirectory>/var/cassandra/staging</StagingFileDirectory>
|
<StagingFileDirectory>/var/cassandra/staging</StagingFileDirectory>
|
||||||
|
|
||||||
|
|
||||||
<!-- Add names of hosts that are deemed contact points. Cassandra nodes use
|
<!-- Add names of hosts that are deemed contact points. Cassandra nodes use
|
||||||
this list of hosts to find each other and learn the topology of the ring.
|
this list of hosts to find each other and learn the topology of the ring.
|
||||||
-->
|
-->
|
||||||
<Seeds>
|
<Seeds>
|
||||||
<Seed>127.0.0.1</Seed>
|
<Seed>127.0.0.1</Seed>
|
||||||
</Seeds>
|
</Seeds>
|
||||||
|
|
||||||
<!-- Miscellaneous -->
|
<!-- Miscellaneous -->
|
||||||
<RpcTimeoutInMillis>5000</RpcTimeoutInMillis>
|
<RpcTimeoutInMillis>5000</RpcTimeoutInMillis>
|
||||||
<CommitLogRotationThresholdInMB>128</CommitLogRotationThresholdInMB>
|
<CommitLogRotationThresholdInMB>128</CommitLogRotationThresholdInMB>
|
||||||
<CommitLogFastSync>false</CommitLogFastSync>
|
<CommitLogFastSync>false</CommitLogFastSync>
|
||||||
|
|
||||||
<!-- Hosts and Ports -->
|
<!-- Hosts and Ports -->
|
||||||
<ListenAddress>localhost</ListenAddress>
|
<ListenAddress>localhost</ListenAddress>
|
||||||
<StoragePort>7000</StoragePort>
|
<StoragePort>7000</StoragePort>
|
||||||
<ControlPort>7001</ControlPort>
|
<ControlPort>7001</ControlPort>
|
||||||
<ThriftPort>9160</ThriftPort>
|
<ThriftPort>9160</ThriftPort>
|
||||||
<HttpPort>7002</HttpPort>
|
<HttpPort>7002</HttpPort>
|
||||||
|
|
||||||
|
|
||||||
<!--======================================================================-->
|
<!--======================================================================-->
|
||||||
<!-- Memory, Disk, and Performance -->
|
<!-- Memory, Disk, and Performance -->
|
||||||
<!--======================================================================-->
|
<!--======================================================================-->
|
||||||
|
|
||||||
<!-- Threshold for adding a column index in a row -->
|
<!-- Threshold for adding a column index in a row -->
|
||||||
<ColumnIndexSizeInKB>256</ColumnIndexSizeInKB>
|
<ColumnIndexSizeInKB>256</ColumnIndexSizeInKB>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
The maximum amount of data to store in memory before flushing to
|
The maximum amount of data to store in memory before flushing to
|
||||||
disk. Note: There is one memtable per column family, and this threshold
|
disk. Note: There is one memtable per column family, and this threshold
|
||||||
is based solely on the amount of data stored, not actual heap memory
|
is based solely on the amount of data stored, not actual heap memory
|
||||||
usage (there is some overhead in indexing the columns).
|
usage (there is some overhead in indexing the columns).
|
||||||
-->
|
-->
|
||||||
<MemtableSizeInMB>32</MemtableSizeInMB>
|
<MemtableSizeInMB>32</MemtableSizeInMB>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
The maximum number of columns in millions to store in memory
|
The maximum number of columns in millions to store in memory
|
||||||
before flushing to disk. This is also a per-memtable setting.
|
before flushing to disk. This is also a per-memtable setting.
|
||||||
Use with MemtableSizeInMB to tune memory usage.
|
Use with MemtableSizeInMB to tune memory usage.
|
||||||
-->
|
-->
|
||||||
<MemtableObjectCountInMillions>0.02</MemtableObjectCountInMillions>
|
<MemtableObjectCountInMillions>0.02</MemtableObjectCountInMillions>
|
||||||
|
|
||||||
<!-- Time to wait before garbage-collection deletion markers.
|
<!-- Time to wait before garbage-collection deletion markers.
|
||||||
Set this to a large enough value that you are confident
|
Set this to a large enough value that you are confident
|
||||||
that the deletion marker will be propagated to all replicas
|
that the deletion marker will be propagated to all replicas
|
||||||
by the time this many seconds has elapsed, even in the
|
by the time this many seconds has elapsed, even in the
|
||||||
face of hardware failures. The default value is ten days.
|
face of hardware failures. The default value is ten days.
|
||||||
-->
|
-->
|
||||||
<GCGraceSeconds>864000</GCGraceSeconds>
|
<GCGraceSeconds>864000</GCGraceSeconds>
|
||||||
|
|
||||||
|
|
||||||
<!--======================================================================-->
|
<!--======================================================================-->
|
||||||
<!-- OPTIONAL -->
|
<!-- OPTIONAL -->
|
||||||
<!--======================================================================-->
|
<!--======================================================================-->
|
||||||
<!-- This final section contains configuration information for optional
|
<!-- This final section contains configuration information for optional
|
||||||
and experimental features in Cassandra that are not yet fully functional.
|
and experimental features in Cassandra that are not yet fully functional.
|
||||||
Basic features in Cassandra should work fine without configuring this section.
|
Basic features in Cassandra should work fine without configuring this section.
|
||||||
-->
|
-->
|
||||||
<ZookeeperAddress>127.0.0.1</ZookeeperAddress>
|
<ZookeeperAddress>127.0.0.1</ZookeeperAddress>
|
||||||
<MulticastChannel>230.0.0.1</MulticastChannel>
|
<MulticastChannel>230.0.0.1</MulticastChannel>
|
||||||
<GangliaServers>
|
<GangliaServers>
|
||||||
<GangliaServer>127.0.0.1:12000</GangliaServer>
|
<GangliaServer>127.0.0.1:12000</GangliaServer>
|
||||||
</GangliaServers>
|
</GangliaServers>
|
||||||
</Storage>
|
</Storage>
|
||||||
|
|
|
||||||
|
|
@ -16,44 +16,44 @@
|
||||||
~ specific language governing permissions and limitations
|
~ specific language governing permissions and limitations
|
||||||
~ under the License.
|
~ under the License.
|
||||||
-->
|
-->
|
||||||
<Storage>
|
<Storage>
|
||||||
<ClusterName>Test Cluster</ClusterName>
|
<ClusterName>Test Cluster</ClusterName>
|
||||||
<Partitioner>org.apache.cassandra.dht.OrderPreservingPartitioner</Partitioner>
|
<Partitioner>org.apache.cassandra.dht.OrderPreservingPartitioner</Partitioner>
|
||||||
<RackAware>false</RackAware>
|
<RackAware>false</RackAware>
|
||||||
<MulticastChannel>230.0.0.1</MulticastChannel>
|
<MulticastChannel>230.0.0.1</MulticastChannel>
|
||||||
<ReplicationFactor>1</ReplicationFactor>
|
<ReplicationFactor>1</ReplicationFactor>
|
||||||
<ZookeeperAddress>127.0.0.1</ZookeeperAddress>
|
<ZookeeperAddress>127.0.0.1</ZookeeperAddress>
|
||||||
<RpcTimeoutInMillis>5000</RpcTimeoutInMillis>
|
<RpcTimeoutInMillis>5000</RpcTimeoutInMillis>
|
||||||
<ListenAddress>127.0.0.1</ListenAddress>
|
<ListenAddress>127.0.0.1</ListenAddress>
|
||||||
<StoragePort>7000</StoragePort>
|
<StoragePort>7000</StoragePort>
|
||||||
<ControlPort>7001</ControlPort>
|
<ControlPort>7001</ControlPort>
|
||||||
<ThriftPort>9160</ThriftPort>
|
<ThriftPort>9160</ThriftPort>
|
||||||
<ColumnIndexSizeInKB>4</ColumnIndexSizeInKB>
|
<ColumnIndexSizeInKB>4</ColumnIndexSizeInKB>
|
||||||
<HttpPort>7002</HttpPort>
|
<HttpPort>7002</HttpPort>
|
||||||
<MetadataDirectory>build/test/cassandra/system</MetadataDirectory>
|
<MetadataDirectory>build/test/cassandra/system</MetadataDirectory>
|
||||||
<CommitLogDirectory>build/test/cassandra/commitlog</CommitLogDirectory>
|
<CommitLogDirectory>build/test/cassandra/commitlog</CommitLogDirectory>
|
||||||
<CommitLogRotationThresholdInMB>128</CommitLogRotationThresholdInMB>
|
<CommitLogRotationThresholdInMB>128</CommitLogRotationThresholdInMB>
|
||||||
<DataFileDirectories>
|
<DataFileDirectories>
|
||||||
<DataFileDirectory>build/test/cassandra/data</DataFileDirectory>
|
<DataFileDirectory>build/test/cassandra/data</DataFileDirectory>
|
||||||
</DataFileDirectories>
|
</DataFileDirectories>
|
||||||
<CalloutLocation>build/test/cassandra/callouts</CalloutLocation>
|
<CalloutLocation>build/test/cassandra/callouts</CalloutLocation>
|
||||||
<BootstrapFileDirectory>build/test/cassandra/bootstrap</BootstrapFileDirectory>
|
<BootstrapFileDirectory>build/test/cassandra/bootstrap</BootstrapFileDirectory>
|
||||||
<StagingFileDirectory>build/test/cassandra/staging</StagingFileDirectory>
|
<StagingFileDirectory>build/test/cassandra/staging</StagingFileDirectory>
|
||||||
<CommitLogFastSync>false</CommitLogFastSync>
|
<CommitLogFastSync>false</CommitLogFastSync>
|
||||||
<MemtableSizeInMB>1</MemtableSizeInMB>
|
<MemtableSizeInMB>1</MemtableSizeInMB>
|
||||||
<MemtableObjectCountInMillions>0.00002</MemtableObjectCountInMillions> <!-- 20 -->
|
<MemtableObjectCountInMillions>0.00002</MemtableObjectCountInMillions> <!-- 20 -->
|
||||||
<Tables>
|
<Tables>
|
||||||
<Table Name = "Table1">
|
<Table Name = "Table1">
|
||||||
<ColumnFamily ColumnSort="Name" Name="Standard1"/>
|
<ColumnFamily ColumnSort="Name" Name="Standard1"/>
|
||||||
<ColumnFamily ColumnSort="Name" Name="Standard2"/>
|
<ColumnFamily ColumnSort="Name" Name="Standard2"/>
|
||||||
<ColumnFamily ColumnSort="Time" Name="StandardByTime1"/>
|
<ColumnFamily ColumnSort="Time" Name="StandardByTime1"/>
|
||||||
<ColumnFamily ColumnSort="Time" Name="StandardByTime2"/>
|
<ColumnFamily ColumnSort="Time" Name="StandardByTime2"/>
|
||||||
<ColumnFamily ColumnType="Super" ColumnSort="Name" Name="Super1"/>
|
<ColumnFamily ColumnType="Super" ColumnSort="Name" Name="Super1"/>
|
||||||
<ColumnFamily ColumnType="Super" ColumnSort="Name" Name="Super2"/>
|
<ColumnFamily ColumnType="Super" ColumnSort="Name" Name="Super2"/>
|
||||||
</Table>
|
</Table>
|
||||||
</Tables>
|
</Tables>
|
||||||
<Seeds>
|
<Seeds>
|
||||||
<!-- Add names of hosts that are deemed contact points -->
|
<!-- Add names of hosts that are deemed contact points -->
|
||||||
<Seed>127.0.0.1</Seed>
|
<Seed>127.0.0.1</Seed>
|
||||||
</Seeds>
|
</Seeds>
|
||||||
</Storage>
|
</Storage>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue