accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mwa...@apache.org
Subject [accumulo] branch master updated: Improved error message if accumulo-site.xml found (#627)
Date Tue, 04 Sep 2018 21:23:49 GMT
This is an automated email from the ASF dual-hosted git repository.

mwalch pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/accumulo.git


The following commit(s) were added to refs/heads/master by this push:
     new 9b2b024  Improved error message if accumulo-site.xml found (#627)
9b2b024 is described below

commit 9b2b024fac85c4f70ecd158bb81329fa32d8e4e4
Author: Mike Walch <mwalch@apache.org>
AuthorDate: Tue Sep 4 17:23:47 2018 -0400

    Improved error message if accumulo-site.xml found (#627)
---
 .../main/java/org/apache/accumulo/core/conf/SiteConfiguration.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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 8a9be74..b4dd103 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 class SiteConfiguration extends AccumuloConfiguration {
     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");


Mime
View raw message