使用Scala创建Couchbase存储桶?

时间:2018-06-03 21:31:08

标签: scala couchbase

我正在尝试使用scala创建一个couchbase存储桶。我有以下设置:

val cluster: Cluster = CouchbaseCluster.create("127.0.0.1")

val bucketSettings: BucketSettings = new DefaultBucketSettings.Builder().`type`(BucketType.COUCHBASE).name("test").quota(100)

cluster.clusterManager("Administrator","password").insertBucket(bucketSettings)

但是,当我运行此操作时,我收到以下错误:

com.couchbase.client.core.CouchbaseException: Could not insert bucket: {"errors":{"ramQuotaMB":"RAM quota specified is too large to be provisioned into this cluster."},"summaries":{"ramSummary":{"total":8892973056,"otherBuckets":8892973056,"nodesCount":1,"perNodeMegs":100,"thisAlloc":104857600,"thisUsed":0,"free":-104857600},"hddSummary":{"total":249678528512,"otherData":162290338027,"otherBuckets":705505,"thisUsed":0,"free":87387484980}}}

我不确定如何解决这个问题?我没有任何其他水桶。 谢谢!

1 个答案:

答案 0 :(得分:1)

答案就在回答中。您已经分配了所有内存,因此无法创建更多存储桶: "total":8892973056,"otherBuckets":8892973056