We have options:
1. Change build.xml to disable deprecation warnings. BTW, hadoop does not check for deprecation when compiling
2. Using @SuppressWarnings("deprecation") to suppress specific blocks. The problem is we cannot suppress import block, all import warnings still there
3. Using @SuppressWarnings("deprecation") and do not import deprecate class. Use full qualified class name for deprecate class when using it. The downside is patch is relatively lengthy.