ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Zhang <zjf...@gmail.com>
Subject Re: Change on configuration file cause weird exception
Date Sat, 09 Jan 2016 00:37:42 GMT
Might be repo issue, call /usr/bin/yum install 'spark_2_3_*' directly, but
still get this message:
Error: Nothing to do

On Fri, Jan 8, 2016 at 11:05 PM, Sumit Mohanty <smohanty@hortonworks.com>
wrote:

> The error is due to this call
> /usr/bin/yum -d 0 -e 0 -y install 'spark_2_3_*'
>
> It could be that the repo is unavailable or the repo file
> (/etc/yum.repos.d/HDP.repo) is not correct.
>
> You can debug this by calling
>
> /usr/bin/yum install 'spark_2_3_*' directly and if that works Ambari
> install will also not run into problem.
> ________________________________________
> From: Jeff Zhang <zjffdu@gmail.com>
> Sent: Friday, January 08, 2016 5:28 AM
> To: dev@ambari.apache.org
> Subject: Change on configuration file cause weird exception
>
> I make some changes on configuration files of spark in HDP 2.4, but get
> weird exception, I don't know how it related with my change. I don't change
> any file in the log. Anyone could help ? Thanks
>
> Traceback (most recent call last):
>   File
> "/var/lib/ambari-agent/cache/common-services/SPARK/1.2.0.2.2/package/scripts/spark_client.py",
> line 59, in <module>
>     SparkClient().execute()
>   File
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
> line 219, in execute
>     method(env)
>   File
> "/var/lib/ambari-agent/cache/common-services/SPARK/1.2.0.2.2/package/scripts/spark_client.py",
> line 34, in install
>     self.install_packages(env)
>   File
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
> line 404, in install_packages
>     Package(name)
>   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/package/__init__.py",
> line 49, in action_install
>     self.install_package(package_name, self.resource.use_repos,
> self.resource.skip_repos)
>   File
> "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/yumrpm.py",
> line 49, in install_package
>     shell.checked_call(cmd, sudo=True, logoutput=self.get_logoutput())
>   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 '/usr/bin/yum
> -d 0 -e 0 -y install 'spark_2_3_*'' returned 1. Error: Nothing to do
>
>
> --
> Best Regards
>
> Jeff Zhang
>



-- 
Best Regards

Jeff Zhang

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message