fix @interskh reported millisecond bug, add hadoop client version configuration requested by @wouterdebie, and unit test the code with the millisecond bug