You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Brahma Reddy Battula (JIRA)" <ji...@apache.org> on 2015/07/09 19:17:04 UTC

[jira] [Commented] (HADOOP-12161) Add getStoragePolicy API to the FileSystem interface

    [ https://issues.apache.org/jira/browse/HADOOP-12161?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14620871#comment-14620871 ] 

Brahma Reddy Battula commented on HADOOP-12161:
-----------------------------------------------

[~arpitagarwal] thanks for reporting this jira.. Attached the patch to address the following.Kindly Review.

{quote}
Add a corresponding FileSystem#getStoragePolicy to query the storage policy for a given file/directory.
Add corresponding implementation for HDFS i.e. DistributedFileSystem#getStoragePolicy.
{quote}

As we are planning all the filesystem specifications as part of HADOOP-12177,will raise seperate jira to following.please let me know your opinion..

{quote}
Update the FileSystem specification. This will require editing hadoop-common-project/hadoop-common/src/site/markdown/filesystem/filesystem.md.
{quote}

> Add getStoragePolicy API to the FileSystem interface
> ----------------------------------------------------
>
>                 Key: HADOOP-12161
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12161
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: Arpit Agarwal
>            Assignee: Brahma Reddy Battula
>         Attachments: HADOOP-12161-001.patch
>
>
> HDFS-8345 added {{FileSystem#getAllStoragePolicies}} and {{FileSystem#setStoragePolicy}}. Jira to
> # Add a corresponding {{FileSystem#getStoragePolicy}} to query the storage policy for a given file/directory.
> # Add corresponding implementation for HDFS i.e. {{DistributedFileSystem#getStoragePolicy}}.
> # Update the [FileSystem specification|https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/filesystem/filesystem.html]. This will require editing _hadoop-common-project/hadoop-common/src/site/markdown/filesystem/filesystem.md_.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)