I am working on a project where I need to change the source code of Cassandra. I downloaded the source code from the link https://github.com/apache/cassandra and then built using ant and imported into eclipse following the steps of the link http://cassandra.apache.org/doc/latest/development/ide.html . After changing the source code I built it using the command
ant cleanall
It runs perfectly inside the eclipse. However when I export the project outside of Eclipse and try to run using the command
sudo sh bin/cassandra -R
then it runs the previous version of the code and no change reflected. I have googled for solving this problem but still did not find any solution. Please anyone can help me to find the mistake I am doing here. Thanks in advance.
You are just running the clean task. Instead, you should run the ant jar or just run ant which will invoke the default jar target. This will take a full build and start the cassandra from the build directory.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.