hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-11003) org.apache.hadoop.util.Shell should not take a dependency on binaries being deployed when used as a library
Date Tue, 06 Oct 2015 19:06:27 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-11003?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14945586#comment-14945586
] 

Steve Loughran commented on HADOOP-11003:
-----------------------------------------

In HADOOP-10775 we're not logging until the path is needed, at which point an exception will
be raised with meaningful text. 

> org.apache.hadoop.util.Shell should not take a dependency on binaries being deployed
when used as a library
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-11003
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11003
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: util
>         Environment: Windows
>            Reporter: Remus Rusanu
>
> HIVE-7845 shows how an exception is being thrown when org.apache.hadoop.util.Shell is
being used as a library, not as part of a deployed Hadoop environment.
> {code}
> 13:20:00 [ERROR pool-2-thread-4 Shell.getWinUtilsPath] Failed to locate the winutils
binary in the hadoop binary path
> java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop
binaries.
>                at org.apache.hadoop.util.Shell.getQualifiedBinPath(Shell.java:324)
>                at org.apache.hadoop.util.Shell.getWinUtilsPath(Shell.java:339)
>                at org.apache.hadoop.util.Shell.<clinit>(Shell.java:332)
>                at org.apache.hadoop.hive.conf.HiveConf$ConfVars.findHadoopBinary(HiveConf.java:918)
>                at org.apache.hadoop.hive.conf.HiveConf$ConfVars.<clinit>(HiveConf.java:228)
> {code}
> There are similar native dependencies (eg. NativeIO and hadoop.dll) that handle lack
of binaries with fallback to non-native code paths.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message