Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
I tried executing the "ozone freon cr" command but am getting the "Invalid command" error even though the command is correct and it executes successfully.
Repro step:
- Execute the "ozone freon cr" command.
Log:
# ozone freon cr --duration=20s -f -n 100 -t 20 24/09/05 20:51:47 INFO impl.MetricsConfig: Loaded properties from hadoop-metrics2.properties 24/09/05 20:51:47 INFO impl.MetricsSystemImpl: Scheduled Metric snapshot period at 30 second(s). 24/09/05 20:51:47 INFO impl.MetricsSystemImpl: ozone-freon metrics system started 24/09/05 20:51:48 INFO fs.SaveSpaceUsageToFile: Cached usage info file /tmp/hadoop-root/dfs/data/scmUsed not found 24/09/05 20:51:48 INFO volume.HddsVolume: Creating HddsVolume: /tmp/hadoop-root/dfs/data/hdds of storage type : DISK capacity : 3695320843008 24/09/05 20:51:48 INFO volume.MutableVolumeSet: Added Volume : /tmp/hadoop-root/dfs/data/hdds to VolumeSet 24/09/05 20:51:48 INFO replication.ReplicationSupervisor: Initializing replication supervisor with thread count = 10 Invalid command, the testNo must be a positive integer # du -sh /tmp/hadoop-root/dfs/data/hdds 4.0K /tmp/hadoop-root/dfs/data/hdds # ozone freon cr -h 24/09/05 20:47:55 INFO impl.MetricsConfig: Loaded properties from hadoop-metrics2.properties 24/09/05 20:47:55 INFO impl.MetricsSystemImpl: Scheduled Metric snapshot period at 30 second(s). 24/09/05 20:47:55 INFO impl.MetricsSystemImpl: ozone-freon metrics system started Usage: ozone freon cr [-fhV] [--verbose] [--datanode=<datanode>] [--duration=<duration>] [-n=<testNo>] [-p=<prefix>] [-t=<threadNo>] Replicate / download closed containers. --datanode=<datanode> Replicate only containers on this specific datanode. Default: --duration=<duration> Duration to run the test. Can be '30s', '5m', '1h', '7d' etc.. -f, --fail-at-end If turned on, all the tasks will be executed even if there are failures. -h, --help Show this help message and exit. -n, --number-of-tests=<testNo> Number of the generated objects. Default: 1000 -p, --prefix=<prefix> Unique identifier of the test execution. Usually used as a prefix of the generated object names. If empty, a random name will be generated Default: -t, --thread, --threads=<threadNo> Number of threads used to execute Default: 10 -V, --version Print version information and exit. --verbose More verbose output. Show all the command line Option info.