[
https://issues.apache.org/jira/browse/HBASE-11032?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ted Yu updated HBASE-11032:
---------------------------
Hadoop Flags: Reviewed
Integrated to trunk.
Thanks for the patch, Gustavo.
> Replace deprecated methods in FileSystem with their replacements
> ----------------------------------------------------------------
>
> Key: HBASE-11032
> URL: https://issues.apache.org/jira/browse/HBASE-11032
> Project: HBase
> Issue Type: Task
> Reporter: Ted Yu
> Assignee: Gustavo Anatoly
> Priority: Minor
> Fix For: 0.99.0
>
> Attachments: HBASE-11032-v1.patch, HBASE-11032.patch
>
>
> FileStatus#isDir() is deprecated.
> FileStatus#isDirectory() should be called instead.
> Here is the list of deprecated methods in FileSystem :
> {code}
> public String getName()
> public static FileSystem getNamed(String name, Configuration conf)
> public FSDataOutputStream createNonRecursive(Path f,
> boolean overwrite,
> int bufferSize, short replication, long blockSize,
> Progressable progress) throws IOException {
> public FSDataOutputStream createNonRecursive(Path f, FsPermission
> permission,
> boolean overwrite, int bufferSize, short replication, long blockSize,
> Progressable progress) throws IOException {
> public short getReplication(Path src) throws IOException {
> public boolean delete(Path f) throws IOException {
> public long getLength(Path f) throws IOException {
> public long getBlockSize(Path f) throws IOException {
> public long getDefaultBlockSize() {
> public short getDefaultReplication()
> {code}
> Except for createNonRecursive() which doesn't have non-deprecated equivalent
> in DistributedFileSystem, deprecated methods are replaced with their
> non-deprecated counterparts.
--
This message was sent by Atlassian JIRA
(v6.2#6252)