实验环境
- CentOS7
- janusgraph-0.2.1-hadoop2
报错
gremlin> graph = JanusGraphFactory.open('conf/janusgraph-cassandra-embedded-es.properties')
07:15:47 WARN org.apache.cassandra.service.CassandraDaemon - JMX is not enabled to receive remote connections. Please see cassandra-env.sh for more info.
07:15:47 ERROR org.apache.cassandra.service.CassandraDaemon - cassandra.jmx.local.port missing from cassandra-env.sh, unable to start local JMX service.null
==>standardjanusgraph[embeddedcassandra:[127.0.0.1]]
原因分析
操作系统防火墙没关闭,阻止了JMX的启动
解决方案
关闭防火墙
systemctl stop firewalld.service #停止firewall
systemctl disable firewalld.service #禁止firewall开机启动