Home > OS >  Flink after open, unable to access localhost? Unable to run the sample code?
Flink after open, unable to access localhost? Unable to run the sample code?

Time:01-05

First of all, I download decompression in the Linux centos7 flink, and has already begun to run



Then I can't access localhost: 8081, access, display the following



I checked my firewall, I found I didn't open the firewall (iptables), and I in accordance with the online demo,
Enter configure iptables: vi/etc/sysconfig/iptables
Increase: - A state INPUT - m - the state NEW -m TCP -p TCP -- dport 8081 - j ACCEPT
After finishing the operation or not localhost: 8081, excuse me how should I continue to modify?



After found that can't get into 8081, I want to try a flink example run directly (SocketWindowWordCount), the example of successful demonstration is the first terminal window input character, statistics the number of each word in the second terminal, I view the sample url is: https://cloud.tencent.com/developer/article/1474249
In the first place in the first terminal Settings are



In the second port open the sample, but the following problems, as if also is not the problem, but is not run successfully,



Then follow the steps online, 8081 should be displayed inside a task at this time, but I'm not only the normal operation of the sample, 8081 or landing not up...
Solution should be how to operate? I feel about what may be localhost port, but will not change...


  • Related