Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
MapReduce, mail # user - How to set container request's hostname?


Copy link to this message
-
How to set container request's hostname?
Bing Jiang 2012-01-11, 02:33
Hi, I want to know how to specify the hostname in require container.

            ResourceRequest request Records.newRecord(ResourceRequest.class);
            request.setHostName("*");
            request.setNumContainers(1);
            Priority pri = Records.newRecord(Priority.class);
            pri.setPriority(1);
            request.setPriority(pri);
            Resource capability = Records.newRecord(Resource.class);
            capability.setMemory(20);
            request.setCapability(capability);
If anyone know how to set HostName here, I guess the "*" can be replaced
by  RackName+HostName, But I don't know the format.

Thanks.

--
Bing Jiang
Tel:(86)134-2619-1361
weibo: http://weibo.com/jiangbinglover
BLOG: http://blog.sina.com.cn/jiangbinglover
National Research Center for Intelligent Computing Systems
Institute of Computing technology
Graduate University of Chinese Academy of Science