On 7 July 2014 17:34, Rui Zhang <[email protected]> wrote: > Hi, > > How can I know the ip address or hostname of containers after they are > allocated? Because if I want to start an distributed application, I need to > set the host names. >
YARN chooses where to run them -you can get the list of the containers via the web UI/REST API once they are up. > > And if I start all the instances in one command, is it ensured that all > the instances will run in containers allocated by Yarn? > > what do you mean by "start all the instances?" If it is just starting/thawing a slider cluster, then every component is always requested in its own YARN container. One thing we do have to deal with is getting configurations back to client machines when the locations of services are not known in advance. We have a zookeeper based service registry for this, with a web view of it on the slider AM -and I'm working to do a YARN-wide registry which will work for all YARN-deployed applications -steve -- CONFIDENTIALITY NOTICE NOTICE: This message is intended for the use of the individual or entity to which it is addressed and may contain information that is confidential, privileged and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any printing, copying, dissemination, distribution, disclosure or forwarding of this communication is strictly prohibited. If you have received this communication in error, please contact the sender immediately and delete it from your system. Thank You.
