Package org.apache.hadoop.hive.ql.plan

Examples of org.apache.hadoop.hive.ql.plan.CopyWork


        // Has to use full name to make sure it does not conflict with org.apache.commons.lang.StringUtils
        LOG.error(org.apache.hadoop.util.StringUtils.stringifyException(e));
        LOG.error("Invalid URI. Check value of variable: " + HiveConf.ConfVars.SCRATCHDIR.toString());
        throw new SemanticException("Cannot initialize temporary destination URI");
      }
      rTask = TaskFactory.get(new copyWork(fromURI.toString(), copyURI.toString()), this.conf);
      fromURI = copyURI;
    }

    // create final load/move work
    List<loadTableDesc> loadTableWork =  new ArrayList<loadTableDesc>();
View Full Code Here


    if(isLocal) {
      // if the local keyword is specified - we will always make a copy. this might seem redundant in the case
      // that the hive warehouse is also located in the local file system - but that's just a test case.
      String copyURIStr = ctx.getExternalTmpFileURI(toURI);
      URI copyURI = URI.create(copyURIStr);
      rTask = TaskFactory.get(new copyWork(fromURI.toString(), copyURIStr), this.conf);
      fromURI = copyURI;
    }

    // create final load/move work
View Full Code Here

    if(isLocal) {
      // if the local keyword is specified - we will always make a copy. this might seem redundant in the case
      // that the hive warehouse is also located in the local file system - but that's just a test case.
      String copyURIStr = ctx.getExternalTmpFileURI(toURI);
      URI copyURI = URI.create(copyURIStr);
      rTask = TaskFactory.get(new copyWork(fromURI.toString(), copyURIStr), this.conf);
      fromURI = copyURI;
    }
   
    // create final load/move work
View Full Code Here

        // Has to use full name to make sure it does not conflict with org.apache.commons.lang.StringUtils
        LOG.error(org.apache.hadoop.util.StringUtils.stringifyException(e));
        LOG.error("Invalid URI. Check value of variable: " + HiveConf.ConfVars.SCRATCHDIR.toString());
        throw new SemanticException("Cannot initialize temporary destination URI");
      }
      rTask = TaskFactory.get(new copyWork(fromURI.toString(), copyURI.toString()), this.conf);
      fromURI = copyURI;
    }

    // create final load/move work
    List<loadTableDesc> loadTableWork =  new ArrayList<loadTableDesc>();
View Full Code Here

TOP

Related Classes of org.apache.hadoop.hive.ql.plan.CopyWork

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.