update hadoop framework, unit test and example