Embeddedcassandra不与Cassandra Java Driver 4.x合作
我使用的是Cassandra-Unit 3.5.0.1与Cassandra-Driver-Core 3.6.0。 我的应用程序运行良好。
现在,当我尝试升级到Java-Driver-Core 4.3.1和Cassandra-unit 4.3.1.0时,当我尝试在Maven进行测试时,我会遇到错误。
Caused by: java.io.IOException: Unable to open hint directory
以下错误即将到来,
"time="2022-06-17T07:13:30.945Z" level="ERROR" msg="[org.apache.cassandra.service.CassandraDaemon:228][BatchlogTasks:1]
Exception in thread Thread[BatchlogTasks:1,5,main]java.lang.RuntimeException: \
java.util.concurrent.ExecutionException: \
FSWriteError in C:\service\target\embeddedCassandra\hints"
可以帮助我。
I was using cassandra-unit 3.5.0.1 with cassandra-driver-core 3.6.0.
My application was running fine.
Now when I try to upgrade to java-driver-core 4.3.1 and cassandra-unit 4.3.1.0, I am getting error when I try to run my tests in maven.
Caused by: java.io.IOException: Unable to open hint directory
Below error is coming
"time="2022-06-17T07:13:30.945Z" level="ERROR" msg="[org.apache.cassandra.service.CassandraDaemon:228][BatchlogTasks:1]
Exception in thread Thread[BatchlogTasks:1,5,main]java.lang.RuntimeException: \
java.util.concurrent.ExecutionException: \
FSWriteError in C:\service\target\embeddedCassandra\hints"
Can some one help me out.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
fswriteError
是源自Java文件实用程序库的低级文件系统错误。根据我的经验,这通常是由父目录上的许可问题引起的。检查您是否已在文件系统上读取/写入权限,然后重试。干杯!
FSWriteError
is a low-level filesystem error originating from the Java file utilities library. In my experience, this is usually caused by permission issues on the parent directories.Check that you have read/write permissions on the filesystem and try again. Cheers!