So, i added the udf jar to our Dev cluster which has hadoop 2.4.0.2.1 and it works well there.
It does not still work on the Sandbox which has hadoop 2.6.0.2.2. I have made sure that I used the Hadoop and Hive jar files from the Sandbox.
Any input is appreciated. Thanks.