gpt4 book ai didi

java - Cassandra 无法运行 - 在 Windows 上使用 Intellij

转载 作者:行者123 更新时间:2023-12-01 11:21:24 24 4
gpt4 key购买 nike

好吧,我关注了 https://wiki.apache.org/cassandra/RunningCassandraInIDEA
在本地设置 cassandra 项目。

但是当我运行时,我收到了下面提到的错误日志


Failed to auto configure default logger context
Reported exception:
ch.qos.logback.core.joran.spi.JoranException: Could not open URL [file://E:/ProjectsV2/Cassandra/conf/logback.xml].
at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:53)
at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:77)
at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:152)
at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85)
at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
at org.slf4j.LoggerFactory.bind(LoggerFactory.java:129)
at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:108)
at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:302)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:276)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:288)
at org.apache.cassandra.service.CassandraDaemon.<clinit>(CassandraDaemon.java:96)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:116)
Caused by: java.net.UnknownHostException: E
at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at java.net.Socket.connect(Socket.java:589)
at java.net.Socket.connect(Socket.java:538)
at sun.net.ftp.impl.FtpClient.doConnect(FtpClient.java:957)
at sun.net.ftp.impl.FtpClient.tryConnect(FtpClient.java:917)
at sun.net.ftp.impl.FtpClient.connect(FtpClient.java:1012)
at sun.net.ftp.impl.FtpClient.connect(FtpClient.java:998)
at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:294)
at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:393)
at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:48)
... 13 more
17:53:47,964 |-INFO in ch.qos.logback.classic.LoggerContext[default] - Found resource [file://E:/ProjectsV2/Cassandra/conf/logback.xml] at [file://E:/ProjectsV2/Cassandra/conf/logback.xml]
17:53:52,546 |-ERROR in ch.qos.logback.classic.joran.JoranConfigurator@1055e4af - Could not open URL [file://E:/ProjectsV2/Cassandra/conf/logback.xml]. java.net.UnknownHostException: E
at java.net.UnknownHostException: E
at at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
at at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:172)
at at java.net.Socket.connect(Socket.java:589)
at at java.net.Socket.connect(Socket.java:538)
at at sun.net.ftp.impl.FtpClient.doConnect(FtpClient.java:957)
at at sun.net.ftp.impl.FtpClient.tryConnect(FtpClient.java:917)
at at sun.net.ftp.impl.FtpClient.connect(FtpClient.java:1012)
at at sun.net.ftp.impl.FtpClient.connect(FtpClient.java:998)
at at sun.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:294)
at at sun.net.www.protocol.ftp.FtpURLConnection.getInputStream(FtpURLConnection.java:393)
at at ch.qos.logback.core.joran.GenericConfigurator.doConfigure(GenericConfigurator.java:48)
at at ch.qos.logback.classic.util.ContextInitializer.configureByResource(ContextInitializer.java:77)
at at ch.qos.logback.classic.util.ContextInitializer.autoConfig(ContextInitializer.java:152)
at at org.slf4j.impl.StaticLoggerBinder.init(StaticLoggerBinder.java:85)
at at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:55)
at at org.slf4j.LoggerFactory.bind(LoggerFactory.java:129)
at at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:108)
at at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:302)
at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:276)
at at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:288)
at at org.apache.cassandra.service.CassandraDaemon.<clinit>(CassandraDaemon.java:96)
at at java.lang.Class.forName0(Native Method)
at at java.lang.Class.forName(Class.java:264)
at at com.intellij.rt.execution.application.AppMain.main(AppMain.java:116)

Exception in thread "main" java.lang.ExceptionInInitializerError
at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:116)
at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:448)
at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:576)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)
Caused by: 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)
at org.apache.cassandra.config.YamlConfigurationLoader.loadConfig(YamlConfigurationLoader.java:85)
at org.apache.cassandra.config.DatabaseDescriptor.loadConfig(DatabaseDescriptor.java:127)
at org.apache.cassandra.config.DatabaseDescriptor.<clinit>(DatabaseDescriptor.java:111)
... 7 more

Process finished with exit code 1

这方面的任何帮助和指导都会很棒。非常感谢。

PS:我是一个完全的菜鸟,所以简短的解释将大大提高我的水平。再次感谢

最佳答案

从我的评论中复制:

代替

file:// 


file:///

关于java - Cassandra 无法运行 - 在 Windows 上使用 Intellij,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31184735/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com