Cassandra 2.2.5 Install_cassandra

Source: Internet
Author: User
Tags cassandra iptables datastax
Install Python2.7 Cassandra 2.2.5 used python2.7, and CentOS 6.7 came with Python is 2.6, so to install python2.7, but can not delete 2.6 version, because Yum need to use python2.6, see CentOS Install Python2.7

2. Installation of DataStax cassandra2.2.5 http://docs.datastax.com/en/cassandra/2.2/cassandra/install/installRHEL.html
3. After the installation of the implementation cqlsh found that there is an error, the Python newspaper can not find module pylib, according to the following to solve
I was installed through the Yum is the DataStax community version, before the installation system has python2.7, installation Cassandra when I saw Cascade installed python2.6. I found that the Cqlsh py file was installed to the python2.6 solution: Download the Apache-cassandra.2.2.zip package, which has the Pylib directory, and execute Python setup.py install after entering, You can use the Cqlsh under the python2.7.
4. At this time the local can execute the CQLSH command to connect this machine, but found outside the machine and the app connection times nohostavailableexception exception. There are two changes that need to be made.  A. Vi/etc/cassandra/conf/cassandra.yaml, modify rpc_address and listen_address for this machine IP address B. You need to open the following firewall port iptables-i input-p tcp-m TCP--dport 9042-j ACCEPT iptables-i input-p tcp-m TCP--d Port 7000-j ACCEPT iptables-i input-p tcp-m tcp--dport 7001-j ACCEPT iptables-i input-p tcp-m TCP--dport 7199-j ACCEPT iptables-i input-p tcp-m tcp--dport 9160-j ACCEPT
$/etc/init.d/iptables Save $ service iptables restart
7199-JMX (is 8080 pre Cassandra 0.8.xx) 7000-internode communication (not used if TLS enabled) 7001-tls Internode C Ommunication (used if TLS enabled) 9160-thrift client API 9042-CQL native port
The outside machine can also connect the Cqlsh ip_address

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.