Return-Path: X-Original-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8F81A1983C for ; Thu, 21 Apr 2016 19:15:17 +0000 (UTC) Received: (qmail 45701 invoked by uid 500); 21 Apr 2016 19:15:12 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 45534 invoked by uid 500); 21 Apr 2016 19:15:12 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 45521 invoked by uid 99); 21 Apr 2016 19:15:11 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Apr 2016 19:15:11 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 594E3C1508 for ; Thu, 21 Apr 2016 19:15:11 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.72 X-Spam-Level: X-Spam-Status: No, score=-0.72 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=zfabrik-de.20150623.gappssmtp.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id fQYSsNkdK1wu for ; Thu, 21 Apr 2016 19:15:10 +0000 (UTC) Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 2DA025F23D for ; Thu, 21 Apr 2016 19:15:10 +0000 (UTC) Received: by mail-wm0-f49.google.com with SMTP id u206so147839868wme.1 for ; Thu, 21 Apr 2016 12:15:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zfabrik-de.20150623.gappssmtp.com; s=20150623; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding; bh=HDLRcwLabqbOvHuzGVK0v+6aVgRqIYlZoxaub61FFwU=; b=NtnUgS/xaYIQk9th5Ep8CGyMx8w4mF2g5/Ei9UdmC3QCq7ZtqdKrRvKLY2jZFAKUc8 cK9DY51+GFXuvXtamOIVMBLpZ+tYs2v4Hu1mQWr3oLV5f71NXyyVLWi1SG+SnQ5F8+dY 8zidDRbBOfRDg3DWj20dUZFU8Lt1k7GT7dtUgCuZ+m+5CN7thB7r/Ujt5nsr9NEiyy/O b19LJ+NRf1XqK6aRerbmzzsih4MOsSGw7c8xJO9jxfkoF4FSPuyzuJJxJQjV+Lh411lO CUxpQdinet68B3WW3fJCYTS/MEof6JvaOUIAgOufxaM5afBheW1bu8Y8twAzFIC2mPzv YXyA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding; bh=HDLRcwLabqbOvHuzGVK0v+6aVgRqIYlZoxaub61FFwU=; b=SwmGu9Zq088MoIWIaimWKSiItorti5hJMY5ynEMXzc7rtTdHqkCHQrfK9rKzWI2E7T 4x2Ketukp3dLs6bH2pi4z7IzvJmNuYujvJqwtqGowYTJK5I/2z/0R+MnId5C+hS4aVcT aJ2e0LDwdC8CGCnkaZnvpqFNsWtxIKUsjCU9BKpXz3MMKzRXyDY57+fIeaLb8XutkgRU 0JJ8iTmH0FQR35AxPtqa+QfvenJfGs6Js1g8P/iBPHnrPiQrfsveORV/kngBqNoay5k2 VUs2bEKOuv8a1GCjPbAylWRhfeWHkiYUc9SmfgcPFzlu6t9WEL8Z/l0hcSjevUL4OV3x KJxA== X-Gm-Message-State: AOPr4FUh4K69B26++d/ymw4AFrY3VrSYs+eWAG05Y46RuhEjLdL7qFRkfjzd0blztQsghQ== X-Received: by 10.194.23.226 with SMTP id p2mr16156407wjf.131.1461266104738; Thu, 21 Apr 2016 12:15:04 -0700 (PDT) Received: from ?IPv6:2a02:8071:895:8500:4883:9124:3a7f:1762? ([2a02:8071:895:8500:4883:9124:3a7f:1762]) by smtp.googlemail.com with ESMTPSA id ln7sm4226576wjb.40.2016.04.21.12.15.03 for (version=TLSv1/SSLv3 cipher=OTHER); Thu, 21 Apr 2016 12:15:03 -0700 (PDT) To: user@hadoop.apache.org From: Henning Blohm Subject: Best way to pass configuration properties to MRv2 jobs Message-ID: <571926B6.9030707@zfabrik.de> Date: Thu, 21 Apr 2016 21:15:02 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Hi, in our Hadoop 2.6.0 cluster, we need to pass some properties to all Hadoop processes so they can be referenced using ${...} syntax in configuration files. This works reasonably well using HADOOP_NAMENODE_OPTS and the like. For Map/Reduce jobs however, we need to speficy not only mapred.child.java.opts to pass system properties, in addition we need to set yarn.app.mapreduce.am.command-opts for anything that is referenced in Hadoop configuration files. In the end however almost all the properties passed are available as environment variables as well. Hence my question: * Is it possible to use reference environment variables in configuration files directly? * Does anybody know of a simpler way to make sure some system properties are _always_ set for all Yarn processes? Thanks, Henning --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@hadoop.apache.org For additional commands, e-mail: user-help@hadoop.apache.org