public static final String getWinUtilsPath() { String winUtilsPath = null; try { if (WINDOWS) { winUtilsPath = getQualifiedBinPath("winutils.exe"); } } catch (IOException ioe) { LOG.error("Failed to locate the winutils binary in the hadoop binary path", ioe); } return winUtilsPath; }
public static final String getWinUtilsPath() { String winUtilsPath = null; try { if (WINDOWS) { winUtilsPath = getQualifiedBinPath("winutils.exe"); } } catch (IOException ioe) { LOG.error("Failed to locate the winutils binary in the hadoop binary path", ioe); } return winUtilsPath; }
public static final String getWinUtilsPath() { String winUtilsPath = null; try { if (WINDOWS) { winUtilsPath = getQualifiedBinPath("winutils.exe"); } } catch (IOException ioe) { LOG.error("Failed to locate the winutils binary in the hadoop binary path", ioe); } return winUtilsPath; }
public static final String getWinUtilsPath() { String winUtilsPath = null; try { if (WINDOWS) { winUtilsPath = getQualifiedBinPath("winutils.exe"); } } catch (IOException ioe) { LOG.error("Failed to locate the winutils binary in the hadoop binary path", ioe); } return winUtilsPath; }
/** * Check for any needed libraries being present. On Unix none are needed; * on windows they must be present * @return true if all is well */ public static String checkForRequiredNativeLibraries() { if (!Shell.WINDOWS) { return ""; } StringBuilder errorText = new StringBuilder(""); if (!NativeIO.isAvailable()) { errorText.append("No native IO library. "); } try { String path = Shell.getQualifiedBinPath(WINUTILS); log.debug("winutils is at {}", path); } catch (IOException e) { errorText.append("No " + WINUTILS); log.warn("No winutils: {}", e, e); } try { File target = new File("target"); FileUtil.canRead(target); } catch (UnsatisfiedLinkError e) { log.warn("Failing to link to native IO methods: {}", e, e); errorText.append("No native IO methods"); } return errorText.toString(); }
/** * Check for any needed libraries being present. On Unix none are needed; * on windows they must be present * @return true if all is well */ public static String checkForRequiredNativeLibraries() { if (!Shell.WINDOWS) { return ""; } StringBuilder errorText = new StringBuilder(""); if (!NativeIO.isAvailable()) { errorText.append("No native IO library. "); } try { String path = Shell.getQualifiedBinPath(WINUTILS); log.debug("winutils is at {}", path); } catch (IOException e) { errorText.append("No " + WINUTILS); log.warn("No winutils: {}", e, e); } try { File target = new File("target"); FileUtil.canRead(target); } catch (UnsatisfiedLinkError e) { log.warn("Failing to link to native IO methods: {}", e, e); errorText.append("No native IO methods"); } return errorText.toString(); }