Hi @krishna sampath, do you want to read the classpath or add to it?
To get the whole classpath, you just need to run this command:
hadoop classpath
If you want to add to it, you can do so in hadoop-env.sh. If you're using Ambari, you must update it in Ambari in the hadoop-env section of the HDFS configs and not on the filesystem directly, as Ambari will overwrite any changes you make to the config files directly.