Package com.splout.db.hadoop

Examples of com.splout.db.hadoop.SimpleGeneratorCMD.run()


    FileUtil.copy(FileSystem.getLocal(getConf()), pageCounts, fS, new Path(tmpHdfsPath, "input"), false,
        getConf());
   
    SimpleGeneratorCMD generator = new SimpleGeneratorCMD();
    generator.setConf(getConf());
    if(generator.run(new String[] { "-tb", "pagecountsintegration", "-t", "pagecounts", "-i",
        tmpHdfsPath + "/input", "-o", tmpHdfsPath + "/output", "-s",
        "projectcode:string, pagename:string, visits:int, bytes:long", "-pby", "projectcode,pagename",
        "-sep", "\" \"", "-p", "2", "-e", engine }) < 0) {
      throw new RuntimeException("Generator failed!");
    }
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.