0

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)

4

1 に答える 1

0

.bashrc (ubuntu) または .zshrc (Mac) で環境変数を設定します

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
于 2020-11-04T12:26:36.890 に答える