add standby namenode support

if the 'standby_namenode' directive has been set,
the plugin will automatically switch to use standby namenode under any
of the following scenes:
- Try to write the data to HDFS but got an 'org.apache.hadoop.ipc.StandbyException' exception
- HDFS-write failed >= 8 times
- HDFS-write failed more than half of the 'retry_limit' setting