{"id":13783368,"url":"https://github.com/nodefluent/bigtable-kafka-connect","last_synced_at":"2026-03-02T23:32:20.252Z","repository":{"id":22925161,"uuid":"97491914","full_name":"nodefluent/bigtable-kafka-connect","owner":"nodefluent","description":"wip","archived":false,"fork":false,"pushed_at":"2022-12-06T22:02:35.000Z","size":566,"stargazers_count":3,"open_issues_count":11,"forks_count":2,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-04-14T07:54:11.983Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nodefluent.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-17T15:29:56.000Z","updated_at":"2021-04-01T07:31:59.000Z","dependencies_parsed_at":"2023-01-14T01:00:13.071Z","dependency_job_id":null,"html_url":"https://github.com/nodefluent/bigtable-kafka-connect","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodefluent%2Fbigtable-kafka-connect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodefluent%2Fbigtable-kafka-connect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodefluent%2Fbigtable-kafka-connect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nodefluent%2Fbigtable-kafka-connect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nodefluent","download_url":"https://codeload.github.com/nodefluent/bigtable-kafka-connect/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224036170,"owners_count":17245029,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-03T19:00:19.879Z","updated_at":"2026-03-02T23:32:20.208Z","avatar_url":"https://github.com/nodefluent.png","language":"JavaScript","funding_links":[],"categories":["Development"],"sub_categories":["Connectors"],"readme":"# bigtable-kafka-connect\n\nKafka Connect connector for Google BigTable\n\n## Use API\n\n```\nnpm install --save bigtable-kafka-connect\n```\n\n### bigtable -\u003e kafka\n\n```es6\nconst { runSourceConnector } = require(\"bigtable-kafka-connect\");\nrunSourceConnector(config, [], onError).then(config =\u003e {\n    //runs forever until: config.stop();\n});\n```\n\n### kafka -\u003e bigtable\n\n```es6\nconst { runSinkConnector } = require(\"bigtable-kafka-connect\");\nrunSinkConnector(config, [], onError).then(config =\u003e {\n    //runs forever until: config.stop();\n});\n```\n\n### kafka -\u003e bigtable (with custom topic (no source-task topic))\n\n```es6\nconst { runSinkConnector, ConverterFactory } = require(\"bigtable-kafka-connect\");\n\nconst etlFunc = (messageValue, callback) =\u003e {\n\n    //type is an example json format field\n    if (messageValue.type === \"publish\") {\n        return callback(null, {\n            id: messageValue.payload.id,\n            name: messageValue.payload.name,\n            info: messageValue.payload.info\n        });\n    }\n\n    if (messageValue.type === \"unpublish\") {\n        return callback(null, null); //null value will cause deletion\n    }\n\n    callback(new Error(\"unknown messageValue.type\"));\n};\n\nconst converter = ConverterFactory.createSinkSchemaConverter(etlFunc);\n\nrunSinkConnector(config, [converter], onError).then(config =\u003e {\n    //runs forever until: config.stop();\n});\n\n/*\n    this example would be able to store kafka message values\n    that look like this (so completely unrelated to messages created by a default SourceTask)\n    {\n        payload: {\n            id: 1,\n            name: \"first item\",\n            info: \"some info\"\n        },\n        type: \"publish\"\n    }\n*/\n```\n\n## Use CLI\nnote: in BETA :seedling:\n\n```\nnpm install -g bigtable-kafka-connect\n```\n\n```\n# run source etl: bigtable -\u003e kafka\nnkc-bigtable-source --help\n```\n\n```\n# run sink etl: kafka -\u003e bigtable\nnkc-bigtable-sink --help\n```\n\n## Config(uration)\n```es6\nconst config = {\n    kafka: {\n        kafkaHost: \"localhost:9092\",\n        logger: null,\n        groupId: \"kc-bigtable-test\",\n        clientName: \"kc-bigtable-test-name\",\n        workerPerPartition: 1,\n        options: {\n            sessionTimeout: 8000,\n            protocol: [\"roundrobin\"],\n            fromOffset: \"earliest\", //latest\n            fetchMaxBytes: 1024 * 100,\n            fetchMinBytes: 1,\n            fetchMaxWaitMs: 10,\n            heartbeatInterval: 250,\n            retryMinTimeout: 250,\n            requireAcks: 1,\n            //ackTimeoutMs: 100,\n            //partitionerType: 3\n        }\n    },\n    topic: \"sc_test_topic\",\n    partitions: 1,\n    maxTasks: 1,\n    pollInterval: 2000,\n    produceKeyed: true,\n    produceCompressionType: 0,\n    connector: {\n        batchSize: 500,\n        maxPollCount: 500,\n        projectId: \"bt-project-id\",\n        dataset: \"bt_dataset\",\n        table: \"bt_table\",\n        columnFamily: \"bt_family\",\n        idColumn: \"id\"\n    },\n    http: {\n        port: 3149,\n        middlewares: []\n    },\n    enableMetrics: true\n};\n```\n\n### Links\n\n- [BigTable API Documentation](https://googlecloudplatform.github.io/google-cloud-node/#/docs/bigtable/master/bigtable)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodefluent%2Fbigtable-kafka-connect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnodefluent%2Fbigtable-kafka-connect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnodefluent%2Fbigtable-kafka-connect/lists"}