当前位置:   article > 正文

Flink安装和演示_flink windows安装

flink windows安装

目录

一.Flink安装(windows下)

1.下载

2.解压

3.运行flink

 4.访问flink的web界面

5.运行自带的wordcount示例


一.Flink安装(windows下)

1.下载

flink下载:Index of /dist/flink (apache.org)

2.解压

 下载下来,直接解压即可,解压后目录如下

 双击bin目录下start-cluster.bat文件即可运行

 4.访问flink的web界面

可以用于监控Flilnk的job运行状态:http://localhost:8081/

5.运行自带的wordcount示例

cmd命令行运行

 到bin目录下执行如下命令

flink.bat run D:\software\flink-1.9.0\examples\batch\WordCount.jar -input D:\software\flink-1.9.0\README.txt -output D:\software\flink-1.9.0\README_CountWord_Result.txt

命令行输出如下

 文件统计结果如下

  1. 1 1
  2. 13 1
  3. 5d002 1
  4. 740 1
  5. about 1
  6. account 1
  7. administration 1
  8. algorithms 1
  9. and 7
  10. another 1
  11. any 2
  12. apache 5
  13. as 1
  14. ask 1
  15. asymmetric 1
  16. at 1
  17. before 1
  18. bis 2
  19. both 1
  20. bureau 1
  21. c 1
  22. check 1
  23. classified 1
  24. code 2
  25. com 1
  26. commerce 1
  27. commodity 1
  28. concerning 1
  29. control 1
  30. country 3
  31. cryptographic 2
  32. currently 1
  33. department 1
  34. dev 1
  35. distribution 2
  36. eccn 1
  37. eligible 1
  38. enc 1
  39. encryption 3
  40. exception 2
  41. export 5
  42. flink 5
  43. for 4
  44. form 1
  45. foundation 1
  46. functions 1
  47. github 2
  48. government 1
  49. has 1
  50. have 2
  51. http 2
  52. https 1
  53. if 2
  54. import 2
  55. in 1
  56. includes 2
  57. industry 1
  58. information 3
  59. is 1
  60. it 1
  61. latest 1
  62. laws 1
  63. license 1
  64. lists 1
  65. mailing 1
  66. makes 1
  67. manner 1
  68. may 1
  69. more 1
  70. number 1
  71. object 1
  72. of 5
  73. on 2
  74. or 3
  75. org 4
  76. our 3
  77. performing 1
  78. permitted 1
  79. please 2
  80. policies 1
  81. possession 2
  82. questions 1
  83. re 2
  84. regulations 2
  85. reside 1
  86. restrictions 1
  87. s 2
  88. section 1
  89. security 2
  90. see 3
  91. software 8
  92. source 1
  93. technology 1
  94. the 8
  95. this 4
  96. to 2
  97. tsu 1
  98. u 1
  99. under 1
  100. unrestricted 1
  101. use 2
  102. user 1
  103. using 2
  104. visit 1
  105. wassenaar 1
  106. website 1
  107. which 2
  108. with 1
  109. www 1
  110. you 2
  111. your 1

 扩展:win下安装nc命令,参考链接如下(可以通过监听端口给flink发送数据进行统计,各位童鞋有空的时候可以试试~)

在Windows操作系统中怎样使用nc命令_百思不得小赵的博客-CSDN博客_windows nc

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家小花儿/article/detail/598047
推荐阅读
相关标签
  

闽ICP备14008679号