Skip to content

Spark + Databricks support - #905

Closed
Yanson wants to merge 488 commits into
feast-dev:v0.6-branchfrom
Yanson:ff-ms-spark
Closed

Yanson wants to merge 488 commits into
feast-dev:v0.6-branchfrom
Yanson:ff-ms-spark

Conversation

@Yanson

@Yanson Yanson commented Jul 29, 2020

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

This PR introduces support for Spark running Databricks for ingestion with Delta Lake as the warehouse storage.

It's not our intention to merge this PR directly, rather use it for feedback on which components can be extracted into smaller PRs and what changes might be needed beforehand.

Which issue(s) this PR fixes:

Fixes #764

Does this PR introduce a user-facing change?:

TBD

ben-voz and others added 30 commits June 3, 2020 15:53
isabelcabezasm and others added 13 commits July 17, 2020 09:46
…_redis_empty_pass

fixing "basic redis e2e tests" -> ERROR for jupyter container
- Adapted custom code for upstream changes in release 0.6.0:
  - FeatureSets are delivered to Ingestion Job through Kafka (feast-dev#792)
     - Closes KE-982 (*Spark job fails when too many featureset are provided in the JSON parameter*)
  - Enable isort for Python SDK 843 
  - Enable linting and formatting for e2e tests 832 

- Cleaned up Python SDK code for downloading files vs. directories
…east-dev#81)

Run single Spark job to ingest to both Redis and Delta.

Leverage Feast 0.6.0 change Consolidate ingestion jobs to one job per source feast-dev#817

In application.xml:

    # if true one job per source with many stores would be created
    # if false one job per source-store pair would be created
    consolidate-jobs-per-source: true
Simplified SparkIngestion helper classes:

deleting unused ones
inlining some
sharing code with feast-ingestion to reduce duplication
Merge release 0.6.1. This should put as (almost?) on par with OSS Feast head, so we can prepare a PR.

Disabled a Big Query unit test that is failing in our setup, but not relevant to us.
# Conflicts:
#	Makefile
#	core/pom.xml
#	core/src/main/java/feast/core/config/JobConfig.java
#	docs/getting-started/deploying-feast/docker-compose.md
#	docs/getting-started/deploying-feast/kubernetes.md
#	docs/reference/design-decisions.md
#	docs/user-guide/feature-retrieval.md
#	docs/user-guide/overview.md
#	docs/user-guide/statistics.md
#	infra/charts/feast/Chart.yaml
#	infra/charts/feast/README.md
#	infra/charts/feast/charts/feast-core/Chart.yaml
#	infra/charts/feast/charts/feast-core/README.md
#	infra/charts/feast/charts/feast-jupyter/Chart.yaml
#	infra/charts/feast/charts/feast-jupyter/README.md
#	infra/charts/feast/charts/feast-serving/Chart.yaml
#	infra/charts/feast/charts/feast-serving/README.md
#	infra/charts/feast/requirements.yaml
#	infra/docker-compose/docker-compose.batch.yml
#	infra/docker-compose/docker-compose.yml
#	infra/docker/jupyter/Dockerfile
#	infra/scripts/test-docker-compose.sh
#	ingestion/src/main/java/feast/ingestion/transform/ReadFromSource.java
#	ingestion/src/main/java/feast/ingestion/transform/fn/ValidateFeatureRowDoFn.java
#	ingestion/src/main/java/feast/ingestion/transform/specs/FilterRelevantFunction.java
#	pom.xml
#	protos/feast/core/Runner.proto
#	protos/feast/core/Store.proto
#	protos/feast/serving/ServingService.proto
#	sdk/python/feast/job.py
#	sdk/python/feast/loaders/file.py
#	sdk/python/feast/staging/storage_client.py
#	sdk/python/requirements-ci.txt
#	sdk/python/tests/loaders/test_file.py
#	sdk/python/tests/test_job.py
#	serving/pom.xml
#	serving/src/main/java/feast/serving/service/HistoricalServingService.java
#	serving/src/main/java/feast/serving/service/OnlineServingService.java
#	storage/api/src/main/java/feast/storage/api/retriever/HistoricalRetrievalResult.java
#	storage/api/src/main/java/feast/storage/api/retriever/HistoricalRetriever.java
#	storage/connectors/bigquery/src/main/java/feast/storage/connectors/bigquery/retriever/BigQueryHistoricalRetriever.java
#	storage/connectors/bigquery/src/test/java/feast/storage/connectors/bigquery/writer/BigQuerySinkTest.java
#	storage/connectors/redis/src/main/java/feast/storage/connectors/redis/retriever/RedisClusterOnlineRetriever.java
#	storage/connectors/redis/src/main/java/feast/storage/connectors/redis/retriever/RedisOnlineRetriever.java
#	storage/connectors/redis/src/main/java/feast/storage/connectors/redis/writer/RedisCustomIO.java
#	storage/connectors/redis/src/main/java/feast/storage/connectors/redis/writer/RedisFeatureSink.java
@feast-ci-bot

Copy link
Copy Markdown
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Yanson
To complete the pull request process, please assign zhilingc
You can assign the PR to them by writing /assign @zhilingc in a comment when ready.

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

Details 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

@feast-ci-bot

Copy link
Copy Markdown
Collaborator

Hi @Yanson. Thanks for your PR.

I'm waiting for a feast-dev member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

echo ::set-env name=ARM_SUBSCRIPTION_ID::${{ secrets.ARM_SUBSCRIPTION_ID }}
echo ::set-env name=ARM_TENANT_ID::${{ secrets.ARM_TENANT_ID }}

- name: Terraform init infra

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why introduce terraform given the other myriad of tools already used?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Sorry for any confusion about what's included in this PR. Terraform, Docker GitHub Actions, etc code as been left in to demonstrate our internal build + test process and help understand what needs to be integrated into the main Feast testing strategy. We don't really intend on including that in final PRs.

}
}

provider "azurerm" {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I don't think any more cloud specific content should be added. There is already a large amount of GCP specific stuff. We are trying to add AWS support in a way that doesn't couple us to AWS. At some point cloud providers need to be abstracted away or isolated, so they don't permeate the dependencies.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Again, this is to demonstrate our internal approach. There's no expectation for it to be merged.

@dr3s

dr3s commented Jul 29, 2020

Copy link
Copy Markdown
Collaborator

I wonder if there is a way to separate your PR for databricks support from your specific implementation on Azure. Databricks support would be great but it seems like this PR has a lot of code/config tied to your specific implementation.

@woop

woop commented Jul 29, 2020 •

Copy link
Copy Markdown
Member

I wonder if there is a way to separate your PR for databricks support from your specific implementation on Azure. Databricks support would be great but it seems like this PR has a lot of code/config tied to your specific implementation.

So this PR is more of a strawman for us to have a look at before the submit they real PRs. Right now its just about identifying any problem areas that we want to change, and then agreeing on the set of PRs that would make sense.

}

@Test
@Ignore

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

It shouldn't be here

@pyalex

pyalex commented Jul 30, 2020 •

Copy link
Copy Markdown
Collaborator

Currently there's some difference in ingestion pipelines (beam vs spark). Not sure if there's plan to change it. Just want to save note somewhere.

  1. spark doesn't accept in-flight updates of spec. specs are being loaded once on job start
  2. sinks don't support store subscriptions: all valid rows go to all stores independently of store configuration
  3. spark doesn't write metrics
  4. spark doesn't send to deadletters rows that failed on sink stage

My concern is that if ingestion jobs would be developed in different directions - it would be unfeasible to test them together by some common integration tests. Hence needed support effort would increase.

@Yanson

Yanson commented Jul 30, 2020

Copy link
Copy Markdown
Contributor Author

Currently there's some difference in ingestion pipelines (beam vs spark). Not sure if there's plan to change it. Just want to save note somewhere.

  1. spark doesn't accept in-flight updates of spec. specs are being loaded once on job start
  2. sinks don't support store subscriptions: all valid rows go to all stores independently of store configuration
  3. spark doesn't write metrics
  4. spark doesn't send to deadletters rows that failed on sink stage

My concern is that if ingestion jobs would be developed in different directions - it would be unfeasible to test them together by some common integration tests. Hence needed support effort would increase.

Thank you for this, we intend to match existing functionality. I didn't think all of that was missing, but it's possible it's still in PR in our fork. I'll update this branch or provide clarity in due course.

@mohitkum-ds

Copy link
Copy Markdown

@Yanson @woop we have been waiting for the release of Feast on Azure. Any estimate on ETA for merging of this PR?

@Yanson

Yanson commented Sep 9, 2020

Copy link
Copy Markdown
Contributor Author

@Yanson @woop we have been waiting for the release of Feast on Azure. Any estimate on ETA for merging of this PR?

This PR will not be merged directly - the features will be extracted into smaller PRs over the coming weeks. The first step is for this PR to reach feature parity and be analysed fully.

@Yanson

Yanson commented Oct 20, 2020

Copy link
Copy Markdown
Contributor Author

Closing in favour of #1076.

@Yanson Yanson closed this Oct 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.