Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
Accumulo >> mail # user >> utility to print Accumulo config (feedback appreciated)


Copy link to this message
-
Re: utility to print Accumulo config (feedback appreciated)
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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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 <[EMAIL PROTECTED]> 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)
>
>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB