2017-06-30 3 views
2

Ich versuche Cassandra zum ersten Mal auf einer Redhat-Maschine zu starten. Ich habe erfolgreich so auf meine Praxis Ubuntu Maschinen gemacht, aber aus irgendeinem Grund, installieren Sie die Redhat ist mir folgende Fehlermeldung:Fehler beim ersten Start von Cassandra

INFO [main] 2017-06-29 20:11:42,369 YamlConfigurationLoader.java:89 - Configuration location: file:/home/cassandra/apache-cassandra-3.10/conf/cassandra.yaml Exception (org.apache.cassandra.exceptions.ConfigurationException) encountered during startup: Invalid yaml: file:/home/cassandra/apache-cassandra-3.10/conf/cassandra.yaml Error: null; Can't construct a java object for tag:yaml.org,2002:org.apache.cassandra.config.Config; exception=Cannot create property=data_file_directories for [email protected]; No single argument constructor found for class [Ljava.lang.String;; in 'reader', line 10, column 1: cluster_name: 'Test Cluster'

^

Invalid yaml: file:/home/cassandra/apache-cassandra-3.10/conf/cassandra.yaml Error: null; Can't construct a java object for tag:yaml.org,2002:org.apache.cassandra.config.Config; exception=Cannot create property=data_file_directories for [email protected]; No single argument constructor found for class [Ljava.lang.String;; in 'reader', line 10, column 1: cluster_name: 'Test Cluster'
^

ERROR [main] 2017-06-29 20:11:42,742 CassandraDaemon.java:752 - Exception encountered during startup: Invalid yaml: file:/home/cassandra/apache-cassandra-3.10/conf/cassandra.yaml Error: null; Can't construct a java object for tag:yaml.org,2002:org.apache.cassandra.config.Config; exception=Cannot create property=data_file_directories for [email protected]; No single argument constructor found for class [Ljava.lang.String;; in 'reader', line 10, column 1: cluster_name: 'Test Cluster'

Die einzige Änderung, die ich zu yaml gemacht ist ich die Daten gesetzt und Log-Dateien wie folgt :

data_file_directories: /var/lib/cassandra/data

commitlog_directory: /var/log/cassandra/commitlog

Dies ist ein einzelner Knoten, um es funktionierende Proof-of-Concept-Maschine zu bekommen. Kann ich etwas Hilfe von Ihnen erfahreneren Benutzern erbitten?

Danke!

Antwort

5

Das Problem war mit der YAML-Datei:

data_file_directories: /var/lib/cassandra/data

Es wird benötigt:

data_file_directories:
- /var/lib/cassandra/data