{"id":22822950,"url":"https://github.com/renardeinside/dbx-kafka-protobuf-example","last_synced_at":"2026-04-28T01:32:33.166Z","repository":{"id":108304240,"uuid":"435128594","full_name":"renardeinside/dbx-kafka-protobuf-example","owner":"renardeinside","description":"Sample code for working with Kafka \u0026 Protobuf in Databricks","archived":false,"fork":false,"pushed_at":"2021-12-06T12:06:30.000Z","size":21,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-16T21:46:05.213Z","etag":null,"topics":["databricks","kafka","protobuf","scala","spark","spark-streaming"],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/renardeinside.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-12-05T09:54:48.000Z","updated_at":"2023-01-31T14:38:29.000Z","dependencies_parsed_at":"2023-05-21T12:45:25.607Z","dependency_job_id":null,"html_url":"https://github.com/renardeinside/dbx-kafka-protobuf-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/renardeinside/dbx-kafka-protobuf-example","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renardeinside%2Fdbx-kafka-protobuf-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renardeinside%2Fdbx-kafka-protobuf-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renardeinside%2Fdbx-kafka-protobuf-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renardeinside%2Fdbx-kafka-protobuf-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/renardeinside","download_url":"https://codeload.github.com/renardeinside/dbx-kafka-protobuf-example/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/renardeinside%2Fdbx-kafka-protobuf-example/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32362781,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"ssl_error","status_checked_at":"2026-04-27T20:07:00.910Z","response_time":128,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["databricks","kafka","protobuf","scala","spark","spark-streaming"],"created_at":"2024-12-12T16:13:47.286Z","updated_at":"2026-04-28T01:32:33.159Z","avatar_url":"https://github.com/renardeinside.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"Example Spark Streaming Job with Amazon MSK \u0026 Protobuf on Databricks\n===============================================================\n\nThis repository contains an example job which emulates writing/reading events to Kafka with Protobuf SerDe using Spark Streaming.\n\n.. contents:: :local:\n\nQuickstart\n----------\n\n* Clone the repository (or open it in Intellij IDEA)\n* Generate Protobuf specs via:\n\n.. code-block:: bash\n\n    sbt clean compile\n\n* In Intellij IDEA mark the :code:`target/scala-2.12/src_managed/main` as generated sources root. Important: un-mark nested main/scalapb as generated sources root, otherwise you'll run into issues while compiling the project with Intellij.\n* Configure Python environment and Databricks CLI\n* Install and configure :code:`dbx`:\n\n.. code-block:: bash\n\n    pip install dbx\n    dbx configure --profile-name=\u003cyour-databricks-cli-profile-name\u003e\n\n* Provide required properties in the :code:`.env` file:\n\n.. code-block:: bash\n\n    INSTANCE_PROFILE_NAME=\"your-instance-profile\" # instance profile to access the MSK instance\n    DATABRICKS_CONFIG_PROFILE=\"your-databricks-cli-profile-name\"\n    KAFKA_BOOTSTRAP_SERVERS_TO_SECRETS=\"\" # Kafka Bootstrap Servers string\n\n* Create the secret scope:\n\n.. code-block::\n\n    make create-scope\n\n* Add the secrets:\n\n.. code-block::\n\n    make add-secrets\n\n* Create a new instance pool in your databricks environment with name :code:`dbx-pool`.\n\n* To deploy and launch the job in dev mode (the job won't be created or updated, ephemeral job run will be used):\n\n.. code-block::\n\n    make dev-launch-generator\n    make dev-launch-processor\n\n* To deploy the jobs so they'll be reflected in the Jobs UI:\n\n.. code-block::\n\n    make jobs-deploy\n\n\n\nLocal tests\n-----------\n\nLocal testing suite requires :code:`sbt` and :code:`Docker`, since we're using :code:`testcontainers` to run Kafka environment for unit tests.\n\nPlease find test example in :code:`src/test/scala/net/renarde/dbx/demos/app/UnifiedAppTest.scala`.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenardeinside%2Fdbx-kafka-protobuf-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frenardeinside%2Fdbx-kafka-protobuf-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frenardeinside%2Fdbx-kafka-protobuf-example/lists"}