Skip to content
This repository was archived by the owner on Feb 27, 2020. It is now read-only.
This repository was archived by the owner on Feb 27, 2020. It is now read-only.

cassandra start failed #81

@fogongzi

Description

@fogongzi

@eleanor-merry @MatMeredith

When I deploy cassandra deployment, it gives the error as follows:

ERROR [main] 2017-10-20 02:43:26,773 DatabaseDescriptor.java:141 - Fatal configuration error
org.apache.cassandra.exceptions.ConfigurationException: Expecting URI in variable: [cassandra.config].  Please prefix the file    with file:/// for local files or file://<server>/ for remote files. Aborting. If you are executing this from an external tool,    it needs to set Config.setClientMode(true) to avoid loading configuration.
        at org.apache.cassandra.config.YamlConfigurationLoader.getStorageConfigURL(YamlConfigurationLoader.java:73) ~[apache-ca   ssandra-2.1.15.jar:2.1.15]
        at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:84) ~[apache-cassandra-2   .1.15.jar:2.1.15]
        at org.apache.cassandra.config.DatabaseDescriptor.loadConfig(DatabaseDescriptor.java:161) ~[apache-cassandra-2.1.15.jar   :2.1.15]
        at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:136) ~[apache-cassandra-2.1.15.jar:2   .1.15]
        at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:170) [apache-cassandra-2.1.15.jar:2.1.15]
        at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:566) [apache-cassandra-2.1.15.jar:2.1.15]
        at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:655) [apache-cassandra-2.1.15.jar:2.1.15]

Then the pod logs are as follow:

2017-10-20 10:45:36,661 CRIT reaped unknown pid 5815)
2017-10-20 10:45:36,997 CRIT reaped unknown pid 5816)
2017-10-20 10:45:37,848 INFO success: cassandra entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2017-10-20 10:45:37,849 CRIT reaped unknown pid 5860)
2017-10-20 10:45:38,668 INFO exited: cassandra (exit status 232; not expected)
2017-10-20 10:45:39,671 INFO spawned: 'cassandra' with pid 5876
2017-10-20 10:45:39,701 CRIT reaped unknown pid 5892)
2017-10-20 10:45:40,023 CRIT reaped unknown pid 5893)
2017-10-20 10:45:40,675 INFO success: cassandra entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2017-10-20 10:45:40,676 CRIT reaped unknown pid 5942)
2017-10-20 10:45:41,711 INFO exited: cassandra (exit status 232; not expected)
2017-10-20 10:45:42,715 INFO spawned: 'cassandra' with pid 5958
2017-10-20 10:45:42,744 CRIT reaped unknown pid 5974)
2017-10-20 10:45:43,084 CRIT reaped unknown pid 5975)
2017-10-20 10:45:43,989 INFO success: cassandra entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2017-10-20 10:45:43,989 CRIT reaped unknown pid 6019)
2017-10-20 10:45:44,754 INFO exited: cassandra (exit status 232; not expected)
2017-10-20 10:45:45,759 INFO spawned: 'cassandra' with pid 6035
2017-10-20 10:45:45,804 CRIT reaped unknown pid 6051)

At the same time there is no file : /etc/cassandra/cassandra.yaml

Symptoms

So how can I solve the problem, thanks!

Impact

The kubernetes gives the following error:
Readiness probe failed: Reporting config ADDRESS=192.168.9.16 PORTS=7000 9042 9160 TIMEOUT=5 Testing port 7000

Release and environment

Steps to reproduce

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions