org.apache.hadoop.hive.ql.hooks
Class VerifyNumReducersHook

java.lang.Object
  extended by org.apache.hadoop.hive.ql.hooks.VerifyNumReducersHook
All Implemented Interfaces:
ExecuteWithHookContext, Hook

public class VerifyNumReducersHook
extends Object
implements ExecuteWithHookContext

VerifyNumReducersHook. Provided a query involves exactly 1 map reduce job, this hook can be used to verify that the number of reducers matches what is expected. Use the config VerifyNumReducersHook.num.reducers to specify the expected number of reducers.


Field Summary
static String BUCKET_CONFIG
           
 
Constructor Summary
VerifyNumReducersHook()
           
 
Method Summary
 void run(HookContext hookContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUCKET_CONFIG

public static final String BUCKET_CONFIG
See Also:
Constant Field Values
Constructor Detail

VerifyNumReducersHook

public VerifyNumReducersHook()
Method Detail

run

public void run(HookContext hookContext)
Specified by:
run in interface ExecuteWithHookContext
Parameters:
hookContext - The hook context passed to each hooks.


Copyright © 2012 The Apache Software Foundation