Create Python
Preconditions
Services provided by Ververica Platform: Self-Managed Console are subject to deployment environments and network environments. Therefore, when you develop Python API jobs, take note of the following limits:
- Python is pre-installed in your Ververica Platform: Self-Managed Console cluster, and common Python libraries such as pandas, NumPy, and PyArrow are pre-installed in the Python environment. Therefore, you must develop code with the latest python version.
- Java Development Kit (JDK) 1.11 is used in the running environment of Ververica Platform: Self-Managed Console. If your Python API job depends on a third-party JAR package, make sure that the JAR package is compatible with JDK 1.11.
- Only open source Scala 2.11 is supported. If your Python API job depends on a third-party JAR package, make sure that the JAR package that is compatible with Scala 2.11 is used.
Step 1: Upload the Python Package
Before the job runs, you need to follow these steps to upload the Python package, Python job file, or Python dependency to Ververica Platform: Self-Managed Console.
The maximum supported file size is 200 MB, but it's recommended to keep files under 100 MB. If your file exceeds this size, consider splitting it into smaller files. You can then select them under 'Additional Dependencies' when creating the deployment.
- In the left navigation, click the Namespace selector and select the namespace that you want to open.
You need to upload the official JAR package of PyFlink.
Ververica recommends that you upload Python resources through a separate Python job portal, see Deploy a Python job.
Step 2: Deploy a Python Job
- On the Deployments page, click Create Deployment to display the Create Deployment dialog.
- Enter the information about Python job deployment.
- Click Deploy
When the deployment is complete, start the job on the Deployments page. For more information about how to start a job, see the Start Deployment section (/../user-guides/admin-operator-guide/manage-deployments/start-deployment).