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

CLI command to start/stop/list streaming ingestion job on emr #1040

Merged
merged 1 commit into from
Oct 13, 2020

Conversation

oavdeev
Copy link
Collaborator

@oavdeev oavdeev commented Oct 12, 2020

What this PR does / why we need it:

Add SDK glue code and the corresponding CLI command to kick off the streaming ingestion on EMR, check if it is already running, stop it and list running jobs.

Added CLI commands `start-stream-to-online` and `stop-stream-to-online` to kick off stream ingestion jobs 

@oavdeev
Copy link
Collaborator Author

oavdeev commented Oct 12, 2020

/kind feature

@feast-ci-bot feast-ci-bot added kind/feature New feature or request and removed needs-kind labels Oct 12, 2020

client = Client()
table = client.get_feature_table(feature_table)
feast.pyspark.aws.jobs.start_stream_to_online(client, table, [jar] if jar else [])
Copy link
Member

Choose a reason for hiding this comment

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

Should we be bypassing the client here? What would happen in the case where we use the job service? or will that be added later?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The job service will have to talk to the core service to get the metadata too, so it would need a client (for example, to find the feature tables so it can kick off streaming ingestion jobs)

Copy link
Member

@woop woop Oct 15, 2020

Choose a reason for hiding this comment

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

Oh I meant moving all requests through the client, even starting jobs. But you've already answered this.

@woop
Copy link
Member

woop commented Oct 13, 2020

@oavdeev can we add a release note to this PR please (as in PR template)

@woop
Copy link
Member

woop commented Oct 13, 2020

/retest

@woop
Copy link
Member

woop commented Oct 13, 2020

Did you rebase this PR @oavdeev. It's strange that its looking for a job controller.

Signed-off-by: Oleg Avdeev <oleg.v.avdeev@gmail.com>
@oavdeev
Copy link
Collaborator Author

oavdeev commented Oct 13, 2020

@oavdeev can we add a release note to this PR please (as in PR template)

Added but i expect the actual interface may still change a bit before the release

@feast-ci-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: oavdeev, woop

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@woop
Copy link
Member

woop commented Oct 13, 2020

/lgtm

@feast-ci-bot feast-ci-bot merged commit ccafcca into feast-dev:master Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants