FAQ
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 an email to scm-users+unsubscribe@cloudera.org.

Search Discussions

  • Harsh J at Sep 4, 2013 at 7:50 am
    Can you elaborate on what you've tried exactly and what was the failure?
    On Wed, Sep 4, 2013 at 12:57 PM, Gagan 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 an
    email to scm-users+unsubscribe@cloudera.org.


    --
    Harsh J

    To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.
  • Harsh J at Sep 4, 2013 at 8:26 am
    Thanks for sharing the code snippet. Can you post your CM version as well?

    + scm-users@cloudera.org 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 wrote:

    Can you elaborate on what you've tried exactly and what was the failure?
    On Wed, Sep 4, 2013 at 12:57 PM, Gagan 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
    an
    email to scm-users+unsubscribe@cloudera.org.


    --
    Harsh J


    --
    Harsh J

    To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.
  • Harsh J at Sep 4, 2013 at 8:55 am
    Adding list.
    On Sep 4, 2013 2:02 PM, "GAGAN SINGH Negi" 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?

    + scm-users@cloudera.org 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 wrote:

    Can you elaborate on what you've tried exactly and what was the
    failure?
    On Wed, Sep 4, 2013 at 12:57 PM, Gagan <gagansinghnegi@gmail.com>
    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
    an
    email to scm-users+unsubscribe@cloudera.org.


    --
    Harsh J


    --
    Harsh J
    To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.
  • GAGAN SINGH Negi at Sep 4, 2013 at 9:21 am
    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" 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" <gagansinghnegi@gmail.com>
    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?

    + scm-users@cloudera.org 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 wrote:

    Can you elaborate on what you've tried exactly and what was the
    failure?
    On Wed, Sep 4, 2013 at 12:57 PM, Gagan <gagansinghnegi@gmail.com>
    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
    an
    email to scm-users+unsubscribe@cloudera.org.


    --
    Harsh J


    --
    Harsh J
    To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.
  • Darren Lo at Sep 4, 2013 at 4:44 pm
    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
    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" <gagansinghnegi@gmail.com>
    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" <gagansinghnegi@gmail.com>
    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?

    + scm-users@cloudera.org 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 wrote:

    Can you elaborate on what you've tried exactly and what was the
    failure?
    On Wed, Sep 4, 2013 at 12:57 PM, Gagan <gagansinghnegi@gmail.com>
    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
    an
    email to scm-users+unsubscribe@cloudera.org.


    --
    Harsh J


    --
    Harsh J
    To unsubscribe from this group and stop receiving emails from it, send an
    email to scm-users+unsubscribe@cloudera.org.


    --
    Thanks,
    Darren

    To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.
  • 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 <gagansinghnegi@gmail.com
    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" <gagansinghnegi@gmail.com>
    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" <gagansinghnegi@gmail.com>
    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?

    + scm-users@cloudera.org 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 <harsh@cloudera.com>
    wrote:
    Can you elaborate on what you've tried exactly and what was the
    failure?
    On Wed, Sep 4, 2013 at 12:57 PM, Gagan <gagansinghnegi@gmail.com>
    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
    an
    email to scm-users+unsubscribe@cloudera.org.


    --
    Harsh J


    --
    Harsh J
    To unsubscribe from this group and stop receiving emails from it, send
    an email to scm-users+unsubscribe@cloudera.org.


    --
    Thanks,
    Darren
    To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.
  • Darren Lo at Sep 6, 2013 at 6:41 pm
    Hi Gagan,

    To update service level configuration, use the ServicesResource.

    You can see which configuration applies to each level by using the
    "readConfig" method with the full dataview. You can call this from many
    places, including ServicesResource and RoleConfigGroupsResource.

    Thanks,
    Darren


    On Fri, Sep 6, 2013 at 11:33 AM, GAGAN SINGH Negi
    wrote:
    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 <
    gagansinghnegi@gmail.com> 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" <gagansinghnegi@gmail.com>
    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" <gagansinghnegi@gmail.com>
    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?

    + scm-users@cloudera.org 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 <harsh@cloudera.com>
    wrote:
    Can you elaborate on what you've tried exactly and what was the
    failure?
    On Wed, Sep 4, 2013 at 12:57 PM, Gagan <gagansinghnegi@gmail.com>
    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
    an
    email to scm-users+unsubscribe@cloudera.org.


    --
    Harsh J


    --
    Harsh J
    To unsubscribe from this group and stop receiving emails from it, send
    an email to scm-users+unsubscribe@cloudera.org.


    --
    Thanks,
    Darren
    To unsubscribe from this group and stop receiving emails from it, send an
    email to scm-users+unsubscribe@cloudera.org.


    --
    Thanks,
    Darren

    To unsubscribe from this group and stop receiving emails from it, send an email to scm-users+unsubscribe@cloudera.org.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupscm-users @
categorieshadoop
postedSep 4, '13 at 7:27a
activeSep 6, '13 at 6:41p
posts8
users3
websitecloudera.com
irc#hadoop

People

Translate

site design / logo © 2022 Grokbase