NiFi 无法打开沙发底桶

时间:2021-01-16 15:55:31

标签: apache-nifi couchbase

我在 NiFi 中设置了一个流,用于从消息总线中提取主题并将它们写入 Couchbase 存储桶。我遇到的问题是,当我开始流程时,消息从总线上拉出并在 NiFi 中排队,但是当 NiFi Couchbase 处理器尝试写入存储桶时,我收到一条错误消息,指出无法打开存储桶。我已经在 NiFi putcouchbasekey 上验证了 couchbase 用户和存储桶名称匹配。

5:51:32 UTC ERROR
PutCouchbaseKey[id=08732975-0177-1000-4bbe-773a970bf14a] Failed to process session due to Writing document 421af279-017c-4b96-9b84-dc1cf1436db9 to Couchbase Server using StandardFlowFileRecord[uuid=421af279-017c-4b96-9b84-dc1cf1436db9,claim=StandardContentClaim [resourceClaim=StandardResourceClaim[id=1610754666781-177, container=default, section=177], offset=980537, length=31575],offset=0,name=421af279-017c-4b96-9b84-dc1cf1436db9,size=31575] failed due to com.couchbase.client.core.config.ConfigurationException: Could not open bucket.: org.apache.nifi.processor.exception.ProcessException: Writing document 421af279-017c-4b96-9b84-dc1cf1436db9 to Couchbase Server using StandardFlowFileRecord[uuid=421af279-017c-4b96-9b84-dc1cf1436db9,claim=StandardContentClaim [resourceClaim=StandardResourceClaim[id=1610754666781-177, container=default, section=177], offset=980537, length=31575],offset=0,name=421af279-017c-4b96-9b84-dc1cf1436db9,size=31575] failed due to com.couchbase.client.core.config.ConfigurationException: Could not open bucket.

1 个答案:

答案 0 :(得分:1)

当 Couchbase 使用可路由的 DNS 名称而不是 IP 来标识节点时,NiFi 将无法访问存储桶。当我们切换到 IP 时,它起作用了。

相关问题