@@ -49,7 +49,7 @@ public abstract class AbstractBenchmark<T extends Closeable> {
4949
5050 protected abstract T client (String benchmarkTargetHost ) throws Exception ;
5151
52- protected abstract BulkRequestExecutor bulkRequestExecutor (T client , String indexName , String typeName );
52+ protected abstract BulkRequestExecutor bulkRequestExecutor (T client , String indexName );
5353
5454 protected abstract SearchRequestExecutor searchRequestExecutor (T client , String indexName );
5555
@@ -76,16 +76,15 @@ public final void run(String[] args) throws Exception {
7676
7777 @ SuppressForbidden (reason = "system out is ok for a command line tool" )
7878 private void runBulkIndexBenchmark (String [] args ) throws Exception {
79- if (args .length != 7 ) {
80- System .err .println ("usage: 'bulk' benchmarkTargetHostIp indexFilePath indexName typeName numberOfDocuments bulkSize" );
79+ if (args .length != 6 ) {
80+ System .err .println ("usage: 'bulk' benchmarkTargetHostIp indexFilePath indexName numberOfDocuments bulkSize" );
8181 System .exit (1 );
8282 }
8383 String benchmarkTargetHost = args [1 ];
8484 String indexFilePath = args [2 ];
8585 String indexName = args [3 ];
86- String typeName = args [4 ];
87- int totalDocs = Integer .valueOf (args [5 ]);
88- int bulkSize = Integer .valueOf (args [6 ]);
86+ int totalDocs = Integer .valueOf (args [4 ]);
87+ int bulkSize = Integer .valueOf (args [5 ]);
8988
9089 int totalIterationCount = (int ) Math .floor (totalDocs / bulkSize );
9190 // consider 40% of all iterations as warmup iterations
@@ -97,7 +96,7 @@ private void runBulkIndexBenchmark(String[] args) throws Exception {
9796 BenchmarkRunner benchmark = new BenchmarkRunner (
9897 warmupIterations ,
9998 iterations ,
100- new BulkBenchmarkTask (bulkRequestExecutor (client , indexName , typeName ), indexFilePath , warmupIterations , iterations , bulkSize )
99+ new BulkBenchmarkTask (bulkRequestExecutor (client , indexName ), indexFilePath , warmupIterations , iterations , bulkSize )
101100 );
102101
103102 try {
0 commit comments