hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Milan Desai (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-7057) Expose truncate API via FileSystem and shell command
Date Thu, 15 Jan 2015 02:04:36 GMT

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

Milan Desai updated HDFS-7057:
    Attachment: HDFS-7057.patch

Attaching a patch that exposes truncate to FileSystem and adds a shell command. The following
FileSystem implementations support truncate: DistributedFileSystem, RawLocalFileSystem, and
FilterFileSystem. HttpFSFileSystem and WebHdfsFileSystem have TODO comments for their implementation.

The shell command usage for truncate is "truncate [-w] <length> <path> ..." where
the -w option requests the command to wait for block recovery, if necessary. I tested the
shell command on a standalone cluster.

> Expose truncate API via FileSystem and shell command
> ----------------------------------------------------
>                 Key: HDFS-7057
>                 URL: https://issues.apache.org/jira/browse/HDFS-7057
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: hdfs-client
>    Affects Versions: 3.0.0
>            Reporter: Konstantin Shvachko
>            Assignee: Milan Desai
>         Attachments: HDFS-7057.patch
> Add truncate operation to FileSystem and expose it to users via shell command.

This message was sent by Atlassian JIRA

View raw message