0
@@ -39,7 +39,7 @@ public class DatabaseDescriptor
0
private static int thriftPort_ = 9160;
0
private static String clusterName_ = "Test";
0
private static int replicationFactor_ = 3;
0
- private static long rpcTimeoutInMillis_ =
2000;
0
+ private static long rpcTimeoutInMillis_ =
5000;
0
private static Set<String> seeds_ = new HashSet<String>();
0
private static String multicastAddr_ = "230.0.0.1";
0
private static String metadataDirectory_;
0
@@ -61,7 +61,7 @@ public class DatabaseDescriptor
0
private static Map<String, String> cfToColumnTypeMap_ = new HashMap<String, String>();
0
private static Map<String, String> cfToIndexPropertyMap_ = new HashMap<String, String>();
0
/* if the size of columns or super-columns are more than this, indexing will kick in */
0
- private static int columnIndexSizeInKB_
;
0
+ private static int columnIndexSizeInKB_
= 256;
0
/* Size of touch key cache */
0
private static int touchKeyCacheSize_ = 1024;
0
/* Number of hours to keep a memtable in memory */
0
@@ -158,14 +158,8 @@ public class DatabaseDescriptor
0
/* read the size at which we should do column indexes */
0
String columnIndexSizeInKB = xmlUtils.getNodeValue(rootNode, "ColumnIndexSizeInKB");
0
- if(columnIndexSizeInKB == null)
0
- columnIndexSizeInKB_ = 64;
0
- columnIndexSizeInKB_ = Integer.parseInt(columnIndexSizeInKB);
0
+ if(columnIndexSizeInKB != null)
0
+ columnIndexSizeInKB_ = Integer.parseInt(columnIndexSizeInKB);
0
/* metadata directory */
0
metadataDirectory_ = xmlUtils.getNodeValue(rootNode, "MetadataDirectory");
0
@@ -175,7 +169,7 @@ public class DatabaseDescriptor
0
if ( os.equals("Linux") )
0
- metadataDirectory_ = "/var/
storage/system";
0
+ metadataDirectory_ = "/var/
cassandra/system";
0
@@ -190,7 +184,7 @@ public class DatabaseDescriptor
0
if ( os.equals("Linux") )
0
- dataFileDirectories_ = new String[]{"/var/
storage/data"};
0
+ dataFileDirectories_ = new String[]{"/var/
cassandra/data"};
0
@@ -202,11 +196,11 @@ public class DatabaseDescriptor
0
if ( os.equals("Linux") )
0
- bootstrapFileDirectory_ = "/var/
storage/bootstrap";
0
+ bootstrapFileDirectory_ = "/var/
cassandra/bootstrap";
0
- /*
bootstrap file directory */
0
+ /*
staging file directory */
0
stagingFileDirectory_ = xmlUtils.getNodeValue(rootNode, "StagingFileDirectory");
0
if ( stagingFileDirectory_ != null )
0
FileUtils.createDirectory(stagingFileDirectory_);
0
@@ -214,7 +208,7 @@ public class DatabaseDescriptor
0
if ( os.equals("Linux") )
0
- stagingFileDirectory_ = "/var/
storage/staging";
0
+ stagingFileDirectory_ = "/var/
cassandra/staging";
0
@@ -226,7 +220,7 @@ public class DatabaseDescriptor
0
if ( os.equals("Linux") )
0
- logFileDirectory_ = "/var/
storage/commitlog";
0
+ logFileDirectory_ = "/var/
cassandra/commitlog";
Comments
No one has commented yet.