Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-4026

Setting ACCUMULO_CLIENT_CONF_PATH with no client.conf file present throws ConfigurationException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 1.6.4, 1.7.0
    • 1.6.5, 1.7.1, 1.8.0
    • client, core
    • None

    Description

      Setting the environment variable ACCUMULO_CLIENT_CONF_PATH to a directory that exists but does not contain a file named client.conf throws

      org.apache.commons.configuration.ConfigurationException: Cannot load a configuration from a directory

      To demo this, simply set ACCUMULO_CLIENT_CONF_PATH to /tmp, make sure client.conf doesn't exist in /tmp and try to run the accumulo shell.

      The problem is ClientConfiguration.java on line 221 checks File.canRead() which is true for a Directory and a File. The solution is to make the branch check File.isFile() && File.canRead()

      Attachments

        Issue Links

          There are no Sub-Tasks for this issue.

          Activity

            People

              jklucar Jim Klucar
              jklucar Jim Klucar
              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 20m
                  1h 20m