use of org.apache.phoenix.util.ReadOnlyProps in project phoenix by apache.
the class CountDistinctCompressionIT method doSetup.
@BeforeClass
public static void doSetup() throws Exception {
Map<String, String> props = Maps.newHashMapWithExpectedSize(3);
// Must update config before starting server
props.put(QueryServices.DISTINCT_VALUE_COMPRESS_THRESHOLD_ATTRIB, Long.toString(1));
setUpTestDriver(new ReadOnlyProps(props.entrySet().iterator()));
}
use of org.apache.phoenix.util.ReadOnlyProps in project phoenix by apache.
the class Sandbox method main.
public static void main(String[] args) throws Exception {
System.out.println("Starting Phoenix sandbox");
Configuration conf = HBaseConfiguration.create();
BaseTest.setUpConfigForMiniCluster(conf, new ReadOnlyProps(ImmutableMap.<String, String>of()));
final HBaseTestingUtility testUtil = new HBaseTestingUtility(conf);
testUtil.startMiniCluster();
Runtime.getRuntime().addShutdownHook(new Thread() {
@Override
public void run() {
try {
if (testUtil != null) {
testUtil.shutdownMiniCluster();
}
} catch (Exception e) {
LOG.error("Exception caught when shutting down mini cluster", e);
}
}
});
int clientPort = testUtil.getZkCluster().getClientPort();
System.out.println("\n\n\tPhoenix Sandbox is started\n\n");
System.out.printf("\tYou can now connect with url 'jdbc:phoenix:localhost:%d'\n" + "\tor connect via sqlline with 'bin/sqlline.py localhost:%d'\n\n", clientPort, clientPort);
Thread.sleep(Long.MAX_VALUE);
}
use of org.apache.phoenix.util.ReadOnlyProps in project phoenix by apache.
the class BaseQueryIT method doSetup.
protected static void doSetup(Map<String, String> customProps) throws Exception {
Map<String, String> props = getDefaultProps();
if (customProps != null) {
props.putAll(customProps);
}
// Make a small batch size to test multiple calls to reserve sequences
props.put(QueryServices.SEQUENCE_CACHE_SIZE_ATTRIB, Long.toString(BATCH_SIZE));
// Must update config before starting server
setUpTestDriver(new ReadOnlyProps(props.entrySet().iterator()));
}
use of org.apache.phoenix.util.ReadOnlyProps in project phoenix by apache.
the class IndexToolForPartialBuildIT method doSetup.
@BeforeClass
public static void doSetup() throws Exception {
Map<String, String> serverProps = getServerProperties();
setUpTestDriver(new ReadOnlyProps(serverProps.entrySet().iterator()), ReadOnlyProps.EMPTY_PROPS);
}
use of org.apache.phoenix.util.ReadOnlyProps in project phoenix by apache.
the class IndexToolForPartialBuildWithNamespaceEnabledIT method doSetup.
@BeforeClass
@Shadower(classBeingShadowed = IndexToolForPartialBuildIT.class)
public static void doSetup() throws Exception {
Map<String, String> serverProps = getServerProperties();
serverProps.put(QueryServices.IS_NAMESPACE_MAPPING_ENABLED, "true");
Map<String, String> clientProps = Maps.newHashMapWithExpectedSize(1);
clientProps.put(QueryServices.IS_NAMESPACE_MAPPING_ENABLED, "true");
setUpTestDriver(new ReadOnlyProps(serverProps.entrySet().iterator()), new ReadOnlyProps(clientProps.entrySet().iterator()));
}
Aggregations