Hi, I am trying to change some values in conf file and start Cassandra using the following script ########################################################################################################################################### #Add IP of machine to ListnerAddress tag and seed value in seed tag IP=`/sbin/ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}'` sed -e "s/<ListenAddress>/<ListenAddress>$IP/g" -e s/127.0.0.1/$IP/g -e "s/<ReplicationFactor>1/<ReplicationFactor>3/g" /opt/cassandra/conf/storage-conf.xml.template > /opt/cassandra/conf/storage-conf.xml echo Added LISTEN ADDRESS ${IP} >> /tmp/add_cassandra.log echo Added SEED ${IP} >> /tmp/add_cassandra.log
rm -rf /var/cassandra/*/* ########################################################################################################################################### #start cassandra /opt/cassandra/bin/cassandra echo "Started cassandra server" >> /tmp/add_cassandra.log Error encountered: -bash-3.2# Listening for transport dt_socket at address: 8888 DEBUG - Loading settings from /opt/cassandra/bin/../conf/storage-conf.xml DEBUG - Syncing log with a period of 1000 Exception in thread "main" java.lang.ExceptionInInitializerError at java.lang.J9VMInternals.initialize(J9VMInternals.java:222) at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:60) at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:172) Caused by: java.lang.RuntimeException: java.lang.NullPointerException at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:585) at java.lang.J9VMInternals.initializeImpl(Native Method) at java.lang.J9VMInternals.initialize(J9VMInternals.java:200) ... 2 more Caused by: java.lang.NullPointerException at org.apache.cassandra.utils.XMLUtils.getNodeValues(XMLUtils.java:73) at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:571) ... 4 more Please let me know if I am missing something here. Thanks & Regards, Shreya Chakravarty DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.