On Jul 10, 2013, at 3:04 PM, John Sanda <jsanda(a)redhat.com> wrote:
>
> On Jul 10, 2013, at 11:05 AM, John Sanda <jsanda(a)redhat.com> wrote:
>
>> I am in the process of removing native library dependencies from the Cassandra
distribution we package with RHQ. This may impact RHQ 4.8 users as well as your
dev-container. If Cassandra can load the native snappy library, which is the default
compression library, it will use compression on all tables unless explicitly configured
otherwise. We need to make sure compression is disabled on all tables. I have written a
script in <rhq-src>/etc/scripts/rhq48-storage-patch that will temporarily apply a
patch to your storage node so that compression can be turned off on all tables, including
system tables.
>>
>> Prior to committing/pushing the storage node changes, I reply to this email with
instructions for running the script against your dev-container. The instructions will
require rebuilding your dev-container; however, I have also made changes that allow the
storage data directory to be left intact so you do not have to worry about data loss.
>>
>
> Here are instructions for patching the dev-container.
>
> 1. Run rhqctl stop to shutdown server, agent, and storage node
>
> 2. In a terminal, cd to <rhq-src>/etc/scripts/rhq48-storage-patch
>
> 3. Execute the patch script
>
> $ ./rhq48-storage-patch.sh <rhq-server-dir> 127.0.0.1 9142 7299
>
> The first argument should be the path to <dev-container>/rhq-server. The second
argument is the storage node IP address. The 3rd argument is the CQL port, and last
argument is the JMX port.
>
> 4. After the script finishes and you pull my changes to the storage node, you can go
ahead and rebuild the dev-container. You *do not* have to delete your storage data
directory. The storage installer and dev-container build have been updated to allow you to
install with non-empty data directories.
>
>
> [1]
https://git.fedorahosted.org/cgit/rhq/rhq.git/commit/?id=d124d45891200906...
> _______________________________________________
> rhq-devel mailing list
> rhq-devel(a)lists.fedorahosted.org
>
https://lists.fedorahosted.org/mailman/listinfo/rhq-devel
I have pushed a change to the script to fix a bug. It was referencing $TMPDIR which might
not be defined on all platforms. That environment variable is no longer referenced.
I just pushed another, major fix[2] to the patch script. There was a problem with how it
was regenerating sstable data files. Data files with compression were not getting deleted
and on restart (after replacing snappy-java) Cassandra would fail to open those files. The
issue should be resolved now.
[2]