1.11 snapshot: Name or service not knownname localhost and taskMgr not started

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

1.11 snapshot: Name or service not knownname localhost and taskMgr not started

wanglei2@geekplus.com.cn

1 Clone the 1.11 snapshot repository
2 Build it on windowns 
3 Scp the flink-dist/target/flink-1.11-SNAPSHOT-bin/flink-1.11-SNAPSHOT dir to a CentOS  server
4 ./bin/start-cluster.sh on the CentOS server 


There's message: 
Starting cluster.
Starting standalonesession daemon on host test_3.6.
: Name or service not knownname localhost

Only the jobMgr is started. The taskMgr not start 

Any insight on this?

Thanks
Lei


Reply | Threaded
Open this post in threaded view
|

Re: 1.11 snapshot: Name or service not knownname localhost and taskMgr not started

Xintong Song
Hi Lei,

Could you check whether the hostname 'localhost' is available on your CentOS machine? This is usually defined in "/etc/hosts".
You can also try to modify the slaves file, replacing 'localhost' with '127.0.0.1'. The path is: <FLINK_DIR>/conf/slaves

Thank you~

Xintong Song



On Thu, Apr 30, 2020 at 11:38 AM [hidden email] <[hidden email]> wrote:

1 Clone the 1.11 snapshot repository
2 Build it on windowns 
3 Scp the flink-dist/target/flink-1.11-SNAPSHOT-bin/flink-1.11-SNAPSHOT dir to a CentOS  server
4 ./bin/start-cluster.sh on the CentOS server 


There's message: 
Starting cluster.
Starting standalonesession daemon on host test_3.6.
: Name or service not knownname localhost

Only the jobMgr is started. The taskMgr not start 

Any insight on this?

Thanks
Lei


Reply | Threaded
Open this post in threaded view
|

Re: Re: 1.11 snapshot: Name or service not knownname localhost and taskMgr not started

wanglei2@geekplus.com.cn

  • localhost is available on my CentOS machine.  I can start the cluster(including taskMgr) with start-cluster.sh when using flink-1.10 release tgz package
  • change the slave file localhost to 127.0.0.1 can resolve the problem. But it request the password of the host.
  • Not change  slave file, i can first start-cluster(only job manager started). And then “taskmanager.sh start“  to start the taskMgr. No password needed.

Thanks,
Lei


 
Send Time: 2020-04-30 12:13
Receiver: [hidden email]
Subject: Re: 1.11 snapshot: Name or service not knownname localhost and taskMgr not started
Hi Lei,

Could you check whether the hostname 'localhost' is available on your CentOS machine? This is usually defined in "/etc/hosts".
You can also try to modify the slaves file, replacing 'localhost' with '127.0.0.1'. The path is: <FLINK_DIR>/conf/slaves

Thank you~

Xintong Song



On Thu, Apr 30, 2020 at 11:38 AM [hidden email] <[hidden email]> wrote:

1 Clone the 1.11 snapshot repository
2 Build it on windowns 
3 Scp the flink-dist/target/flink-1.11-SNAPSHOT-bin/flink-1.11-SNAPSHOT dir to a CentOS  server
4 ./bin/start-cluster.sh on the CentOS server 


There's message: 
Starting cluster.
Starting standalonesession daemon on host test_3.6.
: Name or service not knownname localhost

Only the jobMgr is started. The taskMgr not start 

Any insight on this?

Thanks
Lei