Search in sources :

Example 6 with SiteConfiguration

use of org.apache.accumulo.core.conf.SiteConfiguration in project accumulo by apache.

the class ServerOptsTest method testOverrideConfig.

@Test
public void testOverrideConfig() {
    SiteConfiguration siteConf = SiteConfiguration.getInstance();
    Assert.assertEquals("localhost:2181", siteConf.get(Property.INSTANCE_ZK_HOST));
    opts.parseArgs(ServerOptsTest.class.getName(), new String[] { "-o", "instance.zookeeper.host=test:123" });
    Assert.assertEquals("test:123", siteConf.get(Property.INSTANCE_ZK_HOST));
}
Also used : SiteConfiguration(org.apache.accumulo.core.conf.SiteConfiguration) Test(org.junit.Test)

Aggregations

SiteConfiguration (org.apache.accumulo.core.conf.SiteConfiguration)6 ServerConfigurationFactory (org.apache.accumulo.server.conf.ServerConfigurationFactory)4 Instance (org.apache.accumulo.core.client.Instance)3 Test (org.junit.Test)3 Entry (java.util.Map.Entry)2 AccumuloConfiguration (org.apache.accumulo.core.conf.AccumuloConfiguration)2 AccumuloServerContext (org.apache.accumulo.server.AccumuloServerContext)2 IAnswer (org.easymock.IAnswer)2 Before (org.junit.Before)2 FileNotFoundException (java.io.FileNotFoundException)1 IOException (java.io.IOException)1 HashMap (java.util.HashMap)1 Map (java.util.Map)1 TreeMap (java.util.TreeMap)1 UUID (java.util.UUID)1 AccumuloSecurityException (org.apache.accumulo.core.client.AccumuloSecurityException)1 ThriftSecurityException (org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException)1 ConfigurationCopy (org.apache.accumulo.core.conf.ConfigurationCopy)1 DefaultConfiguration (org.apache.accumulo.core.conf.DefaultConfiguration)1 CachedConfiguration (org.apache.accumulo.core.util.CachedConfiguration)1