Hi@akhtar,
I think you didn't set all the environment variable properly. So, first check in apache web site to make sure your Hadoop and Pig versions are compatible.
Then, make sure the following two environment variables are set correctly in .bashrc file and configuration file.
export PIG_CLASSPATH=/hadoop-2.6/etc/hadoop
export HADOOP_HOME=/hadoop-2.6
Hope this will solve your error.