Create a JAR application Limited availability
Aiven for Apache Flink® enables you to upload and deploy custom code as a JAR file, enhancing your Apache Flink applications with advanced data processing capabilities.
Prerequisite
- Custom JARs for Aiven for Apache Flink is a limited availability feature. To try this feature, request access by contacting the sales team.
- Create an Aiven for Apache Flink service and click Upload and deploy custom JARs to enable custom JARs during service creation.
Enabling Custom JARs for existing services is currently not possible. If you did not enable this feature during service creation, you must create a service with Custom JARs enabled.
Create and deploy a JAR application
-
Access the Aiven Console and select the Aiven for Apache Flink service to deploy a JAR application to.
-
From the left sidebar, click Applications and click Create application.
-
In the Create application dialog, enter a name for your JAR application, and select JAR as the application type from the drop-down.
-
Click Create application to proceed.
-
Click Upload first version to upload the first version of the application.
Custom JAR file size limitCustom JAR files have a maximum size of 100 MB. For more information, contact the sales or support team.
-
In the Upload new version dialog:
- Click Choose file to select your custom JAR file.
- Select the Terms of Service checkbox to indicate your agreement.
- Click Upload version to upload your JAR file.
-
After the upload, you are redirected to the application'soverview page.
-
To deploy the application, click Create deployment. In the Create new deployment dialog:
- Select the application version to deploy.
- Select a savepoint if you wish to deploy from a specific state. No savepoints are available for the first application deployment.
- Toggle Restart on failure to automatically restart Flink jobs upon failure. See Restart strategy in SQL and JAR applications for details.
- In the Program args field, provide command-line arguments consisting of variables and configurations relevant to your application'slogic upon submission. Each argument is limited to 64 characters, with a total limit of 32 separate items.
- Specify the number of parallel instances you require for the task.
-
Click Deploy without a savepoint to begin the deployment process.
-
While deploying, the application status shows Initializing. Once deployed, the status changes to Running.