Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-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 36C36183C8 for ; Wed, 12 Aug 2015 15:18:47 +0000 (UTC) Received: (qmail 67523 invoked by uid 500); 12 Aug 2015 15:18:47 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 67468 invoked by uid 500); 12 Aug 2015 15:18:46 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 67453 invoked by uid 99); 12 Aug 2015 15:18:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Aug 2015 15:18:46 +0000 Date: Wed, 12 Aug 2015 15:18:46 +0000 (UTC) From: "Hudson (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-8805) Archival Storage: getStoragePolicy should not need superuser privilege 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/HDFS-8805?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14693655#comment-14693655 ] Hudson commented on HDFS-8805: ------------------------------ FAILURE: Integrated in Hadoop-Hdfs-trunk-Java8 #274 (See [https://builds.apache.org/job/Hadoop-Hdfs-trunk-Java8/274/]) HDFS-8805. Archival Storage: getStoragePolicy should not need superuser privilege. Contributed by Brahma Reddy Battula. (jing9: rev 1fc3c779a422bafdb86ad1a5b2349802dda1cb62) * hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirStatAndListingOp.java * hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt * hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirWriteFileOp.java * hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirAppendOp.java > Archival Storage: getStoragePolicy should not need superuser privilege > ---------------------------------------------------------------------- > > Key: HDFS-8805 > URL: https://issues.apache.org/jira/browse/HDFS-8805 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: balancer & mover, namenode > Reporter: Hui Zheng > Assignee: Brahma Reddy Battula > Fix For: 2.8.0 > > Attachments: HDFS-8805-002.patch, HDFS-8805-003.patch, HDFS-8805-004.patch, HDFS-8805.patch > > > The result of getStoragePolicy command is always 'unspecified' even we has set a StoragePolicy on a directory.But the real placement of blocks is correct. > The result of fsck is not correct either. > {code} > $ hdfs storagepolicies -setStoragePolicy -path /tmp/cold -policy COLD > Set storage policy COLD on /tmp/cold > $ hdfs storagepolicies -getStoragePolicy -path /tmp/cold > The storage policy of /tmp/cold is unspecified > $ hdfs fsck -storagepolicies /tmp/cold > Blocks NOT satisfying the specified storage policy: > Storage Policy Specified Storage Policy # of blocks % of blocks > ARCHIVE:4(COLD) HOT 5 55.5556% > ARCHIVE:3(COLD) HOT 4 44.4444% > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)