Couchbase cbdocloader错误

时间:2015-08-21 20:26:30

标签: couchbase document-oriented-db nosql

我正在尝试使用cbdocloader tool从zip文件向我的couchbase服务器添加多个JSON文档(每个JSON文档都在其自己的文件中,文件以id.json命名) 。使用以下命令语法

./cbdocloader -n localhost:8091 -u Administrator -p xxx -b ships -s 100 ~/json-docs.zip

然而,我收到了以下回复

[2015-08-21 21:08:35,522] - [rest_client] [140411799267072] - INFO - existing buckets : [u'beer-sample', u'default']
[2015-08-21 21:08:35,530] - [rest_client] [140411799267072] - INFO - http://localhost:8091//pools/default/buckets with param: proxyPort=11211&bucketType=membase&authType=sasl&name=ships&replicaNumber=1&saslPassword=&ramQuotaMB=100
[2015-08-21 21:08:35,543] - [rest_client] [140411799267072] - ERROR - http://localhost:8091//pools/default/buckets error 400 reason: Warning: you do not have enough servers to support this number of replicas., RAM quota specified is too large to be provisioned into this cluster. {"errors":{"ramQuotaMB":"RAM quota specified is too large to be provisioned into this cluster.","replicaNumber":"Warning: you do not have enough servers to support this number of replicas."},"summaries":{"ramSummary":{"total":2486173696,"otherBuckets":2486173696,"nodesCount":1,"perNodeMegs":100,"thisAlloc":104857600,"thisUsed":0,"free":-104857600},"hddSummary":{"total":6206062592,"otherData":5063150332,"otherBuckets":25820993,"thisUsed":0,"free":1117091267}}}

作为一个完整的沙发基地,我不确定我做错了什么?我已经尝试使用-s指定较低的配额,但它不允许少于100?在couchbase控制台中,它说我已经为群集分配了2.3GB。

2 个答案:

答案 0 :(得分:3)

问题是示例数据桶(啤酒和默认存储桶)占用了服务器的所有分配空间,如果我从控制台删除了那些,那么我就能运行命令。现在要弄清楚为什么不加载zip中的所有文件。

答案 1 :(得分:0)

您不需要删除存储桶,问题在于分配给每个存储桶的RAM。

在我的情况下,服务器有2GB RAM已分配,每个桶分配100Mb但默认存储桶有剩余的2GB RAM。

只需进入分配了最大内存量的存储桶并进行编辑即可。减少每个节点的RAM配额,以便为新存储桶释放内存。

希望这有帮助。