[
https://issues.apache.org/jira/browse/AMBARI-14704?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aravindan Vijayan updated AMBARI-14704:
---------------------------------------
Attachment: AMBARI-14704.patch
> Restart storm fails with a metrics storm sink jar related error sometimes
> -------------------------------------------------------------------------
>
> Key: AMBARI-14704
> URL: https://issues.apache.org/jira/browse/AMBARI-14704
> Project: Ambari
> Issue Type: Bug
> Affects Versions: 2.2.0
> Reporter: Aravindan Vijayan
> Assignee: Aravindan Vijayan
> Fix For: 2.2.1
>
> Attachments: AMBARI-14704.patch
>
>
> Error trace
> {code}
> Traceback (most recent call last):
> File
> "/var/lib/ambari-agent/cache/common-services/STORM/0.9.1.2.1/package/scripts/drpc_server.py",
> line 130, in <module>
> DrpcServer().execute()
> File
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
> line 219, in execute
> method(env)
> File
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
> line 524, in restart
> self.start(env, upgrade_type=upgrade_type)
> File
> "/var/lib/ambari-agent/cache/common-services/STORM/0.9.1.2.1/package/scripts/drpc_server.py",
> line 62, in start
> self.configure(env)
> File
> "/var/lib/ambari-agent/cache/common-services/STORM/0.9.1.2.1/package/scripts/drpc_server.py",
> line 49, in configure
> storm()
> File "/usr/lib/python2.6/site-packages/ambari_commons/os_family_impl.py",
> line 89, in thunk
> return fn(*args, **kwargs)
> File
> "/var/lib/ambari-agent/cache/common-services/STORM/0.9.1.2.1/package/scripts/storm.py",
> line 105, in storm
> only_if=format("ls {metric_collector_sink_jar}")
> File "/usr/lib/python2.6/site-packages/resource_management/core/base.py",
> line 154, in __init__
> self.env.run()
> File
> "/usr/lib/python2.6/site-packages/resource_management/core/environment.py",
> line 158, in run
> self.run_action(resource, action)
> File
> "/usr/lib/python2.6/site-packages/resource_management/core/environment.py",
> line 121, in run_action
> provider_action()
> File
> "/usr/lib/python2.6/site-packages/resource_management/core/providers/system.py",
> line 238, in action_run
> tries=self.resource.tries, try_sleep=self.resource.try_sleep)
> File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py",
> line 70, in inner
> result = function(command, **kwargs)
> File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py",
> line 92, in checked_call
> tries=tries, try_sleep=try_sleep)
> File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py",
> line 140, in _call_wrapper
> result = _call(command, **kwargs_copy)
> File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py",
> line 291, in _call
> raise Fail(err_msg)
> resource_management.core.exceptions.Fail: Execution of 'ambari-sudo.sh ln -s
> /usr/lib/storm/lib/ambari-metrics-storm-sink*.jar
> /usr/hdp/current/storm-client/lib/ambari-metrics-storm-sink.jar' returned 1.
> ln: failed to create symbolic link
> '/usr/hdp/current/storm-client/lib/ambari-metrics-storm-sink.jar': File exists
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)