Return-Path: X-Original-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4ACAA104AE for ; Wed, 6 Nov 2013 01:12:20 +0000 (UTC) Received: (qmail 97345 invoked by uid 500); 6 Nov 2013 01:12:19 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 97287 invoked by uid 500); 6 Nov 2013 01:12:19 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-issues@hadoop.apache.org Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 97278 invoked by uid 99); 6 Nov 2013 01:12:19 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Nov 2013 01:12:19 +0000 Date: Wed, 6 Nov 2013 01:12:19 +0000 (UTC) From: "Chris Nauroth (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (MAPREDUCE-5451) MR uses LD_LIBRARY_PATH which doesn't mean anything in Windows MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/MAPREDUCE-5451?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13814485#comment-13814485 ] Chris Nauroth commented on MAPREDUCE-5451: ------------------------------------------ The test failures are more of the problems we've seen with leaks and resource exhaustion on the Jenkins machines. I reran all of these tests locally, and they passed. I intend to commit by tomorrow. > MR uses LD_LIBRARY_PATH which doesn't mean anything in Windows > -------------------------------------------------------------- > > Key: MAPREDUCE-5451 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-5451 > Project: Hadoop Map/Reduce > Issue Type: Bug > Affects Versions: 3.0.0, 2.1.1-beta > Environment: Windows > Reporter: Mostafa Elhemali > Assignee: Yingda Chen > Attachments: MAPREDUCE-5451-2.patch, MAPREDUCE-5451-3.patch, MAPREDUCE-5451-4.patch, MAPREDUCE-5451-5.patch, MAPREDUCE-5451-6.patch, MAPREDUCE-5451-7.patch, MAPREDUCE-5451.patch, YARN-729.patch > > > In order to set the path for loading native libraries, MR relies on the default value of the mapreduce.admin.user.env configuration setting the LD_LIBRARY_PATH environment entry. There are two problems with this setting in Windows: > a) LD_LIBRARY_PATH doesn't mean anything in Windows. > b) It sets it using $HADOOP_COMMON_HOME, instead of %HADOOP_COMMON_HOME%. > The default value here should be platform-dependent (use the PATH variable in Windows instead of LD_LIBRARY_PATH), or we should rely on another mechanism. The net effect is that in Windows unless this configuration is over-ridden MR jobs fail with this error: > {code} > 2013-05-29 13:51:41,049 FATAL [main] org.apache.hadoop.mapred.YarnChild: Error running child : java.lang.UnsatisfiedLinkError: org.apache.hadoop.io.nativeio.NativeIO$Windows.access0(Ljava/lang/String;I)Z > at org.apache.hadoop.io.nativeio.NativeIO$Windows.access0(Native Method) > at org.apache.hadoop.io.nativeio.NativeIO$Windows.access(NativeIO.java:393) > at org.apache.hadoop.fs.FileUtil.canRead(FileUtil.java:928) > at org.apache.hadoop.util.DiskChecker.checkAccessByFileMethods(DiskChecker.java:177) > at org.apache.hadoop.util.DiskChecker.checkDirAccess(DiskChecker.java:164) > at org.apache.hadoop.util.DiskChecker.checkDir(DiskChecker.java:98) > at org.apache.hadoop.fs.LocalDirAllocator$AllocatorPerContext.confChanged(LocalDirAllocator.java:288) > at org.apache.hadoop.fs.LocalDirAllocator$AllocatorPerContext.getLocalPathToRead(LocalDirAllocator.java:431) > at org.apache.hadoop.fs.LocalDirAllocator.getLocalPathToRead(LocalDirAllocator.java:164) > at org.apache.hadoop.mapred.YarnChild.configureLocalDirs(YarnChild.java:235) > at org.apache.hadoop.mapred.YarnChild.configureTask(YarnChild.java:294) > at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:143) > {code} -- This message was sent by Atlassian JIRA (v6.1#6144)