Package com.intel.hadoop.graphbuilder.preprocess.mapreduce

Examples of com.intel.hadoop.graphbuilder.preprocess.mapreduce.EdgeTransformMR


      throws NotFoundException, InstantiationException, IllegalAccessException,
      CannotCompileException {

    GraphParser graphparser = (GraphParser) graphParserClass().newInstance();

    EdgeTransformMR mr = new EdgeTransformMR(reduceEndPoint, graphparser,
        ParserFactory.getParserByClassName(vidClass().getName()),
        ParserFactory.getParserByClassName(edataClass().getName()));

    Class valueClass =  EdgeTransformJobValueFactory
        .getValueClassByClassName(vidClass().getName(), edataClass().getName());
    mr.setKeyValueClass(vidClass(), valueClass);
    // Distribute new class file to cluster.
    FsUtil.distributedTempClassToClassPath(mr.getConf());
    mr.setFunctionClass(reduceFunction().getClass(), applyFunction().getClass());

    if (userOpts != null) {
      mr.setUserOptions(userOpts);
    }

    try {
      mr.run(input, output);
    } catch (Exception e) {
      e.printStackTrace();
      return false;
    }
    return true;
View Full Code Here

TOP

Related Classes of com.intel.hadoop.graphbuilder.preprocess.mapreduce.EdgeTransformMR

Copyright © 2018 www.massapicom. 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.