2017-06-30 125 views
2

我試圖在Redhat機器上首次啓動Cassandra。我已經成功地這樣做對我的做法Ubuntu機器,但由於某些原因,RedHat的安裝是給我下面的錯誤:第一次啓動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'

我對YAML所做的唯一的變化是我設置的數據和日誌文件如下:

data_file_directories: /var/lib/cassandra/data

commitlog_directory: /var/log/cassandra/commitlog

這是一個單節點得到它的工作概念機的證明。我可以向您提供更多有經驗的用戶的幫助嗎?

謝謝!

回答

5

的問題是與YAML文件:

data_file_directories: /var/lib/cassandra/data

它需要的是:

data_file_directories:
- /var/lib/cassandra/data