hive - Starting Application On Specific Node in Hadoop Cluster -


first of all, i'm using hadoop-2.6.0. want launch app master on specific set of node's in yarn cluster of nodes in cluster amazon spot machines , can lost @ time. there way in can launch application master on particular set of machines ?

yes definitely, can start on specific node!

applicationsubmissioncontext provides function setamcontainerresourcerequest can pass resourcerequest object of am, in resourcerequest object can set "false" relaxlocality flag, tells resourcemanager if application wants locality loose (i.e. allows fall-through rack or any) or strict (i.e. specify hard constraint on resource allocation). set hostname using setresourcename.

further, if need request am, please refer distributed shell example hope helps!


Comments