You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Steve Loughran (JIRA)" <ji...@apache.org> on 2014/11/08 22:36:34 UTC
[jira] [Commented] (HADOOP-11285) FileUtil operations don't check
for native lib loaded on windows; fails with NPE
[ https://issues.apache.org/jira/browse/HADOOP-11285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14203602#comment-14203602 ]
Steve Loughran commented on HADOOP-11285:
-----------------------------------------
MAPREDUCE-5451 is an example of the current stack trace
> FileUtil operations don't check for native lib loaded on windows; fails with NPE
> --------------------------------------------------------------------------------
>
> Key: HADOOP-11285
> URL: https://issues.apache.org/jira/browse/HADOOP-11285
> Project: Hadoop Common
> Issue Type: Bug
> Components: util
> Affects Versions: 2.6.0
> Environment: windows
> Reporter: Steve Loughran
>
> On windows {{FileUtil.canRead()}} and the like requires the native APIs (at least until a migration to java 7 APIs). The methods do not, however, call {{NativeIO.isAvailable()}} to verify the native libs are there. As a result, the calls fail with less useful stack traces.
> if Java 7 allows all of these calls to be replaced, then this is a non-issue
> If not, I propose some {{verifyAvailableOnWindows()}} method which triggers an exception; one which includes some hints about the problem —perhaps a URL to a wiki page on the topic
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)