|
GAGAN SINGH Negi |
at Sep 6, 2013 at 6:33 pm
|
⇧ |
| |
hi Darren,
thanks for your replay, but its not working.my actual problem is that It is
updating the role type configuration but not service type configuration.
and also how to configure service level configuration.for hdfs and
mapreduce.
I am using the default roles JobTracker,TaskTracker....etc
Thanks
Gagan
On Wed, Sep 4, 2013 at 10:14 PM, Darren Lo wrote:Hi Gagan,
Your code is updating the role config, but you want to update the group
configuration. Your ApiRole will have a reference to its group name, then
use RoleConfigGroupsResource to update that group's configuration. You can
get a handle to the RoleConfigGroupsResource from the ServicesResource (V3
or higher).
Thanks,
Darren
On Wed, Sep 4, 2013 at 2:21 AM, GAGAN SINGH Negi <
[email protected]wrote:
ok from next time I will take care of it .Do you find any solution .
On Wed, Sep 4, 2013 at 2:44 PM, Harsh J wrote:I added back mailing list as you aren't specifying it on your responses.
Sorry for confusion.
On Sep 4, 2013 2:30 PM, "GAGAN SINGH Negi" <
[email protected]>
wrote:
i didn't get you. what is adding list ? please can you elaborate.
On Wed, Sep 4, 2013 at 2:24 PM, Harsh J wrote:Adding list.
On Sep 4, 2013 2:02 PM, "GAGAN SINGH Negi" <
[email protected]>
wrote:
i am using 4.6.0
On Wed, Sep 4, 2013 at 1:56 PM, Harsh J wrote:Thanks for sharing the code snippet. Can you post your CM version as
well?
+
[email protected] again (Please keep this when responding so
others may help as well).
On Wed, Sep 4, 2013 at 1:51 PM, GAGAN SINGH Negi
wrote:
this is my java code while running, it is not showing any error but not
updating the "JobTracker Local Data Directory" field in cm
user-interface
but showing an message below field "one overriding instance".
i want it directly update the field.
ApiConfig apiconfig=new
ApiConfig("jobtracker_mapred_local_dir_list", "/tmp/jt");
// ApiConfig apiconfig=new
ApiConfig("mapred_job_tracker_handler_count","40");
ApiConfigList apiconfiglist=new ApiConfigList();
apiconfiglist.add(apiconfig);
roleresource.updateRoleConfig("JobTracker","role is
updated",apiconfiglist);
roleresource.readRole("JobTracker");
ApiCommand
apicommand=serviceresource.startCommand("mapreduce");
thanks
gagan
On Wed, Sep 4, 2013 at 1:20 PM, Harsh J <
[email protected]>
wrote:
Can you elaborate on what you've tried exactly and what was the
failure?
wrote:
how to automate the configuration of Mapreduce service using cm
api
using
java. Try with steps given in cloudera manager blog but not
working.
To unsubscribe from this group and stop receiving emails from
it, send
--
Harsh J
To unsubscribe from this group and stop receiving emails from it, send
an email to
[email protected].
--
Thanks,
Darren
To unsubscribe from this group and stop receiving emails from it, send an email to
[email protected].