Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 79935 invoked from network); 7 May 2010 07:37:13 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 May 2010 07:37:13 -0000 Received: (qmail 21095 invoked by uid 500); 7 May 2010 07:37:12 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 20973 invoked by uid 500); 7 May 2010 07:37:12 -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 20961 invoked by uid 99); 7 May 2010 07:37:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 May 2010 07:37:11 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 May 2010 07:37:09 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o477alXn023239 for ; Fri, 7 May 2010 07:36:48 GMT Message-ID: <31701107.27011273217807569.JavaMail.jira@thor> Date: Fri, 7 May 2010 03:36:47 -0400 (EDT) From: "Amar Kamat (JIRA)" To: common-issues@hadoop.apache.org Subject: [jira] Updated: (HADOOP-6757) NullPointerException for hadoop clients launched from streaming tasks MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-6757?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Amar Kamat updated HADOOP-6757: ------------------------------- Attachment: BZ-3620565-v1.0.patch Attaching a patch for Yahoo!'s distribution if Hadoop not to be committed here. This patch adds HADOOP_CLIENT_OPTS to HADOOP_OPTS so that the TLA level env settings gets passed correctly. > NullPointerException for hadoop clients launched from streaming tasks > --------------------------------------------------------------------- > > Key: HADOOP-6757 > URL: https://issues.apache.org/jira/browse/HADOOP-6757 > Project: Hadoop Common > Issue Type: Bug > Components: scripts > Reporter: Amar Kamat > Assignee: Amar Kamat > Attachments: BZ-3620565-v1.0.patch > > > TaskRunner sets HADOOP_ROOT_LOGGER to info,TLA while launching the child tasks. TLA implicitly assumes that that task-id information will be made available via the 'hadoop.tasklog.taskid' parameter. 'hadoop.tasklog.taskid' is passed to the child task by the TaskRunner via HADOOP_CLIENT_OPTS. When the streaming task launches a hadoop client (say hadoop job -list), the HADOOP_ROOT_LOGGER of the hadoop client is set to 'info,TLA' but hadoop.tasklog.taskid is not set resulting into NPE. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.