mirror of https://github.com/apache/cassandra
As part of a broader effort to decouple java driver code from the server code, this moves sstableloader to its own tools directory. As sstableloader is also used as a library (CASSANDRA-10637), added a new artifact 'cassandra-sstableloader' that will get deployed to maven along with 'cassandra-all'. While I expect this is likely a niche use case, this will allow users to continue using BulkExport as a library. Moves sstableloader-specific targets to its own build.xml in tools/sstableloader/build.xml. Also updates IDE project files and circleci to utilize new sstableloader-specific targets. patch by Andy Tolbert; reviewed by Stefan Miklosovic and Mick Semb Wever for CASSANDRA-20328 |
||
|---|---|---|
| .. | ||
| README.md | ||
| cassandra | ||
| cassandra.conf | ||
| cassandra.in.sh | ||
| cassandra.spec | ||
| default | ||
README.md
Apache Cassandra rpmbuild
Requirements:
- The build system needs to have Apache Cassandra
ant artifactsbuild dependencies installed. - Since Apache Cassandra depends on Python 2.7, the earliest version supported is RHEL/CentOS 7.0.
Step 1:
- Build and copy sources to build tree:
ant artifacts -Drelease=true
Step 2:
- Since there is no version specified in the SPEC file, one needs to be passed at
rpmbuildtime (example with 4.0):
mkdir -p build/rpmbuild/{BUILD,RPMS,SPECS,SRPMS}
rpmbuild --define="version 4.0" \
--define="revision $(date +"%Y%m%d")git$(git rev-parse --short HEAD)%{?dist}" \
--define "_topdir $(pwd)/build/rpmbuild" \
--define "_sourcedir $(pwd)/build" \
-ba redhat/cassandra.spec
Use revision value in the example above for git based snapshots. Change to --define="revision 1" for non-snapshot releases.
- RPM files can be found in their respective build tree directories:
ls -l build/rpmbuild/{SRPMS,RPMS}/
Hint:
- Don't build packages as root..