Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 817A2200B14 for ; Sat, 4 Jun 2016 01:29:01 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7EB72160A50; Fri, 3 Jun 2016 23:29:01 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id C9897160A49 for ; Sat, 4 Jun 2016 01:29:00 +0200 (CEST) Received: (qmail 90505 invoked by uid 500); 3 Jun 2016 23:28:59 -0000 Mailing-List: contact common-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-dev@hadoop.apache.org Received: (qmail 90441 invoked by uid 99); 3 Jun 2016 23:28:59 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jun 2016 23:28:59 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 5486C2C1F64 for ; Fri, 3 Jun 2016 23:28:59 +0000 (UTC) Date: Fri, 3 Jun 2016 23:28:59 +0000 (UTC) From: "Chris Nauroth (JIRA)" To: common-dev@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Reopened] (HADOOP-12718) Incorrect error message by fs -put local dir without permission MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 03 Jun 2016 23:29:01 -0000 [ https://issues.apache.org/jira/browse/HADOOP-12718?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Chris Nauroth reopened HADOOP-12718: ------------------------------------ I'm going to reopen the issue now and attach a patch to do the revert. This is just the outcome of running {{git revert --no-commit 97056c3355810a803f07baca89b89e2bf6bb7201}}. It has been a while since this patch was committed though, so I'd like to take the revert through pre-commit as a precaution. I'm also going to temporarily raise this to blocker for 2.8.0, just so we don't forget to complete the revert before that release. > Incorrect error message by fs -put local dir without permission > --------------------------------------------------------------- > > Key: HADOOP-12718 > URL: https://issues.apache.org/jira/browse/HADOOP-12718 > Project: Hadoop Common > Issue Type: Bug > Reporter: John Zhuge > Assignee: John Zhuge > Priority: Minor > Labels: supportability > Fix For: 2.8.0 > > Attachments: HADOOP-12718.001.patch, HADOOP-12718.002.patch, HADOOP-12718.003.patch, HADOOP-12718.004.patch, TestFsShellCopyPermission-output.001.txt, TestFsShellCopyPermission-output.002.txt, TestFsShellCopyPermission.001.patch > > > When the user doesn't have access permission to the local directory, the "hadoop fs -put" command prints a confusing error message "No such file or directory". > {noformat} > $ whoami > systest > $ cd /home/systest > $ ls -ld . > drwx------. 4 systest systest 4096 Jan 13 14:21 . > $ mkdir d1 > $ sudo -u hdfs hadoop fs -put d1 /tmp > put: `d1': No such file or directory > {noformat} > It will be more informative if the message is: > {noformat} > put: d1 (Permission denied) > {noformat} > If the source is a local file, the error message is ok: > {noformat} > put: f1 (Permission denied) > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: common-dev-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-dev-help@hadoop.apache.org