[ 
https://issues.apache.org/jira/browse/AMBARI-14662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15098218#comment-15098218
 ] 

Sumit Mohanty commented on AMBARI-14662:
----------------------------------------

Not sure at this point. Ambari knows versions based on the stack definition and 
there is no mechanism (especially during cluster install/Add Host/Add Service) 
to know the version as advertised by rpm/deb packages. We need to find out 
what's the best way to get the information and then how it can be handed to the 
scripts. During RU/EU, its possible as install packages is performed prior to 
RU/EU. But for fresh service installs (or outside the context of RU/EU) install 
is performed along side configure/start. The mechanism to "install, read 
version, hand it for configure/start" does not exist yet.

So for now, if {{stack_verison}} serves your need then go ahead and use it.

> Unable to find current_version while trying to install BigInsights add-on 
> services like BigSheets, BigSQL through Blueprint
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-14662
>                 URL: https://issues.apache.org/jira/browse/AMBARI-14662
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-agent, ambari-server
>    Affects Versions: 2.1.0
>            Reporter: raju patel
>            Priority: Blocker
>
> While trying to install BigInsights 4.1 value add-on services i.e BigSheets 
> and BigSql through ambari blueprint, it throws below error:
> odp_current_version = str(config['hostLevelParams']['current_version'])
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/config_dictionary.py",
>  line 81, in __getattr__
>     raise Fail("Configuration parameter '" + self.name + "' was not found in 
> configurations dictionary!")
> resource_management.core.exceptions.Fail: Configuration parameter 
> 'current_version' was not found in configurations dictionary!
> Traceback (most recent call last):
>   File 
> "/var/lib/ambari-agent/cache/stacks/BigInsights/4.1/services/BIGSHEETS/package/scripts/master.py",
>  line 688, in <module>
>     Master().execute()
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
>  line 218, in execute
>     method(env)
>   File 
> "/var/lib/ambari-agent/cache/stacks/BigInsights/4.1/services/BIGSHEETS/package/scripts/master.py",
>  line 172, in install
>     import params
>   File 
> "/var/lib/ambari-agent/cache/stacks/BigInsights/4.1/services/BIGSHEETS/package/scripts/params.py",
>  line 29, in <module>
>     odp_current_version           = 
> str(config['hostLevelParams']['current_version'])
>   File 
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/config_dictionary.py",
>  line 81, in __getattr__
>     raise Fail("Configuration parameter '" + self.name + "' was not found in 
> configurations dictionary!")
> resource_management.core.exceptions.Fail: Configuration parameter 
> 'current_version' was not found in configurations dictionary!



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to