先上flink-cdh-parcel測試安裝效果圖:
一:將FLINK-1.9.0-csa1.0.0.0-cdh6.3.0.jar放置到如下:
二:重啟cloudera-server
三:下載parcel到httpd服務(wù)目錄
四:打開cdh設(shè)置轿腺,添加地址
五:刷新-下載-分配-激活-使用
六:添加服務(wù)flink
七:重啟cms
八:查看flink
九:flink使用:
十:需要解決的問題:
-
web界面上傳jar按鈕沒出來嫂粟,加載的時候有氮发,加載完沒了
- 客戶端執(zhí)行flink命令報錯
The program finished with the following exception:
org.apache.flink.util.FlinkException: Failed to retrieve job list.
at org.apache.flink.client.cli.CliFrontend.listJobs(CliFrontend.java:445)
at org.apache.flink.client.cli.CliFrontend.lambda$list$0(CliFrontend.java:427)
at org.apache.flink.client.cli.CliFrontend.runClusterAction(CliFrontend.java:956)
at org.apache.flink.client.cli.CliFrontend.list(CliFrontend.java:424)
at org.apache.flink.client.cli.CliFrontend.parseParameters(CliFrontend.java:1024)
at org.apache.flink.client.cli.CliFrontend.lambda$main$10(CliFrontend.java:1096)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:422)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1875)
at org.apache.flink.runtime.security.HadoopSecurityContext.runSecured(HadoopSecurityContext.java:41)
at org.apache.flink.client.cli.CliFrontend.main(CliFrontend.java:1096)
Caused by: java.util.concurrent.TimeoutException
at org.apache.flink.runtime.concurrent.FutureUtils$Timeout.run(FutureUtils.java:998)
at org.apache.flink.runtime.concurrent.DirectExecutorService.execute(DirectExecutorService.java:211)
at org.apache.flink.runtime.concurrent.FutureUtils.lambda$orTimeout$14(FutureUtils.java:416)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
十一:網(wǎng)上手動生成flink-parcel參考:
<meta charset="utf-8">