我正在尝试使用DataStax Enterprise在单个节点上设置cassandra(这仅适用于非生产服务器上的DataStax Enterprise实验性使用)。我使用的是基于rhel的amazon image,我使用了以下说明来安装DataStax Enterprise:http://docs.datastax.com/en/datastax_enterprise/4.7/datastax_enterprise/install/installRHELdse.html
安装成功通过,然后我尝试按照以下说明启动DSE:http://docs.datastax.com/en/datastax_enterprise/4.7/datastax_enterprise/startStop/refDseServ.html(我只需要cassandra,因此我使用默认选项,其他服务被禁用)HADOOP_ENABLED=0 SOLR_ENABLED=0 SPARK_ENABLED=0
启动dse:
sudo service dse start
Starting DSE daemon : dse
DSE daemon starting with just Cassandra enabled (edit /etc/default/dse to enable)
检查netstats输出:
netstat -nltp
(No info could be read for "-p": geteuid()=500 but you should be root.)
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:631 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN -
tcp 0 0 :::22 :::* LISTEN -
tcp 0 0 ::1:631 :::* LISTEN -
当检查cassandra日志时,没有错误:
...
INFO [main] 2015-09-15 13:32:01,256 CassandraDaemon.java (line 190) Code Cache Non-heap memory: init = 2555904(2496K) used = 1508800(1473K) committed = 2555904(2496K) max = 50331648(49152K)
INFO [main] 2015-09-15 13:32:01,256 CassandraDaemon.java (line 190) Eden Space Heap memory: init = 62128128(60672K) used = 62128128(60672K) committed = 62128128(60672K) max = 62128128(60672K)
INFO [main] 2015-09-15 13:32:01,256 CassandraDaemon.java (line 190) Survivor Space Heap memory: init = 7733248(7552K) used = 7411240(7237K) committed = 7733248(7552K) max = 7733248(7552K)
INFO [main] 2015-09-15 13:32:01,256 CassandraDaemon.java (line 190) CMS Old Gen Heap memory: init = 232783872(227328K) used = 5415784(5288K) committed = 232783872(227328K) max = 232783872(227328K)
INFO [main] 2015-09-15 13:32:01,257 CassandraDaemon.java (line 190) CMS Perm Gen Non-heap memory: init = 21757952(21248K) used = 19446152(18990K) committed = 21757952(21248K) max = 174063616(169984K)
INFO [main] 2015-09-15 13:32:01,257 CassandraDaemon.java (line 191) Classpath:
...
Cassandra配置:/etc/dse/cassandra/cassandra.yaml具有以下重要属性:
seeds: "<AWS_PUBLIC_DNS>"
listen_address: <AWS_PUBLIC_DNS>
rpc_address: <AWS_PUBLIC_DNS>
endpoint_snitch: com.datastax.bdp.snitch.DseDelegateSnitch
Thanks in advance
2条答案
按热度按时间wljmcqd81#
启动DSE后,您是否进行了节点工具状态检查。你得到的输出是什么。
另外,你可以检查你的system.log文件默认情况下在/var/log/cassandra目录。或者,如果您将DSE安装为服务,则它应该位于/var/log/cassandra中的output.log文件中。
所以基本上当你配置cassandra.yaml时,IP地址列表的设置很重要。
jogvjijk2#
可能太晚了...
希望能节省一些人的时间如果发生这种情况,请检查日志
/var/log/messages
。内核由于内存不足而默默地杀死了jvm: