JAR Statements
JAR statements are used to add user jars into the classpath or remove user jars from the classpath or show added jars in the classpath in the runtime.
JAR语句用于将用户jars添加到类路径中,或从类路径中删除用户jars,或在runtime中的类路径中显示添加的jars。
Flink SQL supports the following JAR statements for now:
Flink SQL目前支持以下JAR语句:
- ADD JAR
- REMOVE JAR
- SHOW JARS
Attention JAR statements only work in the SQL CLI.
注意:JAR语句只能在SQL CLI中工作。
Run a JAR statement
SQL CLI
The following examples show how to run JAR statements in SQL CLI.
以下示例显示了如何在SQL CLI中运行JAR语句。
Flink SQL> ADD JAR '/path/hello.jar';