Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-14109

zkcli.sh and zkcli.bat barfs when LOG4J_PROPS is set

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8.5, 8.4.1
    • Component/s: scripts and tools
    • Labels:
      None

      Description

      I noticed this when running zkcli.sh from solr's docker image. The docker image sets the variable LOG4J_PROPS, causing the zkcli script to pick up and use that logger instead of the console logger. Problem with that is that Solr's log4j2 config relies on the solr.log.dir sysprop being set, which it is not when running this script.

      So either fix the wrapper script to set solr.log.dir or, better, always log to stdout.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                janhoy Jan Høydahl
                Reporter:
                janhoy Jan Høydahl
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h