accumulo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sujee Maniyam <su...@sujee.net>
Subject Re: utility to print Accumulo config (feedback appreciated)
Date Wed, 18 Dec 2013 22:49:49 GMT
*1)* AccumuloConfiguration.getDefaultConfiguration();
2) connector.instanceOperations().getSiteConfiguration();
3) connector.instanceOperations().getSystemConfiguration();


In (1) where do default configs come from?  Are these in the source code?
 (since no accumulo-default.xml)

what is the difference b/w (2) & (3)


Sujee Maniyam (http://sujee.net)


On Wed, Dec 18, 2013 at 2:25 PM, Christopher <ctubbsii@apache.org> wrote:

> There is no "accumulo-default.xml" file. ServerConfiguration may work,
> but it will make assumptions... like that it has a hadoop
> configuration and accumulo-site.xml in its path, so it can connect to
> ZooKeeper and read key/values from there.
>
> The Admin utility that dlmarion mentioned has similar requirements
> about what is on the path.
>
> --
> Christopher L Tubbs II
> http://gravatar.com/ctubbsii
>
>
> On Tue, Dec 17, 2013 at 7:36 PM, Sujee Maniyam <sujee@sujee.net> wrote:
> > Hi all
> >
> > Just wrote a tiny snippet to dump Accumulo config
> >
> > file :
> >
> https://github.com/sujee/print-hadoop-config/blob/master/src/main/java/config/AccumuloConfig.java
> >
> > project : https://github.com/sujee/print-hadoop-config
> >
> >
> > I am using 'ServerConfiguration.getSiteConfiguration();'
> > is this the right way to get 'current' server config  (Default  + Site) ?
> >
> > thanks!
> > Sujee Maniyam (http://sujee.net)
>

Mime
View raw message