Stasdwriter related changes using StastClient.java example from statsd repo as old code was giving error mentioned below: 

...data in file, it is giving below error. For fixing used code from Stastd examples: https://github.com/etsy/statsd/blob/master/examples/StatsdClient.java and not it is working fine

[ServerScheduler_Worker-10] 2340352 ERROR (com.googlecode.jmxtrans.jobs.ServerJob:39) - Error
java.net.BindException: Address already in use
at java.net.PlainDatagramSocketImpl.bind0(Native Method)
at java.net.AbstractPlainDatagramSocketImpl.bind(AbstractPlainDatagramSocketImpl.java:95)
at java.net.DatagramSocket.bind(DatagramSocket.java:376)
at java.net.DatagramSocket.<init>(DatagramSocket.java:231)
at com.googlecode.jmxtrans.util.DatagramSocketFactory.makeObject(DatagramSocketFactory.java:27)
at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1212)
at com.googlecode.jmxtrans.model.output.StatsDWriter.doWrite(StatsDWriter.java:113)
at com.googlecode.jmxtrans.util.JmxUtils.runOutputWritersForQuery(JmxUtils.java:336)
at com.googlecode.jmxtrans.util.JmxUtils.processQuery(JmxUtils.java:206)
at com.googlecode.jmxtrans.util.JmxUtils.processQueriesForServer(JmxUtils.java:120)
at com.googlecode.jmxtrans.util.JmxUtils.processServer(JmxUtils.java:456)
at com.googlecode.jmxtrans.jobs.ServerJob.execute(ServerJob.java:37)
at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)