KnowForge/Apache Atlas 2.5.0/ 返回书籍
Hooks

Couchbase

qianmoQqianmoQ· 更新于 2026-09-21· 阅读 5 分钟· 0 次阅读

登录后可跨设备保存划线和私人笔记登录

Apache Atlas Couchbase bridge

This bridge connects to a Couchbase cluster using DCP protocol and performs real-time analysis and metadata extraction from stored on the cluster documents. The extracted metadata is then sent to Atlas via its REST API

Configuration

The bridge uses environment variables for configuration.

Atlas REST API

Environment variableDescriptionDefault Value
ATLAS_URLAtlas REST API url"http://localhost:21000"
ATLAS_USERNAMEAtlas REST API username"admin"
ATLAS_PASSWORDAtlas REST API password"admin"

Couchbase DCP connection

Environment variableDescriptionDefault Value
CB_CLUSTERCouchbase Cluster connection string"couchbase://localhost"
CB_USERNAMECouchbase Cluster username"Administrator"
CB_PASSWORDCouchbase Cluster password"password"
CB_ENABLE_TLSUse TLSfalse
CB_BUCKETCouchbase bucket to monitor"default"
CB_COLLECTIONSComma-separated list of collections to monitor with each collection listed as {scope}.{collection}
DCP_PORTDCP port to use11210
DCP_FIELD_THRESHOLDA threshold that indicates in what percentage of analyzed messages per collection a field must appear before it is sent to Atlas0
DCP_SAMPLE_RATIOPercentage of DCP messages to be analyzed in form of a short between 0 and 1.1

Running the bridge

In the following commands, replace <VARNAME> and <version> with appropriate values.

  • Set environment variables using export <VARNAME>=... or prefix them before the next command.
  • Run java -cp couchbase-bridge-<version>.jar com.couchbase.atlas.connector.CouchbaseHook.
  • Verify that appropriate couchbase_cluster, couchbase_bucket objects were created on your Atlas cluster.
  • After having some documents updated on the Couchbase cluster, verify that appropriate couchbase_scope, couchbase_collection, and couchbase_field objects were created on your Atlas cluster.

评论

登录后参与评论

正在加载评论…