https://github.com/regadas/trino-pubsub-event-listener
Trino Google Pub/Sub event listener
https://github.com/regadas/trino-pubsub-event-listener
google-cloud-platform trino trinodb
Last synced: about 2 months ago
JSON representation
Trino Google Pub/Sub event listener
- Host: GitHub
- URL: https://github.com/regadas/trino-pubsub-event-listener
- Owner: regadas
- License: mit
- Created: 2023-02-23T19:27:04.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-08T21:37:23.000Z (2 months ago)
- Last Synced: 2025-04-08T22:28:51.955Z (2 months ago)
- Topics: google-cloud-platform, trino, trinodb
- Language: Java
- Homepage:
- Size: 454 KB
- Stars: 2
- Watchers: 2
- Forks: 6
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# trino-pubsub-event-listener
## Overview
Trino Pub/Sub event listener is a plugin for [Trino](https://trino.io/) that allows you to send query events to Google Cloud Pub/Sub.
``` mermaid
graph LR
A(Trino) -- Query events --> B((Pub/Sub))
B --> C(HTTP)
B --> D(BigQuery)
B --> E(Apache Avro / GCS)
```## Usage
To use this plugin you need to copy the distribution package to the Trino plugin (`/plugin/pubsub-event-listener/`) directory and configure the plugin.
### Configuration
Create `/etc/pubsub-event-listener.properties` with the following required parameters, e.g.:
```properties
event-listener.name=pubsub
pubsub-event-listener.log-created=false
pubsub-event-listener.log-completed=true
pubsub-event-listener.log-split=false
pubsub-event-listener.project-id=
pubsub-event-listener.topic-id=
pubsub-event-listener.message-format=
pubsub-event-listener.credentials-file= # optional
```## Development
### Prerequisites
- Java 17
- Gradle
- `protoc` (Protobuf compiler)### Build
```bash
./gradlew build
```### Distribution package
```bash
./gradlew distTar
```