Examples of GiraphClasses


Examples of org.apache.giraph.conf.GiraphClasses

   * Log the options set by user
   *
   * @param giraphConf GiraphConfiguration
   */
  private void logOptions(GiraphConfiguration giraphConf) {
    GiraphClasses classes = new GiraphClasses(giraphConf);

    LOG.info(getClass().getSimpleName() + " with");

    LOG.info(LOG_PREFIX + "-vertexClass=" + vertexClass.getCanonicalName());

    if (hiveToVertexClass != null) {
      LOG.info(LOG_PREFIX + "-hiveToVertexClass=" +
          hiveToVertexClass.getCanonicalName());
    }
    if (classes.getVertexInputFormatClass() != null) {
      LOG.info(LOG_PREFIX + "-vertexInputFormatClass=" +
          classes.getVertexInputFormatClass().getCanonicalName());
      logInputDesc(hiveVertexInputDescription, "vertex");
    }

    if (hiveToEdgeClass != null) {
      LOG.info(LOG_PREFIX + "-hiveToEdgeClass=" +
          hiveToEdgeClass.getCanonicalName());
    }
    if (classes.getEdgeInputFormatClass() != null) {
      LOG.info(LOG_PREFIX + "-edgeInputFormatClass=" +
        classes.getEdgeInputFormatClass().getCanonicalName());
      logInputDesc(hiveEdgeInputDescription, "edge");
    }

    LOG.info(LOG_PREFIX + "-outputTable=" +
        hiveOutputDescription.getTableName());
    if (hiveOutputDescription.hasPartitionValues()) {
      LOG.info(LOG_PREFIX + "-outputPartition=\"" +
          hiveOutputDescription.getPartitionValues() + "\"");
    }
    if (classes.getVertexOutputFormatClass() != null) {
      LOG.info(LOG_PREFIX + "-outputFormatClass=" +
          classes.getVertexOutputFormatClass().getCanonicalName());
    }

    LOG.info(LOG_PREFIX + "-workers=" + workers);
  }
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.