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 B5677200D51 for ; Fri, 8 Dec 2017 04:07:16 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id B3E83160C1E; Fri, 8 Dec 2017 03:07:16 +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 05B9F160C0C for ; Fri, 8 Dec 2017 04:07:15 +0100 (CET) Received: (qmail 15101 invoked by uid 500); 8 Dec 2017 03:07:00 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 14754 invoked by uid 99); 8 Dec 2017 03:06:47 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 08 Dec 2017 03:06:47 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 14D9EC81BC for ; Fri, 8 Dec 2017 03:06:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.211 X-Spam-Level: X-Spam-Status: No, score=-99.211 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id uEwlF_qMpG_N for ; Fri, 8 Dec 2017 03:06:45 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id 83A43629BD for ; Fri, 8 Dec 2017 01:11:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id B97D1E101B for ; Fri, 8 Dec 2017 01:11:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 2E66B21E82 for ; Fri, 8 Dec 2017 01:11:00 +0000 (UTC) Date: Fri, 8 Dec 2017 01:11:00 +0000 (UTC) From: "Rushabh S Shah (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (HDFS-12907) Allow read-only access to reserved raw for non-superusers MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 08 Dec 2017 03:07:16 -0000 [ https://issues.apache.org/jira/browse/HDFS-12907?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16282860#comment-16282860 ] Rushabh S Shah edited comment on HDFS-12907 at 12/8/17 1:10 AM: ---------------------------------------------------------------- Following are the tests that failed. {noformat} TestUnbuffer TestJournalNodeSync TestDataNodeVolumeFailureReporting TestNameNodeXAttr TestWebHDFSXAttr TestFileContextXAttr {noformat} Last 3 tests {{TestNameNodeXAttr,TestWebHDFSXAttr,TestFileContextXAttr}} are failed by my patch. Remaining are just flaky tests. {{TestUnbuffer}} -- Tracked by HADOOP-15056. This jira is almost closed to being resolved. Remaining 2 tests passed locally. {noformat} [INFO] Running org.apache.hadoop.hdfs.qjournal.server.TestJournalNodeSync [INFO] Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 52.376 s - in org.apache.hadoop.hdfs.qjournal.server.TestJournalNodeSync [INFO] Running org.apache.hadoop.hdfs.server.datanode.TestDataNodeVolumeFailureReporting [INFO] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 86.746 s - in org.apache.hadoop.hdfs.server.datanode.TestDataNodeVolumeFailureReporting {noformat} Will attach a new patch soon which fixes the 3 test failures. Regarding the findbugs warning, it is not related to my patch. was (Author: shahrs87): Following are the tests that failed. {noformat} TestUnbuffer TestJournalNodeSync TestDataNodeVolumeFailureReporting TestNameNodeXAttr TestWebHDFSXAttr TestFileContextXAttr {noformat} Last 3 tests {{TestNameNodeXAttr,TestWebHDFSXAttr,TestFileContextXAttr}} are failed by my patch. Remaining are just flaky tests. {{TestUnbuffer}} -- Tracked by HADOOP-15056. This jira is almost closed to being resolved. Remaining 2 tests passed locally. {noformat} [INFO] Running org.apache.hadoop.hdfs.qjournal.server.TestJournalNodeSync [INFO] Tests run: 10, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 52.376 s - in org.apache.hadoop.hdfs.qjournal.server.TestJournalNodeSync [INFO] Running org.apache.hadoop.hdfs.server.datanode.TestDataNodeVolumeFailureReporting [INFO] Tests run: 7, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 86.746 s - in org.apache.hadoop.hdfs.server.datanode.TestDataNodeVolumeFailureReporting {noformat} Will attach a new patch soon which fixes the 3 test failures. > Allow read-only access to reserved raw for non-superusers > --------------------------------------------------------- > > Key: HDFS-12907 > URL: https://issues.apache.org/jira/browse/HDFS-12907 > Project: Hadoop HDFS > Issue Type: Bug > Components: namenode > Affects Versions: 2.6.0 > Reporter: Daryn Sharp > Assignee: Rushabh S Shah > Attachments: HDFS-12907.001.patch, HDFS-12907.patch > > > HDFS-6509 added a special /.reserved/raw path prefix to access the raw file contents of EZ files. In the simplest sense it doesn't return the FE info in the {{LocatedBlocks}} so the dfs client doesn't try to decrypt the data. This facilitates allowing tools like distcp to copy raw bytes. > Access to the raw hierarchy is restricted to superusers. This seems like an overly broad restriction designed to prevent non-admins from munging the EZ related xattrs. I believe we should relax the restriction to allow non-admins to perform read-only operations. Allowing non-superusers to easily read the raw bytes will be extremely useful for regular users, esp. for enabling webhdfs client-side encryption. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org