{"id":894,"date":"2015-06-16T19:46:51","date_gmt":"2015-06-17T04:46:51","guid":{"rendered":"http:\/\/blog.box.kr\/?p=894"},"modified":"2015-06-16T19:46:51","modified_gmt":"2015-06-17T04:46:51","slug":"how-to-install-cassandra-on-centos-7","status":"publish","type":"post","link":"https:\/\/blog.box.kr\/?p=894","title":{"rendered":"How To Install Cassandra on CentOS 7"},"content":{"rendered":"<p>Apache Cassandra is a NoSQL database intended for storing large amounts of data in a decentralized, highly available cluster. NoSQL refers to a database with a data model other than the tabular relations used in relational databases such as MySQL, PostgreSQL, and Microsoft SQL.<\/p>\n<p>Pre-Flight Check<br \/>\nThese instructions are intended for installing Cassandra 2 on a single CentOS 7 node.<br \/>\nI\u2019ll be working from a Liquid Web Core Managed CentOS 7 server, and I\u2019ll be logged in as root.<br \/>\nYou may be able to skip to Step #2 if you already have a stable version of Java 7 (preferably the Oracle\/Sun JVM). Check to see if your server already has Java installed by running the following command: java -version<\/p>\n<p>Step 1: Install Java<br \/>\nFirst, you\u2019ll follow a simple best practice: ensuring the list of available packages is up to date before installing anything new.<\/p>\n<blockquote><p>yum -y update<\/p><\/blockquote>\n<p>At this point, installing java is as simple as running just one command:<\/p>\n<blockquote><p>yum -y install java<\/p><\/blockquote>\n<p>Step #2: Add the DataStax Community Repository<br \/>\nFor a refresher on editing files with vim see: New User Tutorial: Overview of the Vim Text Editor<\/p>\n<blockquote><p>vim \/etc\/yum.repos.d\/datastax.repo<\/p><\/blockquote>\n<p>Add the following information to the file you\u2019ve created, using i to insert:<\/p>\n<blockquote><p>[datastax]<br \/>\nname = DataStax Repo for Apache Cassandra<br \/>\nbaseurl = http:\/\/rpm.datastax.com\/community<br \/>\nenabled = 1<br \/>\ngpgcheck = 0<\/blockquote>\n<p>Then exit and save the file with the command :wq (see the example below):<br \/>\nHow To Install Cassandra 2 and Run a Single Node Cluster on CentOS 6 &#8211; 02 DataStax Repo<\/p>\n<p>Step #3: Install Apache Cassandra 2<br \/>\nAt this point, installing Cassandra is as simple as running just one command:<\/p>\n<blockquote><p>yum -y install dsc21<\/p><\/blockquote>\n<p>Step #4: Get Cassandra Running<br \/>\nStart-Up Cassandra<\/p>\n<blockquote><p>systemctl start cassandra<\/p><\/blockquote>\n<p>Check Cassandra Service Status<\/p>\n<blockquote><p>systemctl status cassandra<\/p><\/blockquote>\n<p>Enable Cassandra to Start at Boot<\/p>\n<blockquote><p>systemctl enable cassandra<\/p><\/blockquote>\n<p>Enter the Cassandra Command Line<\/p>\n<blockquote><p>cqlsh<\/p><\/blockquote>\n<p>The cqlsh interface should look similar to:<\/p>\n<blockquote><p>Connected to Test Cluster at localhost:9160.<br \/>\n[cqlsh 4.1.1 | Cassandra 2.0.10 | CQL spec 3.1.1 | Thrift protocol 19.39.0]<br \/>\nUse HELP for help.<br \/>\ncqlsh&gt;<\/blockquote>\n<p>Check Cassandra Node Status<\/p>\n<blockquote><p>nodetool status<\/p><\/blockquote>\n<p>If you get an error such as: \u2018Failed to connect to \u2019127.0.0.1:7199\u2032: Connection refused\u2019<\/p>\n<p>Then visit the following tutorial: Error: Failed to connect to \u2019127.0.0.1:7199\u2032: Connection refused (Cassandra) [SOLVED]<\/p>\n<p>Restart Cassandra<\/p>\n<blockquote><p>systemctl restart cassandra<\/p><\/blockquote>\n<p>Shutdown Cassandra<\/p>\n<blockquote><p>service cassandra stop<\/p><\/blockquote>\n<p>Be Sociable, Share!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apache Cassandra is a NoSQL database intended for storing large amounts of data in a decentralized, highly available cluster. NoSQL refers to a database with a data model other than the tabular relations used in relational databases such as MySQL, PostgreSQL, and Microsoft SQL. Pre-Flight Check These instructions are intended for installing Cassandra 2 on a single CentOS 7 node. I\u2019ll be working from a Liquid Web Core Managed CentOS 7 server, and I\u2019ll be logged in as root. You may be able to skip to Step #2 if you already have a stable version of Java 7 (preferably the Oracle\/Sun JVM). Check to see if your server already has Java installed by running the following command: java -version Step 1: Install Java First, you\u2019ll follow a simple best practice: ensuring the list of available packages is up to date before installing anything new. yum -y update At this point, installing java is as simple as running just one command: yum -y install java Step #2: Add the DataStax Community Repository For a refresher on editing files with vim see: New User Tutorial: Overview of the Vim Text Editor vim \/etc\/yum.repos.d\/datastax.repo Add the following information to the file you\u2019ve created, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false,"ngg_post_thumbnail":0,"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[4,5],"tags":[],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack_publicize_connections":[],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5q9Zn-eq","jetpack-related-posts":[{"id":678,"url":"https:\/\/blog.box.kr\/?p=678","url_meta":{"origin":894,"position":0},"title":"[Linux] Installing Tomcat 8 on a CentOS 7","date":"2015-04-13","format":false,"excerpt":"UPDATE SYSTEM First thing to do is to SSH to your CentOS 7 VPS, fire up a screen session and update your system using yum: ## screen -U -S tomcat8-centos7 ## yum update You may also want to install a text editor like nano or vim ## yum install vim\u2026","rel":"","context":"In &quot;\uae30\uc220\uc790\ub8cc&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":673,"url":"https:\/\/blog.box.kr\/?p=673","url_meta":{"origin":894,"position":1},"title":"[Linux]Install MariaDB 10.0 on CentOS linux using YUM command","date":"2015-04-13","format":false,"excerpt":"Adding the MariaDB YUM Repository We highly recommended to use custom\u00a0MariaDB YUM\u00a0repository to install. Create a repo file under\/etc\/yum.repos.d\/MariaDB.repo, Copy and paste following line under MariaDB repository: Add repository on Centos 6.5 32-bit # vi \/etc\/yum.repos.d\/MariaDB.repo and paste following line: # MariaDB 10.0 CentOS repository list - created 2014-03-12 12:46\u2026","rel":"","context":"In &quot;\uae30\uc220\uc790\ub8cc&quot;","img":{"alt_text":"Connect to MariaDB 10.0","src":"https:\/\/i0.wp.com\/lintut.com\/wp-content\/uploads\/2014\/03\/639x352xScreenshot-from-2014-03-12-141810.png.pagespeed.ic.DHQ-h4Kmpx.png?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":896,"url":"https:\/\/blog.box.kr\/?p=896","url_meta":{"origin":894,"position":2},"title":"Working with Apache Cassandra on Mac OS X","date":"2015-06-16","format":false,"excerpt":"If you use Mac OS X as your platform for development work, then you may be interested to know how easy it is to use Apache Cassandra on the Mac. The following shows you how to download and setup Cassandra, its utilities, and also use DataStax OpsCenter, which is a\u2026","rel":"","context":"In &quot;\uae30\uc220&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":716,"url":"https:\/\/blog.box.kr\/?p=716","url_meta":{"origin":894,"position":3},"title":"CentOS SSH Installation And Configuration","date":"2015-04-15","format":false,"excerpt":"http:\/\/www.cyberciti.biz\/faq\/centos-ssh\/ \u00a0 How do I install and configure ssh server and client under CentOS Linux operating systems? You need to install the following packages (which are installed by default until and unless you removed it or skipped it while installing CentOS) openssh-clients : The OpenSSH client applications openssh-server : The\u2026","rel":"","context":"In &quot;\uae30\uc220\uc790\ub8cc&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":718,"url":"https:\/\/blog.box.kr\/?p=718","url_meta":{"origin":894,"position":4},"title":"How To Install Linux, Nginx, MySQL, PHP (LEMP) stack On CentOS 7","date":"2015-04-15","format":false,"excerpt":"https:\/\/www.digitalocean.com\/community\/tutorials\/how-to-install-linux-nginx-mysql-php-lemp-stack-on-centos-7 \u00a0 How To Install Linux, Nginx, MySQL, PHP (LEMP) stack On CentOS 7 Introduction A LEMP software stack is a group of open source software that is typically installed together to enable a server to host dynamic websites and web apps. This term is actually an acronym which represents\u2026","rel":"","context":"In &quot;\uae30\uc220\uc790\ub8cc&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":729,"url":"https:\/\/blog.box.kr\/?p=729","url_meta":{"origin":894,"position":5},"title":"install PostgreSQL on CentOS7","date":"2015-04-21","format":false,"excerpt":"1.\u00a0Install ( \u00a02015-04-21 > \ucd5c\uc2e0 \ubc84\uc804\uc740 9.4\u00a0 ) [root@localhost ~]# rpm -Uvh http:\/\/yum.postgresql.org\/9.4\/redhat\/rhel-7-x86_64\/pgdg-centos94-9.4-1.noarch.rpm http:\/\/yum.postgresql.org\/9.4\/redhat\/rhel-7-x86_64\/pgdg-centos94-9.4-1.noarch.rpm(\uc744)\ub97c \ubcf5\uad6c\ud569\ub2c8\ub2e4 \uacbd\uace0: \/var\/tmp\/rpm-tmp.z0BMz8: Header V4 DSA\/SHA1 Signature, key ID 442df0f8: NOKEY \uc900\ube44 \uc911...\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ################################# [100%] Updating \/ installing... 1:pgdg-centos94-9.4-1\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ################################# [100%] [root@localhost ~]# yum install postgresql94 postgresql94-server postgresql94-libs postgresql94-contrib postgresql94 Loaded plugins: fastestmirror, langpacks http:\/\/linuxdownload.adobe.com\/linux\/x86_64\/repodata\/repomd.xml: [Errno\u2026","rel":"","context":"In &quot;\uae30\uc220&quot;","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/posts\/894"}],"collection":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=894"}],"version-history":[{"count":0,"href":"https:\/\/blog.box.kr\/index.php?rest_route=\/wp\/v2\/posts\/894\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=894"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=894"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.box.kr\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=894"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}