You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Walter Su (JIRA)" <ji...@apache.org> on 2015/05/12 09:05:00 UTC
[jira] [Updated] (HDFS-8364) Erasure coding: fix some minor bugs in
EC CLI
[ https://issues.apache.org/jira/browse/HDFS-8364?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Walter Su updated HDFS-8364:
----------------------------
Description:
issue 1: it's not user-friendly. We should tell user that `hdfs erasurecode` is the entrance to EC commands(HDFS-7349)
{noformat}
# bin/hdfs
Usage: hdfs [--config confdir] [--daemon (start|stop|status)]
[--loglevel loglevel] COMMAND
where COMMAND is one of:
balancer run a cluster balancing utility
cacheadmin configure the HDFS cache
crypto configure HDFS encryption zones
...
zkfc run the ZK Failover Controller daemon
{noformat}
issue 2: it's not user-friendly
{noformat}
# bin/hdfs erasurecode -getZoneInfo /
-getZoneInfo: Fatal internal error
java.lang.NullPointerException
at org.apache.hadoop.hdfs.tools.erasurecode.ECCommand$GetECZoneInfoCommand.processPath(ECCommand.java:168)
at org.apache.hadoop.fs.shell.Command.processPaths(Command.java:321)
at org.apache.hadoop.fs.shell.Command.processPathArgument(Command.java:293)
at org.apache.hadoop.fs.shell.Command.processArgument(Command.java:275)
at org.apache.hadoop.fs.shell.Command.processArguments(Command.java:259)
at org.apache.hadoop.fs.shell.Command.processRawArguments(Command.java:205)
at org.apache.hadoop.fs.shell.Command.run(Command.java:166)
at org.apache.hadoop.fs.FsShell.run(FsShell.java:291)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
at org.apache.hadoop.hdfs.tools.erasurecode.ECCli.main(ECCli.java:45)
{noformat}
possible issue 3: We create zone twice at /
{noformat}
# bin/hdfs erasurecode -createZone /
EC Zone created successfully at hdfs://ds-34:9000/
# bin/hdfs erasurecode -createZone /
createZone: Unable to create EC zone for the path hdfs://ds-34:9000/
{noformat}
It doesn't print detail error message.
was:
issue 1: it's not user-friendly. We should tell user that `hdfs erasurecode` is the entrance to EC commands(HDFS-7349)
{noformat}
# bin/hdfs
Usage: hdfs [--config confdir] [--daemon (start|stop|status)]
[--loglevel loglevel] COMMAND
where COMMAND is one of:
balancer run a cluster balancing utility
cacheadmin configure the HDFS cache
crypto configure HDFS encryption zones
...
zkfc run the ZK Failover Controller daemon
{noformat}
issue 2: it's not user-friendly
{noformat}
# bin/hdfs erasurecode -getZoneInfo /
-getZoneInfo: Fatal internal error
java.lang.NullPointerException
at org.apache.hadoop.hdfs.tools.erasurecode.ECCommand$GetECZoneInfoCommand.processPath(ECCommand.java:168)
at org.apache.hadoop.fs.shell.Command.processPaths(Command.java:321)
at org.apache.hadoop.fs.shell.Command.processPathArgument(Command.java:293)
at org.apache.hadoop.fs.shell.Command.processArgument(Command.java:275)
at org.apache.hadoop.fs.shell.Command.processArguments(Command.java:259)
at org.apache.hadoop.fs.shell.Command.processRawArguments(Command.java:205)
at org.apache.hadoop.fs.shell.Command.run(Command.java:166)
at org.apache.hadoop.fs.FsShell.run(FsShell.java:291)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
at org.apache.hadoop.hdfs.tools.erasurecode.ECCli.main(ECCli.java:45)
{noformat}
possible issue 3:
{noformat}
# bin/hdfs erasurecode -createZone /
createZone: Unable to create EC zone for the path hdfs://datasight-187:9000/
{noformat}
But we can create / zone by API.
> Erasure coding: fix some minor bugs in EC CLI
> ---------------------------------------------
>
> Key: HDFS-8364
> URL: https://issues.apache.org/jira/browse/HDFS-8364
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Reporter: Walter Su
> Assignee: Walter Su
> Priority: Minor
>
> issue 1: it's not user-friendly. We should tell user that `hdfs erasurecode` is the entrance to EC commands(HDFS-7349)
> {noformat}
> # bin/hdfs
> Usage: hdfs [--config confdir] [--daemon (start|stop|status)]
> [--loglevel loglevel] COMMAND
> where COMMAND is one of:
> balancer run a cluster balancing utility
> cacheadmin configure the HDFS cache
> crypto configure HDFS encryption zones
> ...
> zkfc run the ZK Failover Controller daemon
> {noformat}
> issue 2: it's not user-friendly
> {noformat}
> # bin/hdfs erasurecode -getZoneInfo /
> -getZoneInfo: Fatal internal error
> java.lang.NullPointerException
> at org.apache.hadoop.hdfs.tools.erasurecode.ECCommand$GetECZoneInfoCommand.processPath(ECCommand.java:168)
> at org.apache.hadoop.fs.shell.Command.processPaths(Command.java:321)
> at org.apache.hadoop.fs.shell.Command.processPathArgument(Command.java:293)
> at org.apache.hadoop.fs.shell.Command.processArgument(Command.java:275)
> at org.apache.hadoop.fs.shell.Command.processArguments(Command.java:259)
> at org.apache.hadoop.fs.shell.Command.processRawArguments(Command.java:205)
> at org.apache.hadoop.fs.shell.Command.run(Command.java:166)
> at org.apache.hadoop.fs.FsShell.run(FsShell.java:291)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
> at org.apache.hadoop.hdfs.tools.erasurecode.ECCli.main(ECCli.java:45)
> {noformat}
> possible issue 3: We create zone twice at /
> {noformat}
> # bin/hdfs erasurecode -createZone /
> EC Zone created successfully at hdfs://ds-34:9000/
> # bin/hdfs erasurecode -createZone /
> createZone: Unable to create EC zone for the path hdfs://ds-34:9000/
> {noformat}
> It doesn't print detail error message.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)