flink首次使用

下載安裝包,並解壓,不做任何配置,爲local模式

執行example中的wordcount.jar 記得輸入參數和輸出參數

記得在flink目錄下面輸入命令,不然會報錯,找不到配置文件

Exception in thread "main" java.lang.RuntimeException: The configuration directory was not specified. Please specify the directory containing the configuration file through the 'FLINK_CONF_DIR' environment variable.        at org.apache.flink.client.cli.CliFrontend.getConfigurationDirectoryFromEnv(CliFrontend.java:1160)        at org.apache.flink.client.cli.CliFrontend.main(CliFrontend.java:1109)

可以配置環境變量,記得配置flink配置文件的變量:FLINK_CONF_DIR

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章