<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>Raymond P. Burkholder - Things I Do - Cassandra</title>
    <link>https://blog.raymond.burkholder.net/</link>
    <description>In And Around Technology and The Arts</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.7.2 - http://www.s9y.org/</generator>
    <pubDate>Fri, 02 Aug 2019 17:07:05 GMT</pubDate>

    <image>
        <url>https://blog.raymond.burkholder.net/templates/bulletproof/img/s9y_banner_small.png</url>
        <title>RSS: Raymond P. Burkholder - Things I Do - Cassandra - In And Around Technology and The Arts</title>
        <link>https://blog.raymond.burkholder.net/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Replace Dead Cassandra Node</title>
    <link>https://blog.raymond.burkholder.net/index.php?/archives/1012-Replace-Dead-Cassandra-Node.html</link>
            <category>Cassandra</category>
    
    <comments>https://blog.raymond.burkholder.net/index.php?/archives/1012-Replace-Dead-Cassandra-Node.html#comments</comments>
    <wfw:comment>https://blog.raymond.burkholder.net/wfwcomment.php?cid=1012</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.raymond.burkholder.net/rss.php?version=2.0&amp;type=comments&amp;cid=1012</wfw:commentRss>
    

    <author>nospam@example.com (Raymond P. Burkholder)</author>
    <content:encoded>
    &lt;p&gt;To test Cassandra replication, I removed a container containing a Cassandra node.  Then rebuilt the container.  To attach the Cassandra node using an existing/replaced address, using instructions from &lt;a href=&quot;https://blog.alteroot.org/articles/2014-03-12/replace-a-dead-node-in-cassandra.html&quot; target=_blank&gt;Replace a dead node in Cassandra&lt;/a&gt;, the trick is to add

&lt;blockquote&gt;
JVM_OPTS=&quot;$JVM_OPTS -Dcassandra.replace_address=x,x,x,x&quot; 
&lt;/blockquote&gt;

&lt;p&gt;to the end of /etc/cassandra/cassandra-env.sh, and remove the line after the node has re-connected. 
    </content:encoded>

    <pubDate>Fri, 02 Aug 2019 17:07:05 +0000</pubDate>
    <guid isPermaLink="false">https://blog.raymond.burkholder.net/index.php?/archives/1012-guid.html</guid>
    
</item>
<item>
    <title>Debian Install Cassandra with .deb on Buster</title>
    <link>https://blog.raymond.burkholder.net/index.php?/archives/1011-Debian-Install-Cassandra-with-.deb-on-Buster.html</link>
            <category>Cassandra</category>
    
    <comments>https://blog.raymond.burkholder.net/index.php?/archives/1011-Debian-Install-Cassandra-with-.deb-on-Buster.html#comments</comments>
    <wfw:comment>https://blog.raymond.burkholder.net/wfwcomment.php?cid=1011</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.raymond.burkholder.net/rss.php?version=2.0&amp;type=comments&amp;cid=1011</wfw:commentRss>
    

    <author>nospam@example.com (Raymond P. Burkholder)</author>
    <content:encoded>
    A manual method is used as the cassandra pool is behind a number of redirects and apt-cacher-ng does not seem to handle the interactions properly.

&lt;blockquote&gt;&lt;pre&gt;
# dpkg -i cassandra_3.11.4_all.deb 
Selecting previously unselected package cassandra.
(Reading database ... 12644 files and directories currently installed.)
Preparing to unpack cassandra_3.11.4_all.deb ...
Unpacking cassandra (3.11.4) ...
dpkg: dependency problems prevent configuration of cassandra:
 cassandra depends on openjdk-8-jre-headless | java8-runtime; however:
  Package openjdk-8-jre-headless is not installed.
  Package java8-runtime is not installed.
 cassandra depends on python (&gt;= 2.7); however:
  Package python is not installed.

dpkg: error processing package cassandra (--install):
 dependency problems - leaving unconfigured
Processing triggers for systemd (241-5) ...
Errors were encountered while processing:
 cassandra
# apt-get -f install
Reading package lists... Done
Building dependency tree
Reading state information... Done
Correcting dependencies... Done
The following additional packages will be installed:
....
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;With this version of Java:

&lt;blockquote&gt;&lt;pre&gt;
# java -version
openjdk version &quot;11.0.4&quot; 2019-07-16
OpenJDK Runtime Environment (build 11.0.4+11-post-Debian-1deb10u1)
OpenJDK 64-Bit Server VM (build 11.0.4+11-post-Debian-1deb10u1, mixed mode, sharing)
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;Some changes need to be made to the jvm options file:

&lt;blockquote&gt;&lt;pre&gt;
#diff /etc/cassandra/jvm.options.original /etc/cassandra/jvm.options
102c102
&lt; -XX:ThreadPriorityPolicy=42
---
&gt; # -XX:ThreadPriorityPolicy=42
203c203
&lt; -XX:+UseParNewGC
---
&gt; # -XX:+UseParNewGC
247,251c247,251
&lt; -XX:+PrintGCDateStamps
&lt; -XX:+PrintHeapAtGC
&lt; -XX:+PrintTenuringDistribution
&lt; -XX:+PrintGCApplicationStoppedTime
&lt; -XX:+PrintPromotionFailure
---
&gt; #-XX:+PrintGCDateStamps
&gt; #-XX:+PrintHeapAtGC
&gt; #-XX:+PrintTenuringDistribution
&gt; #-XX:+PrintGCApplicationStoppedTime
&gt; #-XX:+PrintPromotionFailure
254,256c254,256
&lt; -XX:+UseGCLogFileRotation
&lt; -XX:NumberOfGCLogFiles=10
&lt; -XX:GCLogFileSize=10M
---
&gt; #-XX:+UseGCLogFileRotation
&gt; #-XX:NumberOfGCLogFiles=10
&gt; #-XX:GCLogFileSize=10M
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;p&gt;But &#039;nodetool status&#039; will abort with a NullPtrException, so can&#039;t use cassandra 3.11 on Buster.  It will need to be installed on Stretch.  Cassandra 4 may work on Buster. 
    </content:encoded>

    <pubDate>Thu, 01 Aug 2019 19:48:09 +0000</pubDate>
    <guid isPermaLink="false">https://blog.raymond.burkholder.net/index.php?/archives/1011-guid.html</guid>
    
</item>
<item>
    <title>Cassandra</title>
    <link>https://blog.raymond.burkholder.net/index.php?/archives/1005-Cassandra.html</link>
            <category>Cassandra</category>
    
    <comments>https://blog.raymond.burkholder.net/index.php?/archives/1005-Cassandra.html#comments</comments>
    <wfw:comment>https://blog.raymond.burkholder.net/wfwcomment.php?cid=1005</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>https://blog.raymond.burkholder.net/rss.php?version=2.0&amp;type=comments&amp;cid=1005</wfw:commentRss>
    

    <author>nospam@example.com (Raymond P. Burkholder)</author>
    <content:encoded>
    &lt;ul&gt;
  &lt;li&gt;&lt;a href=&quot;https://scalegrid.io/blog/cassandra-vs-mongodb/&quot; target=_blank&gt;Cassandra vs. MongoDB&lt;/a&gt;
  &lt;li&gt;&lt;a href=&quot;https://thelastpickle.com/blog/2016/07/27/about-deletes-and-tombstones.html&quot; target=_blank&gt;About Deletes and Tombstones in Cassandra&lt;/a&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.datastax.com/dev/blog/cassandra-anti-patterns-queues-and-queue-like-datasets&quot; target=_blank&gt;Cassandra anti-patterns: Queues and queue-like datasets&lt;/a&gt;
  &lt;li&gt;&lt;a href=&quot;https://stackoverflow.com/questions/17945924/is-it-possible-to-use-a-cassandra-table-as-a-basic-queue#17951132&quot; target=_blank&gt;Is it possible to use a cassandra table as a basic queue&lt;/a&gt;
  &lt;li&gt;&lt;a href=&quot;https://metacpan.org/pod/Redis::JobQueue&quot; target=_blank&gt; Redis::JobQueue&lt;/a&gt;
  &lt;li&gt;&lt;a href=&quot;https://brandur.org/job-drain&quot; target=_blank&gt;Transactionally Staged Job Drains in Postgres&lt;/a&gt;
  &lt;li&gt;&lt;a href=&quot;https://de.slideshare.net/ScyllaDB/scylla-summit-2017-planning-your-queries-for-maximum-performance&quot; target=_blank&gt;Scylla Summit 2017: Planning Your Queries for Maximum Performance &lt;/a&gt;
  &lt;li&gt;&lt;a href=&quot;https://de.slideshare.net/alimenkou/high-performance-queues-with-cassandra&quot; target=_blank&gt;High performance queues with Cassandra&lt;/a&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.datastax.com/dev/blog/counting-keys-in-cassandra&quot; target=_blank&gt;Counting Keys In Cassandra&lt;/a&gt;
  &lt;li&gt;&lt;a href=&quot;https://www.datastax.com/dev/blog/cassandra-anti-patterns-queues-and-queue-like-datasets&quot; target=_blank&gt;Cassandra anti-patterns: Queues and queue-like datasets&lt;/a&gt;
  &lt;/ul&gt; 
    </content:encoded>

    <pubDate>Sun, 23 Jun 2019 02:16:02 +0000</pubDate>
    <guid isPermaLink="false">https://blog.raymond.burkholder.net/index.php?/archives/1005-guid.html</guid>
    
</item>

</channel>
</rss>
