我使用的是 Scylla 版本 4.6.3。我在单个 DC 中有一个包含 3 个节点的集群。我已按照https://docs.scylladb.com/operating-scylla/procedures/cluster-management/add-dc-to-existing-dc/中给出的说明在新 DC 中添加 3 个新节点。新 DC 中的节点启动后,我检查 nodetool 状态并确保所有节点都已启动并运行。现在,由于所有节点都是同一集群的一部分,因此我假设无论在哪个节点上运行 cql 查询,查询结果都应该相同,不是吗?但我发现当查询在不同节点上运行时,数据是不同的。事实上,当查询在同一个DC的不同节点上运行时,查询结果也是不同的!观察到以下差异(但这不是完整列表):
我的密钥空间之前使用复制因子为 2 的 SimpleStrategy。在添加新 DC 时,作为文档中描述的步骤的一部分,我已将其修改为在两个 DC 中使用复制因子为 2 的 NetworkTopologyStrategy:
ALTER KEYSPACE ks WITH replication = { 'class' : 'NetworkTopologyStrategy', 'existing-dc' : 2, 'new-dc' : 2};
Run Code Online (Sandbox Code Playgroud)
为什么会有这样的差异呢?我缺少什么?这是键空间和表定义的示例:
CREATE TABLE ks.cf (
hourofyear int,
operationtime bigint,
action text,
entityid text,
entitytype text,
operatorid text,
PRIMARY …Run Code Online (Sandbox Code Playgroud) 我正在尝试在 pom.xml 中添加 firebase-admin 依赖项:
<dependency>
<groupId>com.google.firebase</groupId>
<artifactId>firebase-admin</artifactId>
<version>6.6.0</version>
</dependency>
Run Code Online (Sandbox Code Playgroud)
但是当我尝试使用“干净安装”命令构建我的项目时,出现以下错误:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Communication Manager 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO] Downloading: http://192.168.1.4:8081/artifactory/libs-release/com/google/firebase/firebase-admin/6.6.0/firebase-admin-6.6.0.pom
[INFO] Downloaded: http://192.168.1.4:8081/artifactory/libs-release/com/google/firebase/firebase-admin/6.6.0/firebase-admin-6.6.0.pom (21 KB at 44.6 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.498 s
[INFO] Finished at: 2019-01-02T11:43:59+05:30
[INFO] Final Memory: 14M/308M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project communicationmgr: Could not resolve dependencies for project com.example.server:communicationmgr:jar:0.0.1-SNAPSHOT: Failed to collect dependencies at com.google.firebase:firebase-admin:jar:6.6.0 -> …Run Code Online (Sandbox Code Playgroud)