I fixed the issue by adding the bold lines in the corresponding files..
from resource_management.libraries.functions.version import format_hdp_stack_version, compare_versions
<b>from resource_management.libraries import *</b>
from resource_management import *
import status_params
/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/HDFS/package/scripts/params.py
<b>from resource_management.libraries import *</b>
from resource_management import *
/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/YARN/package/scripts/params.py
<b>from resource_management.libraries import *</b>
from resource_management import *
/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/services/PIG/package/scripts/params.py
<b>from resource_management.libraries import *</b>
from resource_management import *
/var/lib/ambari-agent/cache/stacks/HDP/2.1/services/TEZ/package/scripts/params.py
<b>from resource_management.libraries import *</b>
from resource_management import *