Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-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 16DD2EF78 for ; Mon, 14 Jan 2013 19:48:14 +0000 (UTC) Received: (qmail 57921 invoked by uid 500); 14 Jan 2013 19:48:13 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 57772 invoked by uid 500); 14 Jan 2013 19:48:13 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 57761 invoked by uid 99); 14 Jan 2013 19:48:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jan 2013 19:48:13 +0000 Date: Mon, 14 Jan 2013 19:48:13 +0000 (UTC) From: "Ivan A. Veselovsky (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-9205) Java7: path to native libraries should be passed to tests via -Djava.library.path rather than env.LD_LIBRARY_PATH 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/HADOOP-9205?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13553038#comment-13553038 ] Ivan A. Veselovsky commented on HADOOP-9205: -------------------------------------------- I observed the problem with Oracle's JDK 1.7.0_10. The tests are not failing, they just use Java implementation instead of the native one, even if -Pnative profile is enabled. Links that seem to be relevant there are: http://www.oracle.com/technetwork/java/javase/jdk7-relnotes-418459.html https://blogs.oracle.com/darcy/entry/purging_ld_library_path I will investigate if the problem is reproducible with J1.7.0_05. > Java7: path to native libraries should be passed to tests via -Djava.library.path rather than env.LD_LIBRARY_PATH > ----------------------------------------------------------------------------------------------------------------- > > Key: HADOOP-9205 > URL: https://issues.apache.org/jira/browse/HADOOP-9205 > Project: Hadoop Common > Issue Type: Bug > Affects Versions: 3.0.0, 2.0.3-alpha, 0.23.6 > Reporter: Ivan A. Veselovsky > Assignee: Ivan A. Veselovsky > Attachments: HADOOP-9205.patch > > > Currently the path to native libraries is passed to unit tests via environment variable LD_LIBRARTY_PATH. This is okay for Java6, but does not work for Java7, since Java7 ignores this environment variable. > So, to run the tests with native implementation on Java7 one needs to pass the paths to native libs via -Djava.library.path system property rather than the LD_LIBRARY_PATH env variable. > The suggested patch fixes the problem via setting the paths to native libs using both LD_LIBRARY_PATH and -Djava.library.path property. This way the tests work equally on both Java6 and Java7. -- 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