FALCON-824 Remove usage of Hadoop incompatible API. Contributed by Shwetha G S