cassandra时elasticsearch失败,未配置path.home

mrphzbgm  于 2021-06-09  发布在  Cassandra
关注(0)|答案(1)|浏览(423)

用elasticsearch启动cassandra在~/logs/system.log中出现以下错误

./bin/cassandra -e
java.lang.IllegalStateException: path.home is not configured
        at org.elasticsearch.env.Environment.<init>(Environment.java:97)
        at org.elasticsearch.node.InternalSettingsPreparer.prepareEnvironment(InternalSettingsPreparer.java:85)
        at org.elasticsearch.node.InternalSettingsPreparer.prepareEnvironment(InternalSettingsPreparer.java:66)
        at org.elasticsearch.node.Node.<init>(Node.java:246)
        at org.apache.cassandra.service.ElassandraDaemon.activate(ElassandraDaemon.java:181)
        at org.apache.cassandra.service.ElassandraDaemon.main(ElassandraDaemon.java:548)
i5desfxk

i5desfxk1#

在.bashrc(ubuntu)或.zshrc(mac)中设置env变量

export CASSANDRA_HOME=<your Elassandra downloads path>/elassandra-6.2.3.31
export CASSANDRA_CONF=<your Elassandra downloads path>//elassandra-6.2.3.31/conf

相关问题