org.apache.hadoop.hive.ql.hooks
Class VerifyNumReducersHook
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BUCKET_CONFIG
public static final String BUCKET_CONFIG
- See Also:
- Constant Field Values
VerifyNumReducersHook
public VerifyNumReducersHook()
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