Centos启动Cassandra交互模式失败:No appropriate python interpreter found

在CentOS6.5安装好Cassandra后,启动交互模式:

bin/sqlsh 192.168.10.154

时,报错

No appropriate python interpreter found

这个错误是因为CentOS系统中默认安装的是2.6,而Cassandra需要Python2.7以上,因此只能重新安装python

CentOS安装Python2.7,参考:http://ruter.sundaystart.net/2015/12/03/Update-python/

注意的是:最新Python的版本可以下载2.7.13,自带了pip工具,可以省去重新安装pip的很多麻烦

编译安装python2.7.13后,重新启动Cassandra交互模式

启动成功!

posted @ 2016-12-18 23:59  风之舞555  阅读(1067)  评论(0编辑  收藏  举报