Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-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 6210BD45A for ; Tue, 2 Oct 2012 17:51:08 +0000 (UTC) Received: (qmail 11560 invoked by uid 500); 2 Oct 2012 17:51:08 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 11503 invoked by uid 500); 2 Oct 2012 17:51:08 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 11362 invoked by uid 99); 2 Oct 2012 17:51:08 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Oct 2012 17:51:08 +0000 Date: Wed, 3 Oct 2012 04:51:07 +1100 (NCT) From: "Eli Collins (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <1441889569.155321.1349200268002.JavaMail.jiratomcat@arcas> In-Reply-To: <898392285.6370.1343928062785.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (HDFS-3753) Tests don't run with native libraries 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/HDFS-3753?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13467901#comment-13467901 ] Eli Collins commented on HDFS-3753: ----------------------------------- +1 looks great Nit: LD_LIBRARY_PATH shouldn't be indented more, I'll fix that when I commit > Tests don't run with native libraries > ------------------------------------- > > Key: HDFS-3753 > URL: https://issues.apache.org/jira/browse/HDFS-3753 > Project: Hadoop HDFS > Issue Type: Bug > Components: build, test > Affects Versions: 2.0.0-alpha > Reporter: Eli Collins > Assignee: Colin Patrick McCabe > Attachments: HDFS-3753.001.patch, HDFS-3753.002.patch > > > Test execution when run with the native flag and native libraries have been built don't actually use the native libs because NativeCodeLoader is unable to load native-hadoop. Eg run {{mvn compile -Pnative}} then {{mvn -Dtest=TestSeekBug test -Pnative}} and check the test output. This is because the test's java.library.path is looking for the lib in hdfs ( > hadoop-hdfs-project/hadoop-hdfs/target/native/target/usr/local/lib) however the native lib lives in common. I confirmed copying the lib to the appropriate directory fixes things. We need to update the java.library.path for test execution to include the common lib dir. This may be an issue with MR as well. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira