Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 40978 invoked from network); 5 Sep 2008 10:34:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Sep 2008 10:34:40 -0000 Received: (qmail 46779 invoked by uid 500); 5 Sep 2008 10:34:35 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 46734 invoked by uid 500); 5 Sep 2008 10:34:34 -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 46716 invoked by uid 99); 5 Sep 2008 10:34:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Sep 2008 03:34:34 -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; Fri, 05 Sep 2008 10:33:44 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 83E6F234C1CF for ; Fri, 5 Sep 2008 03:33:45 -0700 (PDT) Message-ID: <975836429.1220610825539.JavaMail.jira@brutus> Date: Fri, 5 Sep 2008 03:33:45 -0700 (PDT) From: "Steve Loughran (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Commented: (HADOOP-4014) DFS upgrade fails on Windows In-Reply-To: <1443412745.1219646264545.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-4014?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12628606#action_12628606 ] Steve Loughran commented on HADOOP-4014: ---------------------------------------- The quoted OS in in a JVM comes from the JRE; different JVMs detect different values, and tend to lag OS releases. OpenJDK even reports different things from a closed JDK. Which makes it very hard to do OS family detection reliably. Its probalby only java6+ that detects Vista, for example. The most broadly tested code for this in apache is Ant's OS condition http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/condition/Os.java?view=markup This -lowercases in the US locale the jvm properties -assumes the presence of "windows" in the OS => windows, assumes further than only a few limited versions are win9x; the rest is NT-based -looks for various strings for macos -guesses that systems with / and : as seperators are unix-like -looks for various obscure operating systems -or bails out I'd recommend taking this code and adapting it; strip out netware and OS/360 support if need be. This routine is the first one to get bugreps when a new OS or JDK ships, so is maintained. > DFS upgrade fails on Windows > ---------------------------- > > Key: HADOOP-4014 > URL: https://issues.apache.org/jira/browse/HADOOP-4014 > Project: Hadoop Core > Issue Type: Bug > Components: fs > Affects Versions: 0.18.0 > Environment: Windows XP, Windows 2003 Server > Reporter: NOMURA Yoshihide > Attachments: HADOOP-4014.patch > > > FileUtil.HardLink#createHardLink() didn't work on Windows, and DFS upgrade of Datanode fails. > The windows command 'fsutil' requires the arguments link name first as follows, > > fsutil hardlink create > But the current FileUtil passes the target first. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.