-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move deprecated integrations docs and clean up code files (#1655)
* clean up bigquery plugin files Signed-off-by: nikki everett <nikki@union.ai> * update index page to reflect that deprecated integration docs have moved Signed-off-by: nikki everett <nikki@union.ai> * remove markdown from deprecated examples Signed-off-by: nikki everett <nikki@union.ai> * clean up READMEs Signed-off-by: nikki everett <nikki@union.ai> * exclude deprecated integrations from flytesnacks docs build Signed-off-by: nikki everett <nikki@union.ai> * fix typo Signed-off-by: nikki everett <nikki@union.ai> * formatting Signed-off-by: nikki everett <nikki@union.ai> --------- Signed-off-by: nikki everett <nikki@union.ai>
- Loading branch information
Showing
12 changed files
with
38 additions
and
379 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,40 +1,5 @@ | ||
(bigquery_plugin)= | ||
# BigQuery plugin example | ||
|
||
# BigQuery plugin | ||
**Note:** This example code uses the legacy implementation of the BigQuery integration. We recommend using the [BigQuery agent](https://docs.flyte.org/en/latest/flytesnacks/examples/bigquery_agent/index.html) instead. | ||
|
||
```{note} | ||
This is a legacy implementation of the BigQuery integration. We recommend using the {ref}`BigQuery agent <bigquery_agent>` instead. | ||
``` | ||
|
||
## Installation | ||
|
||
To install the BigQuery plugin, run the following command: | ||
|
||
```{eval-rst} | ||
.. prompt:: bash | ||
pip install flytekitplugins-bigquery | ||
``` | ||
|
||
This plugin is purely a spec. Since SQL is completely portable, there is no need to build a Docker container. | ||
|
||
## Example usage | ||
|
||
For a usage example, see the {doc}`BigQuery example query<bigquery_plugin_example>` page. | ||
|
||
## Flyte deployment configuration | ||
|
||
BigQuery plugins are [enabled in FlytePropeller's config](https://docs.flyte.org/en/latest/deployment/plugin_setup/gcp/bigquery.html#deployment-plugin-setup-gcp-bigquery). | ||
|
||
To run the BigQuery plugin on a Flyte cluster, you must configure it in your Flyte deployment. For more information, see the | ||
{std:ref}`BigQuery plugin setup guide <flyte:deployment-plugin-setup-gcp-bigquery>`. | ||
|
||
```{toctree} | ||
:maxdepth: -1 | ||
:hidden: | ||
bigquery_plugin_example | ||
``` | ||
This directory contains example code for the deprecated BigQuery plugin. For documentation on installing and using the plugin, see the [BigQuery plugin documentation](https://docs.flyte.org/en/latest/deprecated_integrations/bigquery_plugin/index.html) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,62 +1,5 @@ | ||
# Databricks plugin | ||
# Databricks plugin example | ||
|
||
```{eval-rst} | ||
.. tags:: Spark, Integration, DistributedComputing, Data, Advanced | ||
``` | ||
**Note:** This example code uses a legacy implementation of the Databricks integration. We recommend using the [Databricks agent](https://docs.flyte.org/en/latest/flytesnacks/examples/databricks_agent/index.html) instead. | ||
|
||
```{note} | ||
This is a legacy implementation of the Databricks integration. We recommend using the {ref}`Databricks agent <databricks_agent>` instead. | ||
``` | ||
|
||
Flyte can be integrated with the [Databricks](https://www.databricks.com/) service, | ||
enabling you to submit Spark jobs to the Databricks platform. | ||
|
||
## Installation | ||
|
||
The Databricks plugin comes bundled with the Spark plugin. To install the Spark plugin, run the following command: | ||
|
||
``` | ||
pip install flytekitplugins-spark | ||
``` | ||
|
||
## Flyte deployment configuration | ||
|
||
To run the Databricks plugin on a Flyte cluster, you must configure it in your Flyte deployment. For more information, see the | ||
{std:ref}`Databricks plugin setup guide <flyte:deployment-plugin-setup-webapi-databricks>`. | ||
|
||
## Example usage | ||
|
||
For a usage example, see the {doc}`Databricks plugin example <databricks_plugin_example>` page. | ||
|
||
### Run the example on the Flyte cluster | ||
|
||
To run the provided example on a Flyte cluster, use the following command: | ||
|
||
``` | ||
pyflyte run --remote \ | ||
--image ghcr.io/flyteorg/flytecookbook:databricks_plugin-latest \ | ||
https://raw.githubusercontent.com/flyteorg/flytesnacks/master/examples/databricks_plugin/databricks_plugin/databricks_job.py \ | ||
my_databricks_job | ||
``` | ||
|
||
Using Spark on Databricks allows comprehensive versioning through a | ||
custom-built Spark container. This container also facilitates the execution of standard Spark tasks. | ||
|
||
To use Spark, the image should employ a base image provided by Databricks, | ||
and the workflow code must be copied to `/databricks/driver`. | ||
|
||
```{literalinclude} ../../../examples/databricks_plugin/Dockerfile | ||
:language: docker | ||
:emphasize-lines: 1,7-8,20 | ||
``` | ||
|
||
|
||
```{toctree} | ||
:maxdepth: -1 | ||
:hidden: | ||
databricks_plugin_example | ||
``` | ||
This directory contains example code for the deprecated Databricks plugin. For documentation on installing and using the plugin, see the [Databricks plugin documentation](https://docs.flyte.org/en/latest/deprecated_integrations/databricks_plugin/index.html) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,98 +1,3 @@ | ||
```{eval-rst} | ||
.. tags:: AWS, GCP, AliCloud, Integration, Advanced | ||
``` | ||
**Note:** This example code uses a legacy implementation of the MemVerge Memory Machine Cloud (MMCloud) integration. We recommend using the [MMCloud agent](https://docs.flyte.org/en/latest/flytesnacks/examples/mmcloud_agent/index.html) instead. | ||
|
||
(mmcloud_plugin)= | ||
|
||
# Memory Machine Cloud plugin | ||
|
||
```{note} | ||
This is a legacy implementation of the Memory Machine Cloud integration. We recommend using the {ref}`Memory Machine Cloud agent <mmcloud_agent>` instead. | ||
``` | ||
|
||
[MemVerge](https://memverge.com/) [Memory Machine Cloud](https://www.mmcloud.io/) (MMCloud)—available on AWS, GCP, and AliCloud—empowers users to continuously optimize cloud resources during runtime, safely execute stateful tasks on spot instances, and monitor resource usage in real time. These capabilities make it an excellent fit for long-running batch workloads. Flyte can be integrated with MMCloud, allowing you to execute Flyte tasks using MMCloud. | ||
|
||
## Installation | ||
|
||
To install the plugin, run the following command: | ||
|
||
```{eval-rst} | ||
.. prompt:: bash | ||
pip install flytekitplugins-mmcloud | ||
``` | ||
|
||
To get started with MMCloud, see the [MMCloud user guide](https://docs.memverge.com/mmce/current/userguide/olh/index.html). | ||
|
||
## Flyte deployment configuration | ||
|
||
The MMCloud plugin is [enabled in FlytePropeller's configuration](https://docs.flyte.org/en/latest/deployment/plugins/memverge/mmcloud.html). | ||
|
||
## Getting Started | ||
|
||
This plugin allows executing `PythonFunctionTask` using MMCloud without changing any function code. | ||
|
||
```{eval-rst} | ||
.. testcode:: awsbatch-quickstart | ||
from flytekitplugins.mmcloud import MMCloudConfig | ||
@task(task_config=MMCloudConfig()) | ||
def to_str(i: int) -> str: | ||
return str(i) | ||
``` | ||
|
||
[Resource](https://docs.flyte.org/en/latest/user_guide/productionizing/customizing_task_resources.html) (cpu and mem) requests and limits, [container](https://docs.flyte.org/en/latest/user_guide/customizing_dependencies/multiple_images_in_a_workflow.html) images, and environment variable specifications are supported. | ||
|
||
[ImageSpec](https://docs.flyte.org/en/latest/user_guide/customizing_dependencies/imagespec.html#image-spec-example) may be used to define images to run tasks. | ||
|
||
### Credentials | ||
|
||
The following [secrets](https://docs.flyte.org/en/latest/user_guide/productionizing/secrets.html) are required to be defined for the agent server: | ||
* `mmc_address`: MMCloud OpCenter address | ||
* `mmc_username`: MMCloud OpCenter username | ||
* `mmc_password`: MMCloud OpCenter password | ||
|
||
### Defaults | ||
|
||
Compute resources: | ||
* If only requests are specified, there are no limits. | ||
* If only limits are specified, the requests are equal to the limits. | ||
* If neither resource requests nor limits are specified, the default requests used for job submission are `cpu="1"` and `mem="1Gi"`, and there are no limits. | ||
|
||
### Agent Image | ||
|
||
Install `flytekitplugins-mmcloud` in the agent image. | ||
|
||
A `float` binary (obtainable via the OpCenter) is required. Copy it to the agent image `PATH`. | ||
|
||
Sample `Dockerfile` for building an agent image: | ||
```dockerfile | ||
FROM python:3.11-slim-bookworm | ||
|
||
WORKDIR /root | ||
ENV PYTHONPATH /root | ||
|
||
# flytekit will autoload the agent if package is installed. | ||
RUN pip install flytekitplugins-mmcloud | ||
COPY float /usr/local/bin/float | ||
|
||
# For flytekit versions <= v1.10.2, use pyflyte serve. | ||
# CMD pyflyte serve --port 8000 | ||
# For flytekit versions > v1.10.2, use pyflyte serve agent. | ||
CMD pyflyte serve agent --port 8000 | ||
``` | ||
|
||
## Example usage | ||
|
||
For a usage example, see the {ref}`Memory Machine Cloud example <mmcloud_plugin_example>` page. | ||
|
||
|
||
|
||
```{toctree} | ||
:maxdepth: -1 | ||
:hidden: | ||
mmcloud_plugin_example | ||
``` | ||
This directory contains example code for the deprecated MMCloud plugin. For documentation on installing and using the plugin, see the [MMCloud plugin documentation](https://docs.flyte.org/en/latest/deprecated_integrations/mmcloud_plugin/index.html) |
Oops, something went wrong.