Examples of DrillbitStartupException


Examples of org.apache.drill.exec.exception.DrillbitStartupException

    Drillbit bit;
    try {
      logger.debug("Setting up Drillbit.");
      bit = new Drillbit(config, null);
    } catch (Exception ex) {
      throw new DrillbitStartupException("Failure while initializing values in Drillbit.", ex);
    }
    try {
      logger.debug("Starting Drillbit.");
      bit.run();
    } catch (Exception e) {
      throw new DrillbitStartupException("Failure during initial startup of Drillbit.", e);
    }
    return bit;
  }
View Full Code Here

Examples of org.apache.drill.exec.exception.DrillbitStartupException

        b.bind(++port).sync();
        break;
      } catch (Exception e) {
        if (e instanceof BindException)
          continue;
        throw new DrillbitStartupException("Could not bind Drillbit", e);
      }
    }
   
    connect = !connect;
    logger.debug("Server started on port {} of type {} ", port, this.getClass().getSimpleName());
View Full Code Here

Examples of org.apache.drill.exec.exception.DrillbitStartupException

  private final CuratorFramework curator;

  public ZkPStoreProvider(PStoreRegistry registry) throws DrillbitStartupException {
    ClusterCoordinator coord = registry.getClusterCoordinator();
    if (!(coord instanceof ZKClusterCoordinator)) {
      throw new DrillbitStartupException("A ZkPStoreProvider was created without a ZKClusterCoordinator.");
    }
    this.curator = ((ZKClusterCoordinator)registry.getClusterCoordinator()).getCurator();
  }
View Full Code Here

Examples of org.apache.drill.exec.exception.DrillbitStartupException

      }else{
        cacheChannel.connect("c1");
      }

    } catch (Exception e) {
      throw new DrillbitStartupException("Failure while trying to set up JGroups.");
    }
  }
View Full Code Here

Examples of org.apache.drill.exec.exception.DrillbitStartupException

        break;
      } catch (Exception e) {
        if (e instanceof BindException && allowPortHunting){
          continue;
        }
        throw new DrillbitStartupException("Could not bind Drillbit", e);
      }
    }

    connect = !connect;
    logger.debug("Server started on port {} of type {} ", port, this.getClass().getSimpleName());
View Full Code Here

Examples of org.apache.drill.exec.exception.DrillbitStartupException

    Drillbit bit;
    try {
      logger.debug("Setting up Drillbit.");
      bit = new Drillbit(config, null);
    } catch (Exception ex) {
      throw new DrillbitStartupException("Failure while initializing values in Drillbit.", ex);
    }
    try {
      logger.debug("Starting Drillbit.");
      bit.run();
    } catch (Exception e) {
      bit.close();
      throw new DrillbitStartupException("Failure during initial startup of Drillbit.", e);
    }
    return bit;
  }
View Full Code Here

Examples of org.apache.drill.exec.exception.DrillbitStartupException

        break;
      } catch (Exception e) {
        if (e instanceof BindException && allowPortHunting){
          continue;
        }
        throw new DrillbitStartupException("Could not bind Drillbit", e);
      }
    }

    connect = !connect;
    logger.debug("Server started on port {} of type {} ", port, this.getClass().getSimpleName());
View Full Code Here

Examples of org.apache.drill.exec.exception.DrillbitStartupException

    Drillbit bit;
    try {
      logger.debug("Setting up Drillbit.");
      bit = new Drillbit(config, null);
    } catch (Exception ex) {
      throw new DrillbitStartupException("Failure while initializing values in Drillbit.", ex);
    }
    try {
      logger.debug("Starting Drillbit.");
      bit.run();
    } catch (Exception e) {
      bit.close();
      throw new DrillbitStartupException("Failure during initial startup of Drillbit.", e);
    }
    return bit;
  }
View Full Code Here

Examples of org.apache.drill.exec.exception.DrillbitStartupException

  private final ZkEStoreProvider zkEStoreProvider;

  public ZkPStoreProvider(PStoreRegistry registry) throws DrillbitStartupException {
    ClusterCoordinator coord = registry.getClusterCoordinator();
    if (!(coord instanceof ZKClusterCoordinator)) {
      throw new DrillbitStartupException("A ZkPStoreProvider was created without a ZKClusterCoordinator.");
    }
    this.curator = ((ZKClusterCoordinator)registry.getClusterCoordinator()).getCurator();

    if (registry.getConfig().hasPath(DRILL_EXEC_SYS_STORE_PROVIDER_ZK_BLOBROOT)) {
      blobRoot = new Path(registry.getConfig().getString(DRILL_EXEC_SYS_STORE_PROVIDER_ZK_BLOBROOT));
    } else {
      String drillLogDir = System.getenv("DRILL_LOG_DIR");
      if (drillLogDir == null) {
        drillLogDir = "/var/log/drill";
      }
      blobRoot = new Path(new File(drillLogDir).getAbsoluteFile().toURI());
    }
    Configuration fsConf = new Configuration();
    fsConf.set(FileSystem.FS_DEFAULT_NAME_KEY, blobRoot.toUri().toString());
    try {
      fs = FileSystemCreator.getFileSystem(registry.getConfig(), fsConf);
      fs.mkdirs(blobRoot);
    } catch (IOException e) {
      throw new DrillbitStartupException("Unable to initialize blob storage.", e);
    }

    zkEStoreProvider = new ZkEStoreProvider(curator);
  }
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.