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 72AB61734F for ; Tue, 31 Mar 2015 21:22:56 +0000 (UTC) Received: (qmail 5084 invoked by uid 500); 31 Mar 2015 21:22:56 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 5033 invoked by uid 500); 31 Mar 2015 21:22:56 -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 5021 invoked by uid 99); 31 Mar 2015 21:22:56 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Mar 2015 21:22:56 +0000 Date: Tue, 31 Mar 2015 21:22:56 +0000 (UTC) From: "Allen Wittenauer (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (HADOOP-11764) Hadoop should have the option to use directory other than tmp for extracting and loading leveldbjni 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-11764?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14389438#comment-14389438 ] Allen Wittenauer edited comment on HADOOP-11764 at 3/31/15 9:22 PM: -------------------------------------------------------------------- bq. However, I agree with Anubhav Dhoot that it's better to setup env vars instead of modifying each daemon to set system property programatically. ... except, you don't have to. All of the daemons run through the Configuration class (and probably other classes as well). It could get set then, *if it isn't already*. bq. Would you mind elaborating what is the complete mess? The admin just needs to set HADOOP_LEVELDBJNI_DIR to somewhere else than /tmp if /tmp is mounted as noexec. If HADOOP_LEVELDBJNI_DIR is not set, it will just work as what it is now. I'm specifically referring to: bq. Therefore, my proposal is if HADOOP_LEVELDBJNI_DIR is specified, it will set to library.leveldbjni.path as well as be added to JAVA_LIBRARY_PATH. So not only do we have an extra -D parameter, -Djava.library.path also has the exact same content which increases the line length even more. This will almost certainly break some users at some point in time. was (Author: aw): bq. However, I agree with Anubhav Dhoot that it's better to setup env vars instead of modifying each daemon to set system property programatically. ... except, you don't have to. All of the daemons run through the Configuration class. It could get set then, *if it isn't already*. bq. Would you mind elaborating what is the complete mess? The admin just needs to set HADOOP_LEVELDBJNI_DIR to somewhere else than /tmp if /tmp is mounted as noexec. If HADOOP_LEVELDBJNI_DIR is not set, it will just work as what it is now. I'm specifically referring to: bq. Therefore, my proposal is if HADOOP_LEVELDBJNI_DIR is specified, it will set to library.leveldbjni.path as well as be added to JAVA_LIBRARY_PATH. So not only do we have an extra -D parameter, -Djava.library.path also has the exact same content which increases the line length even more. This will almost certainly break some users at some point in time. > Hadoop should have the option to use directory other than tmp for extracting and loading leveldbjni > --------------------------------------------------------------------------------------------------- > > Key: HADOOP-11764 > URL: https://issues.apache.org/jira/browse/HADOOP-11764 > Project: Hadoop Common > Issue Type: Bug > Reporter: Anubhav Dhoot > Assignee: Anubhav Dhoot > Attachments: YARN-3331.001.patch, YARN-3331.002.patch > > > /tmp can be required to be noexec in many environments. This causes a problem when nodemanager tries to load the leveldbjni library which can get unpacked and executed from /tmp. -- This message was sent by Atlassian JIRA (v6.3.4#6332)