>From the code repository of Ambari,

https://github.com/apache/ambari/blob/087d9003ecf6af33890e4f48743d7237a30d6438/ambari-server/src/main/resources/stacks/HDP/2.1.GlusterFS/services/TEZ/package/scripts/params.py

I am trying below commands, but I am getting error

from resource_management import *

# server configurations
config = Script.get_config()

AttributeError: type object 'Script' has no attribute 'config'

Any idea how to resolve this error?

There are many similar examples in the repository. Not sure how to make
this working.

Regards,
Arun

Reply via email to