use a loop for testing jdk paths

Signed-off-by: Joe Buck <jbbuck@gmail.com>
hadoop: start deprecation by removing from build

Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
Reviewed-by: Joe Buck <jbbuck@gmail.com>