Moving hadoop folder to java