You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ambari.apache.org by Arun Patel <ar...@gmail.com> on 2015/09/07 15:04:09 UTC

Ambari python error - object 'Script' has no attribute 'config'

>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