accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Berman (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ACCUMULO-1577) accumulo-site.xml cannot be loaded from $ACCUMULO_CONF_DIR
Date Wed, 17 Jul 2013 19:11:50 GMT

     [ https://issues.apache.org/jira/browse/ACCUMULO-1577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Michael Berman updated ACCUMULO-1577:
-------------------------------------

    Assignee:     (was: Michael Berman)
      Status: Patch Available  (was: Open)

diff --git a/start/src/main/java/org/apache/accumulo/start/classloader/AccumuloClassLoader.java
b/start/src/main/java/org/apache/accumulo/start/classloader/AccumuloClassLoader.java
index ccd85a6..a68ce0e 100644
--- a/start/src/main/java/org/apache/accumulo/start/classloader/AccumuloClassLoader.java
+++ b/start/src/main/java/org/apache/accumulo/start/classloader/AccumuloClassLoader.java
@@ -76,7 +76,7 @@ public class AccumuloClassLoader {
     String configFile = System.getProperty("org.apache.accumulo.config.file", "accumulo-site.xml");
     if (System.getenv("ACCUMULO_CONF_DIR") != null) {
       // accumulo conf dir should be set
-      SITE_CONF = System.getenv("ACCUMULO_CONF_DIR");
+      SITE_CONF = System.getenv("ACCUMULO_CONF_DIR") + "/" + configFile;
     } else if (System.getenv("ACCUMULO_HOME") != null) {
       // if no accumulo conf dir, try accumulo home default
       SITE_CONF = System.getenv("ACCUMULO_HOME") + "/conf/" + configFile;

                
> accumulo-site.xml cannot be loaded from $ACCUMULO_CONF_DIR
> ----------------------------------------------------------
>
>                 Key: ACCUMULO-1577
>                 URL: https://issues.apache.org/jira/browse/ACCUMULO-1577
>             Project: Accumulo
>          Issue Type: Bug
>          Components: start
>    Affects Versions: 1.6.0
>            Reporter: Michael Berman
>             Fix For: 1.6.0
>
>
> Works fine if $ACCUMULO_CONF_DIR isn't set in the environment and it falls back to $ACCUMULO_HOME,
but when $ACCUMULO_CONF_DIR _is_ set, the code tries to load the config out of the directory
itself, rather than the file within the directory.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message