用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)
1条答案
按热度按时间i5desfxk1#
在.bashrc(ubuntu)或.zshrc(mac)中设置env变量