gentle-state-35322
12/20/2023, 1:54 PMfreezing-airport-6809
gentle-state-35322
12/20/2023, 3:04 PMgentle-state-35322
12/20/2023, 3:04 PMglamorous-carpet-83516
12/20/2023, 6:12 PM@task(
task_config=Spark(
# this configuration is applied to the spark cluster
spark_conf={
"spark.driver.memory": "1000M",
"spark.executor.memory": "1000M",
"spark.executor.cores": "1",
"spark.executor.instances": "2",
"spark.driver.cores": "1",
},
executor_path="/usr/bin/python3",
applications_path="local:///usr/local/bin/entrypoint.py",
),
limits=Resources(mem="2000M"),
cache_version="1",
container_image=spark_image,
)
def hello_spark(partitions: int) -> float:
gentle-state-35322
12/20/2023, 6:44 PM@task(
task_config=Databricks(
# this configuration is applied to the spark cluster
spark_conf={
"spark.driver.memory": "1000M",
"spark.executor.memory": "1000M",
"spark.executor.cores": "1",
"spark.executor.instances": "2",
"spark.driver.cores": "1",
},
databricks_conf={
...
},
applications_path="dbfs:///Filestore/tables/entrypoint.py",
),
limits=Resources(mem="2000M"),
cache_version="1"
)
def hello_spark(partitions: int) -> float:
gentle-state-35322
12/20/2023, 6:46 PMgentle-state-35322
12/20/2023, 6:49 PMglamorous-carpet-83516
12/20/2023, 7:10 PMplugins:
databricks:
entrypointFile: dbfs:///FileStore/tables/entrypoint.py
databricksInstance: <DATABRICKS_ACCOUNT>.<http://cloud.databricks.com|cloud.databricks.com>
k8s:
default-env-vars:
- FLYTE_AWS_ACCESS_KEY_ID: <AWS_ACCESS_KEY_ID>
- FLYTE_AWS_SECRET_ACCESS_KEY: <AWS_SECRET_ACCESS_KEY>
- AWS_DEFAULT_REGION: <AWS_REGION>
gentle-state-35322
12/20/2023, 7:32 PMgentle-state-35322
12/20/2023, 7:33 PMglamorous-carpet-83516
12/20/2023, 7:38 PMglamorous-carpet-83516
12/20/2023, 7:38 PMgentle-state-35322
12/20/2023, 7:55 PMgentle-state-35322
12/20/2023, 7:56 PMglamorous-carpet-83516
12/20/2023, 7:58 PMgentle-state-35322
12/20/2023, 8:02 PMgentle-state-35322
12/20/2023, 8:02 PMglamorous-carpet-83516
12/20/2023, 8:11 PMglamorous-carpet-83516
12/20/2023, 8:12 PMgentle-state-35322
12/20/2023, 8:14 PMgentle-state-35322
12/20/2023, 8:14 PMtall-lock-23197