The error you are seeing is occurring when the package is built.
But the changes you are making to address the problem are in the %pre section of the package, which runs when the package is installed on the target system.
Your changes might have the desired affect (creating the user/group) when the package is installed. But you cannot test that until you first address the build-time problem.
The build time problem is most likely occurring because the 'cassandra' user does not exist on the build system. You should not try to change ownership of files during a package build. Instead, use the %attr modifier in the %files section to indicate the file attributes.
See: http://www.rpm.org/max-rpm/s1-rpm-anywhere-specifying-file-attributes.html