Improve Head and Tail command to take count arguments like "3KB"

Description

For alluxio.shell.command.HeadCommand} and {{alluxio.shell.command.TailCommand, they both take -c option for a number of bytes. This JIRA aims to improve the -c option not only be valid when taking an integer, but also string like "4KB".

Suggestion:
One can take advantage from util method of FormatUtils.parseSpaceSize(String)

Environment

None

Activity

Show:
Weizhan Zeng
September 15, 2017, 5:08 AM

In the master branch code , I found it use FormatUtils#parseSpaceSize

So we should close this issure

Your pinned fields
Click on the next to a field label to start pinning.

Assignee

Weizhan Zeng

Reporter

Bin Fan

Labels