I have the latest source code of Cassandra.
I have done some changes to the cassandra code to meet my needs.
Now I want to package this Cassandra into the debian package so that I can easily install it.
I do not have much knowledge about debian and all. Can anyone explain the step by step procedure for the same?
Assuming that you already have all the build dependencies, all you need to do is run this command from the Cassandra root directory:
$ dpkg-buildpackage -uc -us
It is strongly recommended that you build it with the OracleJDK instead of OpenJDK. There is a bug with certain versions of OpenJDK that will cause the build to fail.
All of this information is available on the Cassandra Wiki.