/** * Create a map-reduce scratch directory on demand and return it. * */ public Path getMRScratchDir() { // if we are executing entirely on the client side - then // just (re)use the local scratch directory if(isLocalOnlyExecutionMode()) { return getLocalScratchDir(!isExplainSkipExecution()); } try { Path dir = FileUtils.makeQualified(nonLocalScratchPath, conf); URI uri = dir.toUri(); Path newScratchDir = getScratchDir(uri.getScheme(), uri.getAuthority(), !isExplainSkipExecution(), uri.getPath()); LOG.info("New scratch dir is " + newScratchDir); return newScratchDir; } catch (IOException e) { throw new RuntimeException(e); } catch (IllegalArgumentException e) { throw new RuntimeException("Error while making MR scratch " + "directory - check filesystem config (" + e.getCause() + ")", e); } }
/** * Create a map-reduce scratch directory on demand and return it. * */ public Path getMRScratchDir() { // if we are executing entirely on the client side - then // just (re)use the local scratch directory if(isLocalOnlyExecutionMode()) { return getLocalScratchDir(!isExplainSkipExecution()); } try { Path dir = FileUtils.makeQualified(nonLocalScratchPath, conf); URI uri = dir.toUri(); Path newScratchDir = getScratchDir(uri.getScheme(), uri.getAuthority(), !isExplainSkipExecution(), uri.getPath()); LOG.info("New scratch dir is " + newScratchDir); return newScratchDir; } catch (IOException e) { throw new RuntimeException(e); } catch (IllegalArgumentException e) { throw new RuntimeException("Error while making MR scratch " + "directory - check filesystem config (" + e.getCause() + ")", e); } }
&& tblDesc.isTemporary() && AcidUtils.isInsertOnlyTable(tblDesc.getTblProps(), true)) { fname = FileUtils.makeQualified(location, conf).toString(); } else { fname = ctx.getExtTmpPathRelTo( FileUtils.makeQualified(location, conf)).toString();
Path qPath = FileUtils.makeQualified(dest_path, conf); queryTmpdir = ctx.getTempDirForPath(qPath, true); } catch (Exception e) {
Path qPath = FileUtils.makeQualified(destinationPath, conf); queryTmpdir = isMmTable ? qPath : ctx.getTempDirForFinalJobPath(qPath); if (Utilities.FILE_OP_LOGGER.isTraceEnabled()) {
FileUtils.makeQualified(location, conf)).toString(); } catch (Exception e) { throw new SemanticException(generateErrorMessage(ast,
/** * Create a map-reduce scratch directory on demand and return it. * */ public String getMRScratchDir() { // if we are executing entirely on the client side - then // just (re)use the local scratch directory if(isLocalOnlyExecutionMode()) return getLocalScratchDir(!explain); try { Path dir = FileUtils.makeQualified(nonLocalScratchPath, conf); URI uri = dir.toUri(); return getScratchDir(uri.getScheme(), uri.getAuthority(), !explain, uri.getPath()); } catch (IOException e) { throw new RuntimeException(e); } catch (IllegalArgumentException e) { throw new RuntimeException("Error while making MR scratch " + "directory - check filesystem config (" + e.getCause() + ")", e); } }
/** * Create a map-reduce scratch directory on demand and return it. * */ public Path getMRScratchDir() { // if we are executing entirely on the client side - then // just (re)use the local scratch directory if(isLocalOnlyExecutionMode()) { return getLocalScratchDir(!explain); } try { Path dir = FileUtils.makeQualified(nonLocalScratchPath, conf); URI uri = dir.toUri(); Path newScratchDir = getScratchDir(uri.getScheme(), uri.getAuthority(), !explain, uri.getPath()); LOG.info("New scratch dir is " + newScratchDir); return newScratchDir; } catch (IOException e) { throw new RuntimeException(e); } catch (IllegalArgumentException e) { throw new RuntimeException("Error while making MR scratch " + "directory - check filesystem config (" + e.getCause() + ")", e); } }
Path qPath = FileUtils.makeQualified(dest_path, conf); queryTmpdir = ctx.getExternalTmpFileURI(qPath.toUri()); } catch (Exception e) {
Path qPath = FileUtils.makeQualified(dest_path, conf); queryTmpdir = ctx.getExtTmpPathRelTo(qPath); } catch (Exception e) {
try { fname = ctx.getExternalTmpFileURI( FileUtils.makeQualified(new Path(location), conf).toUri()); } catch (Exception e) { throw new SemanticException("Error creating temporary folder on: " + location, e);
FileUtils.makeQualified(location, conf)).toString(); } catch (Exception e) { throw new SemanticException(generateErrorMessage(ast,