删除表/键空间/用户/角色

时间:2018-02-23 07:20:50

标签: cassandra

OS:windows7的

卡桑德拉:3.11.2

JDK:JDK-9.0.4

客户:CassandraCSharpDriver 3.4.0.1(或通过NoSQL Manager for Cassandra

执行任何删除操作时,cassandra进程总是崩溃:

  1. 删除键空间,删除表(手动重启后检查时可以删除);

  2. 删除用户,角色(一旦创建就无法删除)

  3. 有谁知道真正的原因以及如何更改配置? 以下是system.log中的错误详细信息:

    ERROR [NonPeriodicTasks:1] 2018-MM-DD HH:01:17878个LogTransaction.java:354 - 对C失败缺失:\卡桑德拉-3.11.2 \数据\ system_auth \ resource_role_permissons_index-5f2fbdad91f13946bd25d5da3a5c35ec \ MC-19大,我们将在GC和服务器重启后重试 ERROR [NonPeriodicTasks:1] 2018-MM-DD HH:01:17880个LogTransaction.java:236 - 无法删除C:\卡桑德拉-3.11.2 \数据\ system_auth \ resource_role_permissons_index-5f2fbdad91f13946bd25d5da3a5c35ec \ MC-17的大数据。 D b java.nio.file.AccessDeniedException:C:\ cassandra-3.11.2 \ data \ system_auth \ resource_role_permissons_index-5f2fbdad91f13946bd25d5da3a5c35ec \ mc-17-big-Data.db     at java.base / sun.nio.fs.WindowsException.translateToIOException(Unknown Source)〜[na:na]     at java.base / sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)〜[na:na]     at java.base / sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)〜[na:na]     at java.base / sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source)〜[na:na]     at java.base / sun.nio.fs.AbstractFileSystemProvider.delete(Unknown Source)〜[na:na]     at java.base / java.nio.file.Files.delete(Unknown Source)〜[na:na]     在org.apache.cassandra.db.lifecycle.LogTransaction.delete(LogTransaction.java:219)〜[apache-cassandra-3.11.2.jar:3.11.2]     在org.apache.cassandra.db.lifecycle.LogTransaction $ SSTableTidier.run(LogTransaction.java:345)[apache-cassandra-3.11.2.jar:3.11.2]     在org.apache.cassandra.io.sstable.format.SSTableReader $ GlobalTidy.tidy(SSTableReader.java:2288)[apache-cassandra-3.11.2.jar:3.11.2]     在org.apache.cassandra.utils.concurrent.Ref $ GlobalState.release(Ref.java:321)[apache-cassandra-3.11.2.jar:3.11.2]     在org.apache.cassandra.utils.concurrent.Ref $ State.release(Ref.java:220)[apache-cassandra-3.11.2.jar:3.11.2]     在org.apache.cassandra.utils.concurrent.Ref.release(Ref.java:114)[apache-cassandra-3.11.2.jar:3.11.2]     在org.apache.cassandra.io.sstable.format.SSTableReader $ InstanceTidier $ 1.run(SSTableReader.java:2193)[apache-cassandra-3.11.2.jar:3.11.2]     at java.base / java.util.concurrent.Executors $ RunnableAdapter.call(Unknown Source)[na:na]     at java.base / java.util.concurrent.FutureTask.run(Unknown Source)[na:na]     at java.base / java.util.concurrent.ScheduledThreadPoolExecutor $ ScheduledFutureTask.run(Unknown Source)[na:na]     at java.base / java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)[na:na]     at java.base / java.util.concurrent.ThreadPoolExecutor $ Worker.run(Unknown Source)[na:na]     在org.apache.cassandra.concurrent.NamedThreadFactory.lambda $ threadLocalDeallocator $ 0(NamedThreadFactory.java:81)[apache-cassandra-3.11.2.jar:3.11.2]     在java.base / java.lang.Thread.run(未知来源)〜[na:na] ERROR [NonPeriodicTasks:1] 2018-MM-DD HH:01:17880个LogTransaction.java:354 - 对C失败缺失:\卡桑德拉-3.11.2 \数据\ system_auth \ resource_role_permissons_index-5f2fbdad91f13946bd25d5da3a5c35ec \ MC-17大,我们”在GC和服务器重启后重试 错误[MemtablePostFlush:2] 2018-MM-DD HH:01:19,378 StorageService.java:441 - 停止本地传输 INFO [MemtablePostFlush:2] 2018-MM-DD HH:01:19,393 Server.java:176 - 停止侦听CQL客户端

1 个答案:

答案 0 :(得分:0)

系统数据库文件的文件权限有问题。在您的日志中,您有以下内容:

  

无法删除 C:\ cassandra-3.11.2 \ data \ system_auth \ resource_role_permissons_index-5f2fbdad91f13946bd25d5da3a5c35ec \ mc-17-big-Data.db java.nio。文件。 AccessDeniedException :C:\ cassandra-3.11.2 \ data \ system_auth \ resource_role_permissons_index-5f2fbdad91f13946bd25d5da3a5c35ec \ mc-17-big-Data.db at

请更改运行Cassandra的用户可以写入给定目录(C:\cassandra-3.11.2\data)的权限。