Author: [email protected]
Date: Wed Apr 13 10:56:10 2011
New Revision: 962

Log:
[AMDATUCASSANDRA-7] Moved cassandra config from core to cassandra subproject

Added:
   trunk/amdatu-cassandra/config-fileinstall/
   
trunk/amdatu-cassandra/config-fileinstall/org.amdatu.core.cassandra.application.cfg
Removed:
   
trunk/amdatu-core/config-filebased/src/main/resources/conf/org.amdatu.core.cassandra.application.cfg
Modified:
   trunk/amdatu-release/src/main/assembly/bin-component.xml
   trunk/amdatu-release/src/main/assembly/war-component.xml

Added: 
trunk/amdatu-cassandra/config-fileinstall/org.amdatu.core.cassandra.application.cfg
==============================================================================
--- (empty file)
+++ 
trunk/amdatu-cassandra/config-fileinstall/org.amdatu.core.cassandra.application.cfg
 Wed Apr 13 10:56:10 2011
@@ -0,0 +1,84 @@
+# Root work directory of Cassandra log and data files
+workdir=cassandra
+
+# Directory to store Cassandra logfiles
+commitlogdir=work/cassandra/commitlog
+
+# Directory in which the data files are stored
+datafiledir=work/cassandra/data
+
+# Directory in which the caches are saved
+savedcachesdir=work/cassandra/saved_caches
+
+log4j.systemlog=work/cassandra/system.log
+
+###############################
+# Cassandra clustering related properties
+###############################
+
+# Name of the Cassandra cluster to join. If a seed is defined in the 'seeds' 
property
+# that defines a different clustername, a clustername mismatch error will be 
displayed
+# and that seed will not become part of this cluster.
+clustername=${cassandra.clustername}
+
+# Comma separated list of IP addresses of nodes in the cluster to connect to.
+# Note that does not need to be a full listing of all IP addresses of all nodes
+# in the cluster, it may be a subset of it. This property determines with what
+# other nodes in the cluster this node will synchronize its data.
+# When cassandra is executed in stand-alone mode, this value should be 
127.0.0.1
+seeds=${cassandra.seeds}
+
+# The IP address of this node that other cassandra nodes will use to connect 
to.
+# This IP address must thus be accessible from the other nodes in the cluster 
(to
+# be precise; those that provided this node as one of its seeds).
+# When cassandra is executed in stand-alone mode, this value should be 
localhost
+listen_address=${cassandra.listen_address}
+
+# The default replication factor of new keyspaces. The replication factor 
determines
+# the amount of nodes on which data is replicated. So if 
default_replication_factor
+# equals 1 and you have a two-node cluster, it is very likely that you will 
get timeouts
+# as it will try to read data only stored on the other node (data is 
distributed among
+# the two nodes). In case all data should be available on all nodes in the 
cluster, which
+# is necessary in case the node should also be able to run stand-alone, the 
replication
+# factor should equal the number of nodes in the cluster.
+# Note that upon the very first boot of a node, the replication factor must be 
1 as the
+# replication factor may never be higher then the amount of nodes in the 
cluster. Usually
+# the replication factor upon first boot is always 1, to be increased at 
runtime.
+default_replication_factor=${cassandra.default_replication_factor}
+
+# The read consistency level to apply. The read consistencly level determines 
the
+# amount of nodes in the cluster that must reply on a request for providing 
the latest
+# version of some row before the result is returned. Note that if the read 
consistency
+# level is ALL, all nodes in the cluster are effectively down as soon as one 
node in
+# the cluster goes down, as cassandra will block until it received an answer 
from
+# this (unavailable) node before returning the result.
+consistency_level_read=${cassandra.consistency_level_read}
+
+# The write consistency level to apply. The write consistencly level 
determines the
+# amount of nodes in the cluster that should have received the write request 
operation
+# before the call is returned. Note that if the write consistency level is 
ALL, all
+# nodes in the cluster are effectively down as soon as one node in the cluster 
goes
+# down, as cassandra will block each write operation until this (unavailable) 
node
+# answered.
+consistency_level_write=${cassandra.consistency_level_write}
+
+# Auto bootstrap should be enabled for nodes that are newly added to an 
existing Cassandra
+# cluster. After that, autobootstrap must be set to false
+autobootstrap=${cassandra.autobootstrap}
+
+# You may leave this field blank in case of a single node cluster. However if 
you plan
+# to later build a cluster including this first instance, it is recommended to 
set the
+# initial token�s value to zero. This simplifies load balancing as you later 
expand the
+# cluster.
+initial_token=${cassandra.initial_token}
+
+# The address to bind the Thrift RPC service to -- clients connect here.
+# Usually this is the same value as the listen_address. If you leave this
+# blank that is exactly what will happen, so it is recommended to leave this 
empty
+rpc_address=${cassandra.rpc_address}
+
+# port for Thrift to listen for clients on
+rpc_port=${cassandra.rpc_port}
+
+# storage port
+storage_port=${cassandra.storage_port}
\ No newline at end of file

Modified: trunk/amdatu-release/src/main/assembly/bin-component.xml
==============================================================================
--- trunk/amdatu-release/src/main/assembly/bin-component.xml    (original)
+++ trunk/amdatu-release/src/main/assembly/bin-component.xml    Wed Apr 13 
10:56:10 2011
@@ -119,6 +119,11 @@
       <outputDirectory>${deploy.directory.name}</outputDirectory>
       <filtered>true</filtered>
     </fileSet>
+    <fileSet>
+      <directory>../amdatu-cassandra/config-fileinstall</directory>
+      <outputDirectory>${deploy.directory.name}</outputDirectory>
+      <filtered>true</filtered>
+    </fileSet>
   </fileSets>
 
 </component>
\ No newline at end of file

Modified: trunk/amdatu-release/src/main/assembly/war-component.xml
==============================================================================
--- trunk/amdatu-release/src/main/assembly/war-component.xml    (original)
+++ trunk/amdatu-release/src/main/assembly/war-component.xml    Wed Apr 13 
10:56:10 2011
@@ -110,6 +110,11 @@
       <outputDirectory>amdatu/deploy</outputDirectory>
       <filtered>true</filtered>
     </fileSet>
+    <fileSet>
+      <directory>../amdatu-cassandra/config-fileinstall</directory>
+      <outputDirectory>${deploy.directory.name}</outputDirectory>
+      <filtered>true</filtered>
+    </fileSet>
   </fileSets>
 
 </component>
\ No newline at end of file
_______________________________________________
Amdatu-commits mailing list
[email protected]
http://lists.amdatu.org/mailman/listinfo/amdatu-commits

Reply via email to