Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id ED9DAD53E for ; Fri, 7 Sep 2012 15:16:08 +0000 (UTC) Received: (qmail 28030 invoked by uid 500); 7 Sep 2012 15:16:08 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 27961 invoked by uid 500); 7 Sep 2012 15:16:08 -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 27864 invoked by uid 99); 7 Sep 2012 15:16:08 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Sep 2012 15:16:08 +0000 Date: Sat, 8 Sep 2012 02:16:08 +1100 (NCT) From: "Ivan Mitic (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <1011087102.50589.1347030968158.JavaMail.jiratomcat@arcas> In-Reply-To: <1861866472.4989.1344900698011.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (HADOOP-8694) Create true symbolic links on Windows MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/HADOOP-8694?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13450700#comment-13450700 ] Ivan Mitic commented on HADOOP-8694: ------------------------------------ Thanks Chuan for the patch. It's great to see symlink functionality on Windows. A few minor comments: 1. FileUtil#symlink: Should we log a warning on {{ExitCodeException}} to be consistent with the previous behavior? 2. symlink.c: IMO, we should remove {{CreateJunctionPointW}} if it is not used in the codebase. 3. Would be good to add a few test cases for the symlink functionality. > Create true symbolic links on Windows > ------------------------------------- > > Key: HADOOP-8694 > URL: https://issues.apache.org/jira/browse/HADOOP-8694 > Project: Hadoop Common > Issue Type: Bug > Affects Versions: 1-win > Reporter: Chuan Liu > Assignee: Chuan Liu > Fix For: 1-win > > Attachments: HADOOP-8694-branch-1-win.patch, secpol.png > > > In branch-1-win, we currently copy files for symbolic links in Hadoop on Windows. We have talked to [~davidlao] who made the original fix, and did some investigation on Windows. Windows began to support symbolic links (symlinks) since Vista/Server 2008. The original reason to copy files instead of creating actual symlinks is that only Administrators has the privilege to create symlinks on Windows _by default_. After talking to NTFS folks, we knew the reason for that is mostly due to security, and this default behavior may not be changed in near future. Though this behavior can be changed via the Local Security Policy management console, i.e. secpol.msc, under Security Settings\Local Policies\User Rights Assignment\Create symbolic links. > > In Hadoop, symlinks is mostly used to for DistributedCache and attempted logs. We felt the usages are important enough for us to provide true symlinks support, and users need to have the symlink creation privilege enabled on Windows to use Hadoop. > This JIRA is created to tracking symlink support on Windows. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira