Uploaded image for project: 'Apache Drill'
  1. Apache Drill
  2. DRILL-6266

Incorrect log path when Drill launched with --site option

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.13.0
    • None
    • None
    • None

    Description

      Drill supports the --site option to specify where user-specific files reside. These include config files, jars, system libraries and so on. One of the purposes of the site directory is to allow the same Drill install to work with multiple different configurations.

      Part of that functionality is to locate the log directory in the site directory so that each configuration can have its own file. This appears to not be working, at least for DoY.

      Install Drill 1.13. Set up Drill-on-YARN as described in USAGE.md.

      Before launching DoY, use the debug option to display the environment in which the DoY client runs.

      $DRILL_HOME/bin/drill-on-yarn.sh --site $DRILL_SITE debug
      

      Observe the following:

      DRILL_SITE=/Users/yourname/site
      DRILL_LOG_PREFIX=/Users/yourname/apache-drill-1.13.0/log/drillbit
      

      Expected:

      DRILL_LOG_PREFIX=/Users/yourname/site/log
      

      There exists a Drill-on-YARN unit test to verify this behavior. But, that test has had problems due to Drill's use of common, global directories. We should disable that feature (there is a separate JIRA for that) so we can run the tests, which should have caught this bug. (If the tests don't catch this bug, they should be extended so that they do.)

      The result is that, under Drill 1.13, users cannot run multiple Drill servers from a single install. This is not a huge issue for most users, but it does block certain obscure use cases that we had intended to support.

      Attachments

        Activity

          People

            Unassigned Unassigned
            paul-rogers Paul Rogers
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: