You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by GitBox <gi...@apache.org> on 2019/10/15 13:22:44 UTC

[GitHub] [zeppelin] alexott commented on a change in pull request #3481: [ZEPPELIN-4375]. Add more flink tutorial notes

alexott commented on a change in pull request #3481: [ZEPPELIN-4375]. Add more flink tutorial notes
URL: https://github.com/apache/zeppelin/pull/3481#discussion_r334947060
 
 

 ##########
 File path: docs/interpreter/flink.md
 ##########
 @@ -166,15 +171,39 @@ Zeppelin will create 4 variables to represent flink's entrypoint:
 * `stenv`   (StreamTableEnvironment) 
 * `btenv`   (BatchTableEnvironment)
 
+## Flink Planner
+
+Starting from Flink 1.9, there're 2 planners supported by Flink's table api: flink & blink.
+* If you want to use DataSet api, then please use flink planner (specify `zeppelin.flink.planner` to `flink`).
+* In other cases, we would always recommend you to use blink planner which is also the default value of `zeppelin.flink.planner`.
+
+## How to use Hive
+
+In order to use Hive in Flink, you have to do several setting.
+* Set `zeppelin.flink.enableHive` to `true`
+* Copy necessary dependencies to flink's lib folder, check this [link](https://ci.apache.org/projects/flink/flink-docs-release-1.9/dev/table/hive/#depedencies) for more details 
+  * flink-connector-hive_{scala_version}-{flink.version}.jar
+  * flink-hadoop-compatibility_{scala_version}-{flink.version}.jar
+  * flink-shaded-hadoop-2-uber-{hadoop.version}-{flink-shaded.version}.jar
+  * hive-exec-2.x.jar (for Hive 1.x, you need to copy hive-exec-1.x.jar, hive-metastore-1.x.jar, libfb303-0.9.2.jar and libthrift-0.9.2.jar)
 
 Review comment:
   should we use verbatim for file names, like, it's done for `zeppelin-env.sh` ?

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services