Help Center>
Data Lake Insight>
FAQs>
Flink Jobs>
Flink Jar Jobs>
Does a Flink JAR Job Support Configuration File Upload? How Do I Upload a Configuration File?
Updated on 2022-09-20 GMT+08:00
Does a Flink JAR Job Support Configuration File Upload? How Do I Upload a Configuration File?
Configuration files can be uploaded for user-defined jobs (JAR).
- Upload the configuration file to DLI through Package Management.
- In the Other Dependencies area of the Flink JAR job, select the created DLI package.
- Load the file through ClassName.class.getClassLoader().getResource("userData/fileName") in the code. In the file name, fileName indicates the name of the file to be accessed, and ClassName indicates the name of the class that needs to access the file.
Parent topic: Flink Jar Jobs
Flink Jar Jobs FAQs
- How Do I Configure Checkpoints for Flink Jar Jobs and Save the Checkpoints to OBS?
- Does a Flink JAR Job Support Configuration File Upload? How Do I Upload a Configuration File?
- Why Does the Submission Fail Due to Flink JAR File Conflict?
- Why Does a Flink Jar Job Fail to Access GaussDB(DWS) and a Message Is Displayed Indicating Too Many Client Connections?
- Why Is Error Message "Authentication failed" Displayed During Flink Jar Job Running?
- Why Is Error Invalid OBS Bucket Name Reported After a Flink Job Submission Failed?
- Why Does the Flink Submission Fail Due to Hadoop JAR File Conflict?
- How Do I Connect a Flink jar Job to SASL_SSL?
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.
The system is busy. Please try again later.
more