Create a JAR deployment
Step 1: Upload the JAR package
Before the job runs, follow these steps to upload the JAR package, Python job file, or Python dependency to Ververica Cloud 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.
-
On the Dashboard page, open the console for the workspace you want to manage.
-
In the Console navigation pane, click Artifacts.
-
Click Upload Artifact and select the JAR package that you want to upload.
Step 2: Deploy a JAR job
-
On the Deployments page, click Create Deployment.
-
Enter the information about JAR job deployment.
Parameter Description Deployment type Select JAR. Deployment name Enter the name of the JAR job. Engine version Starting with the latest VERA version. JAR URI Select a file or manually upload a new file, you can drag and drop the file into this area or click the icon on the right to select the file to upload. Entry Point Class The entry class for the program. If your JAR package does not specify a main class, enter the fully qualified path to your Entry Point Class here. Entry Point Main Arguments You can pass in the parameter here and call it inside the main method. The parameter information length should not be greater than 1024, and it is not recommended to pass complex parameters, which refer to parameters that include line breaks, spaces or other special characters. If you need to pass in complex parameters, use additional dependency files to transfer. Additional Dependencies (1) (Recommended) Select the target you have uploaded to attach dependent files. You must upload the dependent files on the left side of Artifacts page in advance. (2) Enter the S3 path of the dependent file attached to the target. You must upload the attached dependent files to the S3 bucket corresponding to the current instance in advance, and the S3 bucket that you selected when you activated Flink Full Hosting must upload the attached dependent file. (3) Fill in the URL of the dependent file attached to the target, and currently only URLs that end with the file name, such as s3://xxxxxx/file. You need to upload the attached dependent files to a publicly accessible HTTP service in advance. Note: Session clusters do not support setting additional dependent files, and only Per-Job clusters support setting additional dependent files. Session mode jobs don't support configuring additional dependent file paths. Deploy to the Session cluster If you select Submit to Session cluster, select the target Session cluster from the drop-down list below. For more information about how to create a Session cluster, see the Session clusters section. -
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.