In functions blockReport,cacheReport,offerService there are multiple msec need to be modified to msecs.
Such as the following logs:
2017-06-22 11:38:25,399 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: Unsuccessfully sent block report 0x8c26a112d6d4, containing 3 storage report(s), of which we sent 0. The reports had 19906571 total blocks and used 0 RPC(s). This took 3071 msec to generate and 781 msecs for RPC and NN processing. Got back no commands