Examples of TestingPrestoServer


Examples of com.facebook.presto.server.testing.TestingPrestoServer

                .put("query.client.timeout", "10m")
                .put("exchange.http-client.read-timeout", "1h")
                .put("datasources", "tpch_indexed")
                .build();

        TestingPrestoServer server = new TestingPrestoServer(coordinator, properties, ENVIRONMENT, discoveryUri, ImmutableList.<Module>of());
        server.installPlugin(new IndexedTpchPlugin(getTpchIndexSpec()), "tpch_indexed", "tpch_indexed");
        return server;
    }
View Full Code Here

Examples of com.facebook.presto.server.testing.TestingPrestoServer

                .put("query.client.timeout", "10m")
                .put("exchange.http-client.read-timeout", "1h")
                .put("datasources", "native,tpch,tpch_sampled")
                .build();

        TestingPrestoServer server = new TestingPrestoServer(coordinator, properties, ENVIRONMENT, discoveryUri, ImmutableList.<Module>of());
        server.installPlugin(new TpchPlugin(), "tpch", "tpch");
        server.installPlugin(new SampledTpchPlugin(), "tpch_sampled", "tpch_sampled");
        return server;
    }
View Full Code Here

Examples of com.facebook.presto.server.testing.TestingPrestoServer

                .put("datasources", "system");
        if (coordinator) {
            properties.put("node-scheduler.include-coordinator", "false");
        }

        TestingPrestoServer server = new TestingPrestoServer(coordinator, properties.build(), ENVIRONMENT, discoveryUri, ImmutableList.<Module>of());

        return server;
    }
View Full Code Here

Examples of com.facebook.presto.server.testing.TestingPrestoServer

                .put("datasources", "default,tpch,tpch_sampled");
        if (coordinator) {
            properties.put("node-scheduler.include-coordinator", "false");
        }

        TestingPrestoServer server = new TestingPrestoServer(coordinator, properties.build(), ENVIRONMENT, discoveryUri, ImmutableList.<Module>of());

        // install tpch plugins
        server.installPlugin(new TpchPlugin());
        server.createConnection("tpch", "tpch");

        server.installPlugin(new SampledTpchPlugin());
        server.createConnection("tpch_sampled", "tpch_sampled");

        // install raptor plugin
        File baseDir = server.getBaseDataDir().toFile();

        Map<String, String> raptorProperties = ImmutableMap.<String, String>builder()
                .put("metadata.db.type", "h2")
                .put("metadata.db.filename", new File(baseDir, "db").getAbsolutePath())
                .put("storage.data-directory", new File(baseDir, "data").getAbsolutePath())
                .build();

        server.installPlugin(new RaptorPlugin());
        server.createConnection("default", "raptor", raptorProperties);

        return server;
    }
View Full Code Here

Examples of com.facebook.presto.server.testing.TestingPrestoServer

    @BeforeMethod
    public void setup()
            throws Exception
    {
        server = new TestingPrestoServer();
        client = new JettyHttpClient();
    }
View Full Code Here

Examples of com.facebook.presto.server.testing.TestingPrestoServer

                .put("query.client.timeout", "10m")
                .put("exchange.http-client.read-timeout", "1h")
                .put("datasources", "tpch_indexed")
                .build();

        TestingPrestoServer server = new TestingPrestoServer(coordinator, properties, ENVIRONMENT, discoveryUri, ImmutableList.<Module>of());
        server.installPlugin(new IndexedTpchPlugin(getTpchIndexSpec()));
        server.createConnection("tpch_indexed", "tpch_indexed");
        return server;
    }
View Full Code Here

Examples of com.facebook.presto.server.testing.TestingPrestoServer

                .put("exchange.http-client.read-timeout", "1h")
                .put("compiler.interpreter-enabled", "false")
                .put("node-scheduler.min-candidates", "1")
                .put("datasources", "system");

        return new TestingPrestoServer(true, properties.build(), null, null, ImmutableList.<Module>of());
    }
View Full Code Here

Examples of com.facebook.presto.server.testing.TestingPrestoServer

            ImmutableList.Builder<TestingPrestoServer> servers = ImmutableList.builder();
            coordinator = closer.register(createTestingPrestoServer(discoveryServer.getBaseUrl(), true));
            servers.add(coordinator);

            for (int i = 1; i < workersCount; i++) {
                TestingPrestoServer worker = closer.register(createTestingPrestoServer(discoveryServer.getBaseUrl(), false));
                servers.add(worker);
            }
            this.servers = servers.build();
        }
        catch (Exception e) {
View Full Code Here

Examples of com.facebook.presto.server.testing.TestingPrestoServer

        if (coordinator) {
            properties.put("node-scheduler.include-coordinator", "false");
            properties.put("distributed-joins-enabled", "true");
        }

        TestingPrestoServer server = new TestingPrestoServer(coordinator, properties.build(), ENVIRONMENT, discoveryUri, ImmutableList.<Module>of());

        log.info("Created TestingPrestoServer in %s", nanosSince(start).convertToMostSuccinctTimeUnit());

        return server;
    }
View Full Code Here

Examples of com.facebook.presto.server.testing.TestingPrestoServer

            ImmutableList.Builder<TestingPrestoServer> servers = ImmutableList.builder();
            coordinator = closer.register(createTestingPrestoServer(discoveryServer.getBaseUrl(), true));
            servers.add(coordinator);

            for (int i = 1; i < workersCount; i++) {
                TestingPrestoServer worker = closer.register(createTestingPrestoServer(discoveryServer.getBaseUrl(), false));
                servers.add(worker);
            }
            this.servers = servers.build();
        }
        catch (Exception e) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.