cassandra cql shell window got disappears after installation in windows

泪湿孤枕 提交于 2019-12-03 17:41:38

问题


cassandra cql shell window got disappears after installation in windows? this was installed using MSI installer availalbe in planet cassandra.

Why this happens ? please help me..

Thanks in advance.


回答1:


I had the same issue with DataStax 3.9. This is how I sorted this:

Step 1: Open file: DataStax-DDC\apache-cassandra\conf\cassandra.yaml

Step 2: Uncomment the cdc_raw_directory and set new value to (for windows)

cdc_raw_directory: "C:/Program Files/DataStax-DDC/data/cdc_raw"

Step 3: Goto Windows Services and Start the DataStax DDC Server 3.9.0 Service




回答2:


I had the same problem with DataStax Community 3.0.9

Step 1: Go to C:\Program Files\DataStax Community\apache-cassandra\conf and open cassandra.yaml in notepad or wordpad

Step 2: Make sure the file has the following entries. If not, add them and save the file.

hints_directory: "C:/Program Files/DataStax Community/data/hints" data_file_directories: - "C:/Program Files/DataStax Community/data/data" commitlog_directory: "C:/Program Files/DataStax Community/data/commitlog" cdc_raw_directory: "C:/Program Files/DataStax Community/data/cdc_raw" saved_caches_directory: "C:/Program Files/DataStax Community/data/saved_caches"

Step 3: Go to C:\Program Files\DataStax Community\data and make sure you have following folders:

commitlog , data , hints, saved_caches, cdc_raw

If cdc_raw folder is missing, create a folder named cdc_raw

After this, run Cassandra CQL shell again. This should solve the problem.




回答3:


Goto C:\Program Files\DataStax Community\apache-cassandra\logs\debug.log and find the error.

like I facing was same issue, I checked the logs and there was an error

ERROR [main] 2018-01-16 14:54:49,359 JVMStabilityInspector.java:82 - Exiting due to error while processing commit log during initialization.
org.apache.cassandra.db.commitlog.CommitLogReplayer$CommitLogReplayException: Could not read commit log descriptor in file C:\Program Files\DataStax Community\data\commitlog\CommitLog-6-1516029298188.log

i've deleted the the all log files and started server from below location

"C:\Program Files\DataStax Community\apache-cassandra\bin\cassandra.bat"

once your server is up and running now you can open Cassandra CQL Shell




回答4:


Nothing above worked for me, but this is what did for community 64bit v3.0.9

If you didn't leave "Automatically start DataStax Cassandra Community Service" checked when installing you'll want to reinstall and leave it checked.

Goto C:\Program Files\DataStax Community and rename the file cassandra.ymal.orig to cassandra.yaml and leave it in the DataStax Community folder and start Cassandra CQL Shell.

Note: I don't know if it's needed but I backed up my cassandra.ymal.orig before doing this.

Also, if anyone could shed light on what the command for windows would be to start Cassandra that would be awesome. It seems at least in part this issue is the service just won't start



来源:https://stackoverflow.com/questions/39893193/cassandra-cql-shell-window-got-disappears-after-installation-in-windows

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!