cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Cassandra Wiki] Update of "HowToDebug" by DaveBrosius
Date Sun, 15 Jan 2012 03:52:45 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Cassandra Wiki" for change notification.

The "HowToDebug" page has been changed by DaveBrosius:
http://wiki.apache.org/cassandra/HowToDebug?action=diff&rev1=8&rev2=9

Comment:
document how to move data file directories to non sudo owned locations for linux

  = How to debug Cassandra in Eclipse =
- 
- {{{
- In order to debug in Eclipse in Linux you may need to launch the Cassandra process with
the sudo account. 
- To do this with Eclipse, you must launch Eclipse with sudo/gksudo. By doing this, processes
launched from
- Eclipse will also be run under that account
- }}}
  
  == Create Project in Eclipse ==
  
@@ -60, +54 @@

  }}}
  
  
+ On Linux systems by default Cassandra write various pieces of data to directories that are
not owned by the normal user. This will cause failures when debugging in eclipse. To address
this you should adjust various settings in the cassandra.yaml and log4j-server.properties
files inside the conf directory to account for this. For debugging purposes you probably want
to place these in some directory(s) under your home directory. 
+ 
+   1. The entries in the cassandra.yaml file that are effected are:
+ 
+     2. data_file_directories
+     2. commitlog_directory
+     2. saved_caches_directory
+ 
+   1. The entries in the cassandra-env.sh file that are effected are:
+   
+     2. JVM_OPTS="$JVM_OPTS -Xloggc
+ 
+   1. The entries in the log4j-server.properties file that are effected are:
+ 
+     2. log4j.appender.R.File
+ 
+ {{{
  Note: You should always build from the command line
- 
+ }}}
  
   
  

Mime
View raw message