Use java instead of hadoop to run components.