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 5BECD18A9C for ; Tue, 26 Jan 2016 02:09:40 +0000 (UTC) Received: (qmail 66768 invoked by uid 500); 26 Jan 2016 02:09:40 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 66712 invoked by uid 500); 26 Jan 2016 02:09:40 -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 66701 invoked by uid 99); 26 Jan 2016 02:09:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jan 2016 02:09:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id C3CEC2C1F57 for ; Tue, 26 Jan 2016 02:09:39 +0000 (UTC) Date: Tue, 26 Jan 2016 02:09:39 +0000 (UTC) From: "John Zhuge (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-12718) Confusing 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 [ https://issues.apache.org/jira/browse/HADOOP-12718?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] John Zhuge updated HADOOP-12718: -------------------------------- Status: Patch Available (was: In Progress) > Confusing 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 > Attachments: HADOOP-12718.001.patch, TestFsShellCopyPermission-output.001.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)