Purpose
The command runs service checks and performance tests on the cluster.
Syntax
hcli [--option] test | [flume [--options] SIZE] | [test ingest [--options]] [ smoke [--service] | terasort size[K |M |G |T] | testdfsio size[K |M |G |T]]Parameters
- hcli test flume [--options] size[K |M |G |T ]
- Run flume test with multiple file sizes.
- K - kilobytes
- M - megabytes
- G - gigabytes
- T - terabytes
Exit code is 0 if the test completed successfully; exit code is 1 if the test failed.Option Description --hdfs Dump flume records to HDFS --checkpoint arg Checkpoint after every arg record --timeout arg Fail if test takes longer than arg seconds --batchsize arg Use flume batch size of arg records - hcli test ingest [--options]
- Perform a parallel load or unload test of dummy data into Hadoop for the specified time. Exit code is 0 if the test completed successfully; exit code is 1 if the test failed.
Option Description --block-size= size Buffer block size for loan/unload threads --file-size= size Bytes to write in each file before rolling over to a new file --time= secs | -t secs Number of seconds to measure load/unload performance --ramp= secs | -r secs Number of seconds to start load/unload before starting measurement --dfs-block-size= size Override DFS block size (must be a factor of 2) --threads= N Use the specified number of threads - hcli test smoke [service]
- Run basic service checks for Ambari. Results are output as they occur and as a table of service check results.
- No service listed. Run service checks for all installed services.
- NAMENODE RESOURCEMANAGER Run service checks only for the Namenode and Resource Manager services.
- hcli test terasort size[K |M |G |T]
- Run the Hadoop Teragen, Terasort, and Teravalidate of specified size
- K - kilobytes
- M - megabytes
- G - gigabytes
- T - terabytes
- hcli test testdfsio size[K |M |G |T]
- Run Hadoop DFSIO test with multiple file sizes.
- K - kilobytes
- M - megabytes
- G - gigabytes
- T - terabytes
Exit code is 0 if the test completed successfully; exit code is 1 if the test failed.