Package org.apache.pig.backend.hadoop.executionengine.mapreduceExec

Examples of org.apache.pig.backend.hadoop.executionengine.mapreduceExec.SliceWrapper


    /**
     * This function is meant to be used if the mappers/reducers want to access
     * any HDFS file
     */
    public static InputStream openDFSFile(String fileName) throws IOException {
        SliceWrapper wrapper = PigInputFormat.getActiveSplit();

        if (wrapper == null)
            throw new RuntimeException(
                    "can't open DFS file while executing locally");
       
        return openDFSFile(fileName, ConfigurationUtil.toProperties(wrapper.getJobConf()));
       
    }
View Full Code Here

TOP

Related Classes of org.apache.pig.backend.hadoop.executionengine.mapreduceExec.SliceWrapper

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.