[ 
https://issues.apache.org/jira/browse/HDDS-12632?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sammi Chen updated HDDS-12632:
------------------------------
    Description: 
Support BlockLocation.topologyPaths for 
FileStatus/LocatedFileStatus/BlockLocation returned by Ozone FileSystem.

 

Example Usage:

 
{code:java}
FileStatus file = fs.getFileStatus(new Path("ofs://<path>"));
BlockLocation[] blockLocations = ((LocatedFileStatus) file).getBlockLocations();
String[] topologyPaths = blockLocations[0].getTopologyPaths();
{code}
 

  was:Support BlockLocation.topologyPaths for 
FileStatus/LocatedFileStatus/BlockLocation returned by Ozone FileSystem. 


> Support BlockLocation.topologyPaths for 
> FileStatus/LocatedFileStatus/BlockLocation 
> -----------------------------------------------------------------------------------
>
>                 Key: HDDS-12632
>                 URL: https://issues.apache.org/jira/browse/HDDS-12632
>             Project: Apache Ozone
>          Issue Type: Improvement
>            Reporter: Sammi Chen
>            Assignee: Chu Cheng Li
>            Priority: Major
>
> Support BlockLocation.topologyPaths for 
> FileStatus/LocatedFileStatus/BlockLocation returned by Ozone FileSystem.
>  
> Example Usage:
>  
> {code:java}
> FileStatus file = fs.getFileStatus(new Path("ofs://<path>"));
> BlockLocation[] blockLocations = ((LocatedFileStatus) 
> file).getBlockLocations();
> String[] topologyPaths = blockLocations[0].getTopologyPaths();
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to