Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions docs/interpreter/flink.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,11 @@ You can also set other flink properties which are not listed in the table. For a
<td>2.3.4</td>
<td>Hive version that you would like to connect</td>
</tr>
<tr>
<td>zeppelin.flink.module.enableHive</td>
<td>false</td>
<td>Whether enable hive module, hive udf take precedence over flink udf if hive module is enabled.</td>
</tr>
<tr>
<td>zeppelin.flink.maxResult</td>
<td>1000</td>
Expand Down
7 changes: 7 additions & 0 deletions flink/interpreter/src/main/resources/interpreter-setting.json
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,13 @@
"description": "Hive version that you would like to connect",
"type": "string"
},
"zeppelin.flink.module.enableHive": {
"envName": null,
"propertyName": null,
"defaultValue": false,
"description": "Whether enable hive module, hive udf take precedence over flink udf if hive module is enabled.",
"type": "checkbox"
},
"zeppelin.flink.printREPLOutput": {
"envName": null,
"propertyName": "zeppelin.flink.printREPLOutput",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,9 @@ class FlinkScalaInterpreter(val properties: Properties) {
this.btenv.registerCatalog("hive", hiveCatalog)
this.btenv.useCatalog("hive")
this.btenv.useDatabase(database)
this.btenv.loadModule("hive", new HiveModule(hiveVersion))
if (properties.getProperty("zeppelin.flink.module.enableHive", "false").toBoolean) {
this.btenv.loadModule("hive", new HiveModule(hiveVersion))
}
}

private def loadUDFJar(jar: String): Unit = {
Expand Down