Package com.google.cloud.hadoop.fs.gcs
Class FsBenchmark
java.lang.Object
org.apache.hadoop.conf.Configured
com.google.cloud.hadoop.fs.gcs.FsBenchmark
- All Implemented Interfaces:
org.apache.hadoop.conf.Configurable,org.apache.hadoop.util.Tool
public class FsBenchmark
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
File system operations benchmark tool.
Usage:
hadoop jar /usr/lib/hadoop/lib/gcs-connector.jar com.google.cloud.hadoop.fs.gcs.FsBenchmark \
{read,random-read,write} --file=gs://<bucket_name> [--no-warmup] [--verbose]
for write benchmark, the --file parameter takes a GCS directory location where temp files will be
created. Please clean up the dir after the test-
Method Summary
Methods inherited from class org.apache.hadoop.conf.Configured
getConf, setConfMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hadoop.conf.Configurable
getConf, setConf
-
Method Details
-
main
- Throws:
Exception
-
run
- Specified by:
runin interfaceorg.apache.hadoop.util.Tool- Throws:
IOException
-