{"id":6592,"date":"2017-03-29T20:31:45","date_gmt":"2017-03-29T12:31:45","guid":{"rendered":"http:\/\/rmohan.com\/?p=6592"},"modified":"2017-03-29T20:31:45","modified_gmt":"2017-03-29T12:31:45","slug":"install-cassandra-3-9-on-centos-6-8","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=6592","title":{"rendered":"Install Cassandra 3.9 on CentOS 6.8"},"content":{"rendered":"<p>Install Cassandra 3.9 on CentOS 6.8<\/p>\n<p>Install Java 8<\/p>\n<p>$\u00a0 yum install java-1.8.0-openjdk<\/p>\n<p>Add DataStax Repo for Apache Cassandra<\/p>\n<p>$\u00a0 vi \/etc\/yum.repos.d\/datastax.repo<\/p>\n<p>Add the following lines to the new file:<\/p>\n<p>[datastax-ddc]<br \/>\nname = DataStax Repo for Apache Cassandra<br \/>\nbaseurl = http:\/\/rpm.datastax.com\/datastax-ddc\/3.9<br \/>\nenabled = 1<br \/>\ngpgcheck = 0<\/p>\n<p>Save the file above and run:<\/p>\n<p>$\u00a0 yum install datastax-ddc<br \/>\n$\u00a0 service cassandra start<br \/>\n$\u00a0 nodetool status<\/p>\n<p>Add Python 2.7<\/p>\n<p>$ cd \/usr\/src<br \/>\n$\u00a0 wget http:\/\/python.org\/ftp\/python\/2.7.6\/Python-2.7.6.tgz<br \/>\n$\u00a0 tar -xvzf Python-2.7.6.tgz<br \/>\n$ cd Python-2.7.6<br \/>\n$\u00a0 .\/configure &#8211;prefix=\/usr\/local<br \/>\n$\u00a0 make<br \/>\n$\u00a0 make install<\/p>\n<p>Fix python libs:<\/p>\n<p>$ cd \/usr\/lib\/python2.7\/<br \/>\n$ mv * \/usr\/local\/lib\/python2.7\/site-packages\/<br \/>\n$ rm -R site-packages<br \/>\n$ ln -s \/usr\/local\/lib\/python2.7\/site-packages .\/<\/p>\n<p>There should now be a symlink in \/usr\/lib\/python2.7 that points site-packages to \/usr\/local\/lib\/python2.7\/site-packages.<\/p>\n<p>site-packages -&gt; \/usr\/local\/lib\/python2.7\/site-packages<\/p>\n<p>In the \/usr\/local\/lib\/python2.7\/site-packages you should see a cqlshlib folder.<br \/>\nRun cqlsh<\/p>\n<p># cqlsh<br \/>\n# cqlsh&gt; DESCRIBE keyspaces;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Install Cassandra 3.9 on CentOS 6.8<\/p>\n<p>Install Java 8<\/p>\n<p>$ yum install java-1.8.0-openjdk<\/p>\n<p>Add DataStax Repo for Apache Cassandra<\/p>\n<p>$ vi \/etc\/yum.repos.d\/datastax.repo<\/p>\n<p>Add the following lines to the new file:<\/p>\n<p>[datastax-ddc] name = DataStax Repo for Apache Cassandra baseurl = http:\/\/rpm.datastax.com\/datastax-ddc\/3.9 enabled = 1 gpgcheck = 0<\/p>\n<p>Save the file above and run:<\/p>\n<p>$ yum [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[83],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6592"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6592"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6592\/revisions"}],"predecessor-version":[{"id":6593,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/6592\/revisions\/6593"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6592"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6592"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6592"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}