Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 63102 invoked from network); 25 Mar 2008 11:13:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 Mar 2008 11:13:34 -0000 Received: (qmail 88364 invoked by uid 500); 25 Mar 2008 11:13:31 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 88337 invoked by uid 500); 25 Mar 2008 11:13:30 -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 88328 invoked by uid 99); 25 Mar 2008 11:13:30 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Mar 2008 04:13:30 -0700 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; Tue, 25 Mar 2008 11:12:59 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A34AA234C0AD for ; Tue, 25 Mar 2008 04:11:26 -0700 (PDT) Message-ID: <971270841.1206443486667.JavaMail.jira@brutus> Date: Tue, 25 Mar 2008 04:11:26 -0700 (PDT) From: "Hemanth Yamijala (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-2855) [HOD] HOD fails to allocate a cluster if the tarball specified is a relative path In-Reply-To: <329553632.1203496903611.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-2855?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12581872#action_12581872 ] Hemanth Yamijala commented on HADOOP-2855: ------------------------------------------ Couple of comments: - Need unit test cases for validation and normalization of uri and directories. - We are validating the hadoop tar ball URI on the client. Since the current expectation is that the tarball exists only on the compute nodes, this may result in some regression - even though it is an unlikely scenario. Even if we keep this, the error message on validation failure is a bit confusing. It says invalid uri, but as far as the user is concerned it just seems like a file path to him. - For every datatype in types.py, there are 4 functions. The display_uri function is one of the 4 that's missing. Is this required ? - Do we need to do expanduser in types.py: __normalizePath ? - The code for verify_uri and norm_uri is trying to normalize a path even if the uri begins with file://. If we specify the URI in this format, I don't think the path can be relative, right ? So, I think we should only be checking for empty string, and not 'file' for the value of component[0]. > [HOD] HOD fails to allocate a cluster if the tarball specified is a relative path > --------------------------------------------------------------------------------- > > Key: HADOOP-2855 > URL: https://issues.apache.org/jira/browse/HADOOP-2855 > Project: Hadoop Core > Issue Type: Bug > Components: contrib/hod > Affects Versions: 0.16.0 > Reporter: Hemanth Yamijala > Assignee: Vinod Kumar Vavilapalli > Priority: Blocker > Fix For: 0.17.0 > > Attachments: HADOOP-2855 > > > Run hod -t my-tar.tar.gz -o "allocate hod-cluster 3". Ringmaster fails to come up. The log shows the exception as an invalid URL for the tarball file. Basically HOD should translate the relative path to an absolute path and send it to the ringmaster. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.