You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "Michael Berman (JIRA)" <ji...@apache.org> on 2013/07/17 21:11:50 UTC

[jira] [Updated] (ACCUMULO-1577) accumulo-site.xml cannot be loaded from $ACCUMULO_CONF_DIR

     [ 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