ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sumit Mohanty (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-14059) AMS config properties may get used before trailing m (unit) is stripped
Date Wed, 25 Nov 2015 19:09:11 GMT

     [ https://issues.apache.org/jira/browse/AMBARI-14059?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sumit Mohanty updated AMBARI-14059:
-----------------------------------
    Assignee: Aravindan Vijayan  (was: Sumit Mohanty)

> AMS config properties may get used before trailing m (unit) is stripped
> -----------------------------------------------------------------------
>
>                 Key: AMBARI-14059
>                 URL: https://issues.apache.org/jira/browse/AMBARI-14059
>             Project: Ambari
>          Issue Type: Bug
>          Components: stacks
>    Affects Versions: 2.1.3
>            Reporter: Sumit Mohanty
>            Assignee: Aravindan Vijayan
>             Fix For: 2.1.3
>
>         Attachments: AMBARI-14059.patch
>
>
> regionserver_heapsize may still get used before trailing m is tripped.
> {code}
> Traceback (most recent call last):
>   File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_monitor.py",
line 58, in <module>
>     AmsMonitor().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/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_monitor.py",
line 29, in install
>     self.configure(env) # for security
>   File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_monitor.py",
line 32, in configure
>     import params
>   File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/params.py",
line 104, in <module>
>     regionserver_xmn_size = calc_xmn_from_xms(regionserver_heapsize, regionserver_xmn_percent,
regionserver_xmn_max)
>   File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/functions.py",
line 34, in calc_xmn_from_xms
>     xmn_val = int(math.floor(heapsize*xmn_percent))
> TypeError: can't multiply sequence by non-int of type 'float'
> Traceback (most recent call last):
>   File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_monitor.py",
line 58, in <module>
>     AmsMonitor().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/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_monitor.py",
line 29, in install
>     self.configure(env) # for security
>   File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_monitor.py",
line 32, in configure
>     import params
>   File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/params.py",
line 104, in <module>
>     regionserver_xmn_size = calc_xmn_from_xms(regionserver_heapsize, regionserver_xmn_percent,
regionserver_xmn_max)
>   File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/functions.py",
line 34, in calc_xmn_from_xms
>     xmn_val = int(math.floor(heapsize*xmn_percent))
> TypeError: can't multiply sequence by non-int of type 'float'
> Traceback (most recent call last):
>   File "/var/lib/ambari-agent/cache/common-services/AMBARI_METRICS/0.1.0/package/scripts/metrics_monitor.py",
line 58, in <module>
>     AmsMonitor().execute()
>   File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
line 218, in execute
> {code}



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

Mime
View raw message