Examples of installPlugin()


Examples of com.facebook.presto.tests.DistributedQueryRunner.installPlugin()

            File baseDir = queryRunner.getCoordinator().getBaseDataDir().toFile();
            InMemoryHiveMetastore metastore = new InMemoryHiveMetastore();
            metastore.createDatabase(new Database("tpch", null, new File(baseDir, "tpch").toURI().toString(), null));
            metastore.createDatabase(new Database("tpch_sampled", null, new File(baseDir, "tpch_sampled").toURI().toString(), null));

            queryRunner.installPlugin(new HivePlugin("hive", metastore));
            Map<String, String> hiveProperties = ImmutableMap.<String, String>builder()
                    .put("hive.metastore.uri", "thrift://localhost:8080")
                    .put("hive.allow-drop-table", "true")
                    .put("hive.allow-rename-table", "true")
                    .build();
View Full Code Here

Examples of com.facebook.presto.tests.DistributedQueryRunner.installPlugin()

    private static QueryRunner createQueryRunner()
            throws Exception
    {
        DistributedQueryRunner queryRunner = new DistributedQueryRunner(createSession("tpch"), 3);

        queryRunner.installPlugin(new TpchPlugin());
        queryRunner.createCatalog("tpch", "tpch");

        Map<String, String> properties = TestingH2JdbcModule.createProperties();
        createSchema(properties, "tpch");
View Full Code Here

Examples of com.facebook.presto.tests.DistributedQueryRunner.installPlugin()

        queryRunner.createCatalog("tpch", "tpch");

        Map<String, String> properties = TestingH2JdbcModule.createProperties();
        createSchema(properties, "tpch");

        queryRunner.installPlugin(new JdbcPlugin("base-jdbc", new TestingH2JdbcModule()));
        queryRunner.createCatalog("jdbc", "base-jdbc", properties);

        log.info("Loading data...");
        long startTime = System.nanoTime();
        copyAllTables(queryRunner, "tpch", TINY_SCHEMA_NAME, createSession("tpch"));
View Full Code Here

Examples of com.facebook.presto.tests.DistributedQueryRunner.installPlugin()

    private static QueryRunner doCreateQueryRunner(TestingPostgreSqlServer server)
            throws Exception
    {
        DistributedQueryRunner queryRunner = new DistributedQueryRunner(createSession("tpch"), 3);

        queryRunner.installPlugin(new TpchPlugin());
        queryRunner.createCatalog("tpch", "tpch");

        Map<String, String> properties = ImmutableMap.of("connection-url", server.getJdbcUrl());
        createSchema(server.getJdbcUrl(), "tpch");
View Full Code Here

Examples of com.facebook.presto.tests.DistributedQueryRunner.installPlugin()

        queryRunner.createCatalog("tpch", "tpch");

        Map<String, String> properties = ImmutableMap.of("connection-url", server.getJdbcUrl());
        createSchema(server.getJdbcUrl(), "tpch");

        queryRunner.installPlugin(new PostgreSqlPlugin());
        queryRunner.createCatalog("postgresql", "postgresql", properties);

        log.info("Loading data...");
        long startTime = System.nanoTime();
        copyAllTables(queryRunner, "tpch", TINY_SCHEMA_NAME, createSession("tpch"));
View Full Code Here

Examples of com.facebook.presto.tests.DistributedQueryRunner.installPlugin()

    {
        DistributedQueryRunner queryRunner = null;
        try {
            queryRunner = new DistributedQueryRunner(createSession(), 2);

            queryRunner.installPlugin(new TpchPlugin());
            queryRunner.createCatalog("tpch", "tpch");

            embeddedKafka.start();

            for (TpchTable<?> table : tables) {
View Full Code Here

Examples of com.gitblit.manager.IGitblit.installPlugin()

    public void run() throws Failure {
      IGitblit gitblit = getContext().getGitblit();
      try {
        String ulc = urlOrId.toLowerCase();
        if (ulc.startsWith("http://") || ulc.startsWith("https://")) {
          if (gitblit.installPlugin(urlOrId, !disableChecksum)) {
            stdout.println(String.format("Installed %s", urlOrId));
          } else {
            throw new UnloggedFailure(1, String.format("Failed to install %s", urlOrId));
          }
        } else {
View Full Code Here

Examples of com.gitblit.manager.IGitblit.installPlugin()

                  urlOrId, pr.version, pr.requires);
              throw new UnloggedFailure(1, msg);
            }
          }

          if (gitblit.installPlugin(pr.url, !disableChecksum)) {
            stdout.println(String.format("Installed %s", urlOrId));
          } else {
            throw new UnloggedFailure(1, String.format("Failed to install %s", urlOrId));
          }
        }
View Full Code Here

Examples of liveplugin.toolwindow.util.ExamplePluginInstaller.installPlugin()

    });
  }

  private static void installHelloWorldPlugin() {
    ExamplePluginInstaller pluginInstaller = new ExamplePluginInstaller(PLUGIN_EXAMPLES_PATH + "/helloWorld", asList("plugin.groovy"));
    pluginInstaller.installPlugin(new ExamplePluginInstaller.Listener() {
      @Override public void onException(Exception e, String pluginPath) {
        LOG.warn("Failed to install plugin: " + pluginPath, e);
      }
    });
  }
View Full Code Here

Examples of org.apache.maven.plugin.PluginManager.installPlugin()

        checkAttribute( file, "file" );

        PluginManager manager = getMavenContext().getMavenSession().getPluginManager();
        try
        {
            manager.installPlugin( file, null, cache );
        }
        catch ( Exception e )
        {
            throw new JellyTagException( "error installing plugin", 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.