fix sparkreporter issue.
fix guava version.
revert guava version
set spark client mode
refactor code.