Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      Add parameters to template files so we can easily replace the template value by the real ones

      1. CHUKWA-173-2.patch
        11 kB
        Jerome Boulon

        Activity

        Hide
        jboulon Jerome Boulon added a comment -

        Create Chukwa configuration based on default.properties/build.properties

        Add a new ant target: chukwa-config
        This ant target will save all template files with values from default.properties/build.properties to the final file.

        Show
        jboulon Jerome Boulon added a comment - Create Chukwa configuration based on default.properties/build.properties Add a new ant target: chukwa-config This ant target will save all template files with values from default.properties/build.properties to the final file.
        Hide
        eyang Eric Yang added a comment -

        token subsitution should be done in build/conf or build/$

        {final.name}

        /conf then we don't need to delete from source code conf dir.

        Show
        eyang Eric Yang added a comment - token subsitution should be done in build/conf or build/$ {final.name} /conf then we don't need to delete from source code conf dir.
        Hide
        jboulon Jerome Boulon added a comment -

        do the substitution inside $build.dir then in the package target copy conf from $build.dir to $final.name/conf

        Show
        jboulon Jerome Boulon added a comment - do the substitution inside $build.dir then in the package target copy conf from $build.dir to $final.name/conf
        Hide
        eyang Eric Yang added a comment -

        I just committed this, thanks Jerome.

        Show
        eyang Eric Yang added a comment - I just committed this, thanks Jerome.
        Hide
        jboulon Jerome Boulon added a comment -

        Default values are in default.properties, in order to set your own values, just copy the ones that need to be changed to build.properties and update then according to your system.

        Parameters are:

        for alert.template
        TODO-ALERT-EMAIL=user@example.com

        for chukwa-agent-conf.xml
        TODO-CLUSTER-NAME=chukwa

        for chukwa-colector-conf.xml
        TODO-COLLECTORS-NAMENODE=hdfs://localhost:9000/
        TODO-COLLECTORS-ROTATEINTERVAL=300000
        TODO-COLLECTORS-PORT=8080

        for chukwa-env.sh
        TODO-JAVA-HOME=/usr/lib/j2sdk1.5-sun
        TODO-HADOOP-HOME=/home/user/Development/hadoop-trunk
        TODO-HADOOP-CONF-DIR=/home/user/Development/hadoop-conf
        TODO-CHUKWA_PID_DIR=/tmp/chukwa/pidDir
        TODO-CHUKWA_LOG_DIR=/tmp/chukwa/log
        TODO-AGENTS-INSTANCE-NAME=chukwa
        TODO_CHUKWA_JDBC_DRIVER=
        TODO_CHUKWA_JDBC_URL_PREFIX=

        Show
        jboulon Jerome Boulon added a comment - Default values are in default.properties, in order to set your own values, just copy the ones that need to be changed to build.properties and update then according to your system. Parameters are: for alert.template TODO-ALERT-EMAIL=user@example.com for chukwa-agent-conf.xml TODO-CLUSTER-NAME=chukwa for chukwa-colector-conf.xml TODO-COLLECTORS-NAMENODE=hdfs://localhost:9000/ TODO-COLLECTORS-ROTATEINTERVAL=300000 TODO-COLLECTORS-PORT=8080 for chukwa-env.sh TODO-JAVA-HOME=/usr/lib/j2sdk1.5-sun TODO-HADOOP-HOME=/home/user/Development/hadoop-trunk TODO-HADOOP-CONF-DIR=/home/user/Development/hadoop-conf TODO-CHUKWA_PID_DIR=/tmp/chukwa/pidDir TODO-CHUKWA_LOG_DIR=/tmp/chukwa/log TODO-AGENTS-INSTANCE-NAME=chukwa TODO_CHUKWA_JDBC_DRIVER= TODO_CHUKWA_JDBC_URL_PREFIX=

          People

          • Assignee:
            jboulon Jerome Boulon
            Reporter:
            jboulon Jerome Boulon
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development