Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-4124

Value of -Dlogback.configurationFile in ranger-tagsync-services.sh is not configurable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.0.0, 2.4.1, 2.5.0
    • tagsync
    • None

    Description

      In file ranger-tagsync-services.sh,we can find -Dlogback.configurationFile not configurable

      nohup java -Dproc_rangertagsync ${JAVA_OPTS} -Dlogdir="${RANGER_TAGSYNC_LOG_DIR}" -Dlogback.configurationFile=file:/etc/ranger/tagsync/conf/logback.xml -cp "${cp}" org.apache.ranger.tagsync.process.TagSynchronizer  > ${RANGER_TAGSYNC_LOG_DIR}/tagsync.out 2>&1 &
      

      Like usersync, suggest add variable TAGSYNC_CONF_DIR and set -Dlogback.configurationFile=file:${TAGSYNC_CONF_DIR}/logback.xml

      After applying this patch, we can support customization setting for logback.xml location in cluster management tools like Ambari.

      Attachments

        Activity

          People

            yaolei Lei Yao
            yaolei Lei Yao
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: