Aerospike asbackup 命令生成无效命名空间错误

Aerospike asbackup command generates invalid namespace error

要将 Aerospike 数据库中测试命名空间中的数据备份到当前目录,以下 asbackup 命令会生成无效命名空间错误。

里面有测试命名空间和员工集,记录很少。我可以使用 golang 驱动程序读写记录。 asbackup需要配置吗?

asbackup --host 172.28.128.3:3000 --namespace test  --directory .

错误是:

2020-02-11 16:48:32 UTC [INF] [88270] Starting 100% backup of 172.28.128.3:3000 
(namespace: test, set: [all], bins: [all], after: [none], before: [none]) to .
2020-02-11 16:48:32 UTC [INF] [88270] [src/main/aerospike/as_cluster.c:124] 
[as_cluster_add_nodes_copy] Add node BB949C170270008 172.28.128.3:3000
2020-02-11 16:48:32 UTC [INF] [88270] Processing 1 node(s)
2020-02-11 16:48:32 UTC [INF] [88270] Node ID Objects Replication    
2020-02-11 16:48:32 UTC [ERR] [88270] Invalid namespace test
2020-02-11 16:48:32 UTC [ERR] [88270] Error while counting cluster objects

使用 MacOs 10.15.3; Aerospike 备份实用程序版本 3.2.3; C 客户端版本 4.2.0; docker 2.2.0.3

上的 Aerospike 运行

我会仔细检查您的命名空间拼写/区分大小写...

    $ asbackup --host 172.28.128.3:3000 --namespace test --directory .
2020-02-11 17:49:52 GMT [INF] [ 8221] Starting 100% backup of 172.28.128.3:3000 (namespace: test, set: [all], bins: [all], after: [none], before: [none]) to .
2020-02-11 17:49:52 GMT [INF] [ 8221] [src/main/aerospike/as_cluster.c:132][as_cluster_add_nodes_copy] Add node BB9132C60270008 172.28.128.3:3000
2020-02-11 17:49:52 GMT [INF] [ 8221] Processing 1 node(s)
2020-02-11 17:49:52 GMT [INF] [ 8221] Node ID             Objects        Replication    
2020-02-11 17:49:52 GMT [INF] [ 8221] BB9132C60270008     9              1              
2020-02-11 17:49:52 GMT [INF] [ 8221] Namespace contains 9 record(s)
2020-02-11 17:49:52 GMT [INF] [ 8221] Directory . prepared for backup
2020-02-11 17:49:52 GMT [INF] [ 8240] Starting backup for node BB9132C60270008
2020-02-11 17:49:52 GMT [INF] [ 8240] Created new backup file ./BB9132C60270008_00000.asb
2020-02-11 17:49:52 GMT [INF] [ 8240] Backing up 1 secondary index(es)
2020-02-11 17:49:52 GMT [INF] [ 8240] Backing up 4 UDF file(s)
2020-02-11 17:49:53 GMT [INF] [ 8240] Completed backup for node BB9132C60270008, records: 9, size: 8401 (~933 B/rec)
2020-02-11 17:49:53 GMT [INF] [ 8239] Backed up 9 record(s), 1 secondary index(es), 4 UDF file(s) from 1 node(s), 8401 byte(s) in total (~933 B/rec)

这可能会有所帮助,正如我注意到您提到的 docker:https://discuss.aerospike.com/t/invalid-namespace-error/6117

(asbackup 基本上是获取分区映射失败,而且在那篇文章中,是关于不匹配的 mtu)。