我正在探索Elassandra作为数据存储,并试图使其在Windows 10机器上正常工作。
已下载: https://github.com/strapdata/elassandra/releases/download/v6.2.3.3/elassandra-6.2.3.3.zip
所需的环境变量:
CASSANDRA_HOME:C:\ Spike Items \ Database Explore \ Elassandra \ elassandra-6.2.3.3 JAVA_HOME:C:\ Program Files \ Java \ jre1.8.0_171
它给出以下错误,并遵循所有建议。 错误说找不到JSR223。
PS C:\ Spike Items \ Database Explore \ Elassandra \ elassandra-6.2.3.3 \ bin>。\ cassandra.ps1 -f -e Get-ChildItem:无法找到路径'C:\ Spike Items \ Database Explore \ Elassandra \ elassandra-6.2.3.3 \ lib \ jsr223' 不存在。 在C:\ Spike Items \ Database Explore \ Elassandra \ elassandra-6.2.3.3 \ conf \ cassandra-env.ps1:212 char:25 + ... ach(Get-ChildItem-路径“ $ env:CASSANDRA_HOME \ lib \ jsr223”中的$ jsrDir) + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~ + CategoryInfo:ObjectNotFound:(C:\ Spike Items .... 3.3 \ lib \ jsr223:String)[Get-ChildItem],ItemNotFound 例外 + FullyQualifiedErrorId:PathNotFound,Microsoft.PowerShell.Commands.GetChildItemCommand
WARNING! Automatic page file configuration detected.
It is recommended that you disable swap when running Cassandra
for performance and stability reasons.
WARNING! Detected a power profile other than High Performance.
Performance of this node will suffer.
Modify conf\cassandra.env.ps1 to suppress this warning.
从启用Elasticsearch开始。 错误:找不到或加载主类Items \ Database
答案 0 :(得分:0)
我已经开始在Windows 10及更低版本的Image上使用Docker: https://hub.docker.com/r/strapdata/elassandra/
通过将内部Docker容器端口映射到主机端口,一切都能完美地通过DevCenter连接到cassandra。
docker run --name el -p 9042:9042 -p 9200:9200trapdata / elassandra:6.2.3.3