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:40:33 UTC
[jira] [Updated] (HADOOP-11285) FileUtil operations don't check for
native lib loaded on windows
[ https://issues.apache.org/jira/browse/HADOOP-11285?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Loughran updated HADOOP-11285:
------------------------------------
Summary: FileUtil operations don't check for native lib loaded on windows (was: FileUtil operations don't check for native lib loaded on windows; fails with NPE)
> FileUtil operations don't check for native lib loaded on windows
> ----------------------------------------------------------------
>
> 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)