终端一些样式格式的问题
解决办法如下,治标不治本
export TERM=xterm-color ; start-scala-shell.sh local
(或者可以直接更改启动脚本将这一句 export TERM=xterm-color 添加到脚本里面)
同样的类似于start-dfs.sh 可以在里面添加systemctl start ssh mysql
flink shell启动之后默认已经初始化好benv(batch ) senv(stream) 环境
Batch - Use the 'benv' variable
* val dataSet = benv.readTextFile("/path/to/data")
* dataSet.writeAsText("/path/to/output")
* benv.execute("My batch program")
HINT: You can use print() on a DataSet to print the contents to the shell.
Streaming - Use the 'senv' variable
* val dataStream = senv.fromElements(1, 2, 3, 4)
* dataStream.countWindowAll(2).sum(0).print()
* senv.execute("My streaming program")
HINT: You can only print a DataStream to the shell in local mode.