accumulo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher <ctubb...@apache.org>
Subject Re: utility to print Accumulo config (feedback appreciated)
Date Thu, 19 Dec 2013 01:18:41 GMT
The defaults are hard-coded in enums in the
org.apache.accumulo.core.conf.Property, and documented in
docs/config.html in previous releases. DefaultConfiguration contains
methods for generating the config.html file.

The difference between (2) and (3) is that site configuration is the
contents of the accumulo-site.xml file, and system configuration is
those contents, with current system-wide properties overridden in
zookeeper.

--
Christopher L Tubbs II
http://gravatar.com/ctubbsii


On Wed, Dec 18, 2013 at 5:49 PM, Sujee Maniyam <sujee@sujee.net> wrote:
>
>
>
> 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