Member since
09-18-2015
3274
Posts
1159
Kudos Received
426
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 2568 | 11-01-2016 05:43 PM | |
| 8502 | 11-01-2016 05:36 PM | |
| 4860 | 07-01-2016 03:20 PM | |
| 8182 | 05-25-2016 11:36 AM | |
| 4335 | 05-24-2016 05:27 PM |
11-09-2015
08:14 PM
@ravi@hortonworks.com More info added Link setResourceName @InterfaceAudience.Public
@InterfaceStability.Stable
public abstract void setResourceName(String resourceName)
Set the resource name (e.g. host/rack) on which the allocation is desired. A special value of * signifies that any resource name (e.g. host/rack) is acceptable.
Parameters: resourceName - (e.g. host/rack) on which the allocation is desired
or You can research on Node Labels
Another doc link
@Public
@Stable
public static ResourceRequest newInstance(Priority priority, String hostName,
Resource capability, int numContainers, boolean relaxLocality,
String labelExpression) {
ResourceRequest request = Records.newRecord(ResourceRequest.class);
request.setPriority(priority);
request.setResourceName(hostName);
request.setCapability(capability);
request.setNumContainers(numContainers);
request.setRelaxLocality(relaxLocality);
request.setNodeLabelExpression(labelExpression);
return request;
}
It only makes sense when the resource location is ANY or rack and not data local.
... View more
11-09-2015
07:10 PM
Thanks @Ram Sriharsha from chimming in . Really appreciate it.
... View more
11-09-2015
07:01 PM
@Ram Sriharsha
... View more
11-09-2015
06:21 PM
@Jonas Straub Nice!
... View more
11-09-2015
06:18 PM
1 Kudo
Thanks @gates@hortonworks.com for chimmig in .
... View more
11-09-2015
06:17 PM
@Paul Codding Could you please take a look on this?
... View more
11-09-2015
06:10 PM
Agree. Did you try running the previous command?
... View more
11-09-2015
05:59 PM
@vsomani@hortonworks.com Sounds good.
... View more
11-09-2015
05:52 PM
@jeff@hortonworks.com @mahadev@hortonworks.com
... View more
11-09-2015
05:32 PM
@Scott Shaw Please try this. curl --user admin:admin -i -H "X-Requested-By: ambari" -X DELETE http://`hostname -f`:8080/api/v1/clusters/<cluster name>/services/SMARTSENSE
... View more