HDP on Linux – Installation Forum

Custom hadoop-env.sh

  • #16268

    Hi,

    I can’t figure out whether jmxremote is enabled by default. Normally, I set jmxremote up in hadoop-env.sh as follows:

    export HADOOP_NAMENODE_OPTS=”-Dcom.sun.management.jmxremote
    -Dcom.sun.management.jmxremote.ssl=false
    -Dcom.sun.management.jmxremote.authenticate=false
    -Dcom.sun.management.jmxremote.port=58004
    $HADOOP_NAMENODE_OPTS”

    I can certainly change /etc/hadoop/conf.empty/hadoop-env.sh so that the different _OPTS entries contain what I want but how does Ambari react if I do so? Is there another way to make this type of modifications?

to create new topics or reply. | New User Registration

  • Author
    Replies
  • #16285
    Sasha J
    Moderator

    Gunnar,
    unfortunately, it is not possible to perform such things in current Ambari release.
    It reverts all the modification made in configuration files directly.

    If you really need this functionality set, then you can edit files, but not use Ambari for restarting services, restart it manually from the command line.

    Sorry for inconvenience…

    Hope this helps.
    Thank you!
    Sasha

    #16290

    Hi Sasha,

    Thanks for the information. Just to have asked the question… do you enable jmxremote at this time?

    Thanks,

    Gunnar

    #16303
    tedr
    Member

    Hi Gunnar,

    At the curent time JMX is enabled, but jmxremote is not. the ability to add OPTs to hadoop-env.sh is currently requested in Ambari-1535 jira at https://issues.apache.org/jira/browse/AMBARI-1535.

    Thanks,
    Ted.

    #16688

    Hi Ted,

    Thanks for the information. Do you have any idea when the Ambari-1535 will be fixed?

    Sasha: I tested your approach and it works. I assume it’s puppet that overwrites /etc/hadoop/conf/hadoop-env.sh when starting the Hadoop services from the Ambari UI?

    Thanks,

    Gunnar

    #16712
    Yi Zhang
    Moderator

    Hi Gunnar,

    It is amabri-agent that changes the conf files. Amabri-agent uses puppet libraries.

    Thanks,
    Yi.

You must be to reply to this topic. | Create Account

Support from the Experts

A HDP Support Subscription connects you experts with deep experience running Apache Hadoop in production, at-scale on the most demanding workloads.

Enterprise Support »

Become HDP Certified

Real world training designed by the core architects of Hadoop. Scenario-based training courses are available in-classroom or online from anywhere in the world

Training »

Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.