You should be able to call the Monitor handler of the JobManager:
http://jobmanagerhost:8081/taskmanagers
That gives you a JSON response like this:
{ "taskmanagers [
{ "id" : "7c8835b89acf533cb8a5119dbcaf4b4f",
"path" : "akka.tcp://[email protected]:56343/user/taskmanager",
"dataPort" : 56199,
"timeSinceLastHeartbeat" : 1472461577563,
"slotsNumber" : 4,
....},
{ "id " :"460bfbf8b540bf28befd616cbc9ea532",
"path" : "akka.tcp://[email protected]:58404/user/taskmanager",
"dataPort" : 39233,
"timeSinceLastHeartbeat" : 1472461577967,
"slotsNumber":4,
....}
]
}
That should have the hostname/IP in the TaskManager URL:
Hope that helps
Stephan
On Sun, Aug 28, 2016 at 3:03 PM, Sreejith S <[email protected]> wrote:
> Hi All,
>
> Is there any programmatic way to get the taskmanager details from a flink
> clluster ?
>
> At least the IP of taskmanagers ?
>
> Thanks,
>
> --
>
>
> *Sreejith.S*
> https://github.com/srijiths/
> tweet2sree@twitter <http://tweet2Sree>
>
>
>
>
>
>
>