Class 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