ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arun Patel <arunp.bigd...@gmail.com>
Subject Ambari python error - object 'Script' has no attribute 'config'
Date Mon, 07 Sep 2015 13:04:09 GMT
>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

Mime
View raw message