Accumulo
  1. Accumulo
  2. ACCUMULO-2891

bin/config.sh logs error when $ACCUMULO_CONF_DIR/masters is missing

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.6.0
    • Fix Version/s: 1.6.1, 1.7.0
    • Component/s: start
    • Labels:
      None

      Description

      When running in an environment where the start-up scripts are not used to manage roles (and instead something like puppet is allowed to do its job) then the masters, slaves, gc, etc... files do not necessary need to be configured or even exist.

      However, using any tool that indirectly references config.sh, like the shell, will still produce an error message (the tool will still run):

      grep: /etc/accumulo/conf/masters: No such file or directory
      

        Activity

        Hide
        ASF subversion and git services added a comment -

        Commit 1b170e8e5b416720ff67df85adfd2c2eac3ffab5 in accumulo's branch refs/heads/master from Mike Drob
        [ https://git-wip-us.apache.org/repos/asf?p=accumulo.git;h=1b170e8 ]

        ACCUMULO-2891 check for masters file before grep

        Check that file exists
        Before we try to open it
        Be one with all things

        Show
        ASF subversion and git services added a comment - Commit 1b170e8e5b416720ff67df85adfd2c2eac3ffab5 in accumulo's branch refs/heads/master from Mike Drob [ https://git-wip-us.apache.org/repos/asf?p=accumulo.git;h=1b170e8 ] ACCUMULO-2891 check for masters file before grep Check that file exists Before we try to open it Be one with all things
        Hide
        ASF subversion and git services added a comment -

        Commit 1b170e8e5b416720ff67df85adfd2c2eac3ffab5 in accumulo's branch refs/heads/1.6.1-SNAPSHOT from Mike Drob
        [ https://git-wip-us.apache.org/repos/asf?p=accumulo.git;h=1b170e8 ]

        ACCUMULO-2891 check for masters file before grep

        Check that file exists
        Before we try to open it
        Be one with all things

        Show
        ASF subversion and git services added a comment - Commit 1b170e8e5b416720ff67df85adfd2c2eac3ffab5 in accumulo's branch refs/heads/1.6.1-SNAPSHOT from Mike Drob [ https://git-wip-us.apache.org/repos/asf?p=accumulo.git;h=1b170e8 ] ACCUMULO-2891 check for masters file before grep Check that file exists Before we try to open it Be one with all things
        Hide
        Mike Drob added a comment -
        Show
        Mike Drob added a comment - Patch available at https://reviews.apache.org/r/22458

          People

          • Assignee:
            Mike Drob
            Reporter:
            Mike Drob
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development