Skip to content

Commit 8bb63e5

Browse files
committed
Merge PR feast-dev#6550 (feat/spark-application-compute-engine) into merged-spark-e2e
2 parents 3f6359d + 9578721 commit 8bb63e5

10 files changed

Lines changed: 1320 additions & 131 deletions

File tree

‎sdk/python/feast/feature_store.py‎

Lines changed: 184 additions & 131 deletions
Large diffs are not rendered by default.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
feast/.git
2+
feast/__pycache__
3+
feast/**/__pycache__
4+
feast/.mypy_cache
5+
feast/tests
6+
feast/.pixi
7+
**/*.pyc
8+
**/.pytest_cache
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
FROM apache/spark:4.0.1
2+
3+
USER root
4+
5+
RUN apt-get update && apt-get install --no-install-suggests --no-install-recommends --yes git && rm -rf /var/lib/apt/lists/*
6+
7+
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
8+
9+
ENV PYTHONPATH="/opt/spark/python:/opt/spark/python/lib/py4j-0.10.9.9-src.zip"
10+
ENV SPARK_HOME="/opt/spark"
11+
12+
WORKDIR /app
13+
14+
COPY sdk/python/feast/infra/compute_engines/spark_application/main.py /opt/feast/main.py
15+
16+
# Copy necessary parts of the Feast codebase
17+
COPY sdk/python sdk/python
18+
COPY protos protos
19+
COPY pyproject.toml pyproject.toml
20+
COPY README.md README.md
21+
22+
# setuptools_scm needs .git to infer the version.
23+
# https://github.com/pypa/setuptools_scm#usage-from-docker
24+
RUN --mount=source=.git,target=.git,type=bind uv pip install --system --no-cache-dir '.[redis,grpcio,k8s]' pymysql
25+
26+
# Hadoop AWS JARs for S3A filesystem support + AWS SDK v2 bundle
27+
RUN curl -sL https://repo1.maven.org/maven2/org/apache/hadoop/hadoop-aws/3.4.1/hadoop-aws-3.4.1.jar \
28+
-o /opt/spark/jars/hadoop-aws-3.4.1.jar && \
29+
curl -sL https://repo1.maven.org/maven2/com/amazonaws/aws-java-sdk-bundle/1.12.782/aws-java-sdk-bundle-1.12.782.jar \
30+
-o /opt/spark/jars/aws-java-sdk-bundle-1.12.782.jar && \
31+
curl -sL https://repo1.maven.org/maven2/software/amazon/awssdk/bundle/2.28.4/bundle-2.28.4.jar \
32+
-o /opt/spark/jars/bundle-2.28.4.jar
33+
34+
USER spark

‎sdk/python/feast/infra/compute_engines/spark_application/__init__.py‎

Whitespace-only changes.

0 commit comments

Comments
 (0)