Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add JobTemplates and Flink demo #74

Merged
merged 4 commits into from
Dec 6, 2024
Merged

Add JobTemplates and Flink demo #74

merged 4 commits into from
Dec 6, 2024

Conversation

ryannedolan
Copy link
Collaborator

Summary

  • Added JobTemplates
  • Added demo flink-template
  • Minor planner improvements

Details

JobTemplates, along with TableTemplates, are used by the planner to dynamically assemble a pipeline. The pipeline includes all source tables, the sink table, and any jobs. By "installing" a JobTemplate, you can enable Hoptimator to deploy a physical job (or indeed multiple jobs) as part of a pipeline.

As an example, a basic flink-template is provided, which deploys a FlinkDeployment for each pipeline.

Testing

Integration tests have been updated to account for the job spec.

When we create a materialized view:

0: Hoptimator> create materialized view kafka."test1" as select * from kafka."existing-topic-1";

... we can see that a FlinkDeployment is created:

$ kubectl get flinkdeployments
NAME                   JOB STATUS    LIFECYCLE STATE
kafka-database-test1   RECONCILING   DEPLOYED

The pipeline controller can be seen checking on the status of each source, sink, and job in the pipeline:

Checking status of Pipeline kafka-test1...
Object kafka/KafkaTopic/kafka-database-existing-topic-1 considered ready by default.
KafkaTopic/kafka-database-existing-topic-1 is ready.
Object kafka/KafkaTopic/kafka-database-test1 considered ready by default.
KafkaTopic/kafka-database-test1 is ready.
Pipeline kafka-test1 is NOT ready

Base automatically changed from pipeline-controller to main December 6, 2024 19:57
@ryannedolan ryannedolan requested a review from jogrogan December 6, 2024 20:50
@ryannedolan ryannedolan enabled auto-merge (squash) December 6, 2024 20:50
Copy link
Collaborator

@jogrogan jogrogan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ryannedolan ryannedolan merged commit 11c53f8 into main Dec 6, 2024
1 check passed
@ryannedolan ryannedolan deleted the flink-deployer branch December 6, 2024 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants