Linux环境下安装FLink1.11.1并启动SQL-client读取Hive数据
首先去官网下载Flink1.11.1的tgz的包,教程如上篇文章上半部分流程一样,然后配置一下FLINK_HOME/conf/sql-client-defaults.yaml
:
catalogs:
- name: myhive #自己定个名字就行
type: hive
hive-conf-dir: /etc/hive/conf # hive-site.xml的路径
hive-version: 1.2.1 # hive版本
execution:
# select the implementation responsible for planning table programs
# possible values are 'blink' (used by default) or 'old'
planner: blink
# 'batch' or 'streaming' execution
type: batch #这里streaming和batch都行
# allow 'event-time' or only 'processing-time' in sources
time-characteristic: event-time
# interval in ms for emitting periodic watermarks
periodic-watermarks-interval: 200
# 'changelog' or 'table' presentation of results
result-mode: table
# maximum number of maintained rows in 'table' presentation of results
max-table-