Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 88763 invoked from network); 5 Mar 2008 08:52:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Mar 2008 08:52:56 -0000 Received: (qmail 33425 invoked by uid 500); 5 Mar 2008 08:52:52 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 33002 invoked by uid 500); 5 Mar 2008 08:52:50 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 32993 invoked by uid 99); 5 Mar 2008 08:52:50 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Mar 2008 00:52:50 -0800 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.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Mar 2008 08:52:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 014B2234C03B for ; Wed, 5 Mar 2008 00:51:41 -0800 (PST) Message-ID: <1604026254.1204707100997.JavaMail.jira@brutus> Date: Wed, 5 Mar 2008 00:51:40 -0800 (PST) From: "Hemanth Yamijala (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Updated: (HADOOP-2925) [HOD] Create mapred system directory using a naming convention that will avoid clashes in multi-user shared cluster scenario. In-Reply-To: <982917235.1204544210456.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-2925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Hemanth Yamijala updated HADOOP-2925: ------------------------------------- Attachment: 2925.1.patch This new patch preserves the idea of the earlier patch, but parametrizes the root directory of the mapred system directory. This was earlier hardcoded to /mapredsystem. But it was decided it will be better to make it a config parameter, so administrators have a choice of setting it to the value they want according to security policies. The current path will be hodring.mapred-system-dir-root/userid/mapredsystem/torque-jobid. Note that setting hodring.mapred-system-dir-root to /user will make these get written to the user's home directory in DFS and thus negate the need for any management in configuring permissions for the system directory. Another change included in the patch is do a small change to the parameter of the hod logs directory. So, this will now be hodring.log-destination-uri/userid/hod-logs/torque-jobid/.. The change is for the same reason. > [HOD] Create mapred system directory using a naming convention that will avoid clashes in multi-user shared cluster scenario. > ----------------------------------------------------------------------------------------------------------------------------- > > Key: HADOOP-2925 > URL: https://issues.apache.org/jira/browse/HADOOP-2925 > Project: Hadoop Core > Issue Type: Bug > Components: contrib/hod > Affects Versions: 0.16.0 > Reporter: Hemanth Yamijala > Assignee: Hemanth Yamijala > Fix For: 0.16.1 > > Attachments: 2925.1.patch, 2925.patch > > > Currently, HOD generates the name of the mapredsystem directory using the name /mapredsystem/hostname-of-jobtracker. > In HADOOP-2899, we ran into a scenario where this naming convention could lead to problems in case dfs permissions are enabled. While the bug should ideally be addressed in Hadoop M/R, it will be better that HOD does not generate names that can potentially clash across runs. One way to solve the problem is to do what HOD already does for local log and temp directories - name it using username.torque-job-id, which is going to be pretty unique mostly. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.