accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] mikewalch closed pull request #627: Improved error message if accumulo-site.xml found
Date Tue, 04 Sep 2018 21:23:48 GMT
mikewalch closed pull request #627: Improved error message if accumulo-site.xml found
URL: https://github.com/apache/accumulo/pull/627
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/core/src/main/java/org/apache/accumulo/core/conf/SiteConfiguration.java b/core/src/main/java/org/apache/accumulo/core/conf/SiteConfiguration.java
index 8a9be7442d..b4dd10384b 100644
--- a/core/src/main/java/org/apache/accumulo/core/conf/SiteConfiguration.java
+++ b/core/src/main/java/org/apache/accumulo/core/conf/SiteConfiguration.java
@@ -123,7 +123,9 @@ public static URL getAccumuloPropsLocation() {
     URL siteUrl = SiteConfiguration.class.getClassLoader().getResource("accumulo-site.xml");
     if (siteUrl != null) {
       throw new IllegalArgumentException("Found deprecated config file 'accumulo-site.xml'
on "
-          + "classpath. Since 2.0.0, this file was replaced by 'accumulo.properties'.");
+          + "classpath. Since 2.0.0, this file was replaced by 'accumulo.properties'. Run
the "
+          + "following command to convert an old 'accumulo-site.xml' file to the new format:
"
+          + "accumulo convert-config -x /old/accumulo-site.xml -p /new/accumulo.properties");
     }
 
     String configFile = System.getProperty("accumulo.properties", "accumulo.properties");


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message