Support Questions

Find answers, ask questions, and share your expertise

Failed to install services on all nodes

avatar
Contributor

stderr:

Traceback (most recent call last):

File "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_client.py", line 120, in <module> HdfsClient().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/HDFS/2.1.0.2.0/package/scripts/hdfs_client.py", line 34, in install self.install_packages(env, params.exclude_packages)

File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 376, 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 152, in run self.run_action(resource, action)

File "/usr/lib/python2.6/site-packages/resource_management/core/environment.py", line 118, in run_action provider_action() File "/usr/lib/python2.6/site-packages/resource_management/core/providers/package/__init__.py", line 45, 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 'hadoop_2_3_*'' returned 1. Error: Package:

zookeeper_2_3_6_0_3796-3.4.6.2.3.6.0-3796.el6.noarch

(HDP-2.3) Requires: hdp-select >= 2.3.6.0-3796

Installed: hdp-select-2.3.4.7-4.el6.noarch (@HDP-2.3.4.7)

hdp-select = 2.3.4.7-4.el6

Error: Package: hadoop_2_3_6_0_3796-2.7.1.2.3.6.0-3796.el6.x86_64 (HDP-2.3)

Requires: hdp-select >= 2.3.6.0-3796

Installed: hdp-select-2.3.4.7-4.el6.noarch (@HDP-2.3.4.7)

hdp-select = 2.3.4.7-4.el6

You could try using --skip-broken to work around the problem

You could try running: rpm -Va --nofiles --nodigest

1 ACCEPTED SOLUTION

avatar
Expert Contributor

Ambari 2.1.0.0 is a rather old version.

I'd suggest taking the latest & greatest: Ambari 2.4.3 & HDP 2.5.3.

You can find the Ambari install instructions here: http://docs.hortonworks.com/HDPDocuments/Ambari/Ambari-2.4.2.0/index.html

View solution in original post

16 REPLIES 16

avatar
Expert Contributor

On every node with ambari-agent installed: yum uninstall ambari-agent

On ambari-server: yum uninstall ambari-server

avatar
Expert Contributor

Seems like you have hdp-select package installed from 2.3.4.7 release while you are trying to install 2.3.6.0.

Please provide further info to bring this problem into resolution:

Are you trying to update from 2.3.4.7 to 2.3.6.0 ?

Or have you installed manually 2.3.4.7's hdp-select tool?

avatar
Contributor

As per your suggestion followed the steps to installed the latest Ambari 2.4.2.0, however, ambari-server startup command failed to start with below error:

Caused by: javax.persistence.PersistenceException: Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.6.2.v20151217-774c696): org.eclipse.persistence.exceptions.DatabaseException Internal Exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Table 'ambaridb.extensionlink' doesn't exist Error Code: 1146 Call: SELECT t1.link_id, t1.extension_id, t1.stack_id FROM stack t0, extensionlink t1 WHERE (((t0.stack_name = ?) AND (t0.stack_version = ?)) AND (t0.stack_id = t1.stack_id)) bind => [2 parameters bound] Query: ReadAllQuery(name="ExtensionLinkEntity.findByStack" referenceClass=ExtensionLinkEntity sql="SELECT t1.link_id, t1.extension_id, t1.stack_id FROM stack t0, extensionlink t1 WHERE (((t0.stack_name = ?) AND (t0.stack_version = ?)) AND (t0.stack_id = t1.stack_id))")

I have also uploaded installation steps log and ambari-server log file

Please advise.

Thank you,

Sachin Aambari-server2420-log.zipambari-server-2420-installation-log.txt

avatar
Contributor

Ambari server startup Issue is resolved by dropping previously created database in mysql and recreating database and running the Ambari-DDL-MySQL-CREATE.sql script.

avatar
Contributor

All the services started successfully except SmartSense. Below is the error. How do I get the smartsense ID?

28 Jan 2017 15:38:38,275 ERROR [main] ActivityAnalyzerFacade:189 - Failed to analyze activities com.hortonworks.smartsense.activity.ActivityException: Invalid smartsense ID unspecified. Please configure a vaid SmartSense ID to proceed. at com.hortonworks.smartsense.activity.util.ActivityUtil.validateSmartSenseId(ActivityUtil.java:398) at com.hortonworks.smartsense.activity.ActivityAnalyzerFacade.main(ActivityAnalyzerFacade.java:177) 28 Jan 2017 15:48:53,840 ERROR [main] ActivityAnalyzerFacade:189 - Failed to analyze activities com.hortonworks.smartsense.activity.ActivityException: Invalid smartsense ID unspecified. Please configure a vaid SmartSense ID to proceed. at com.hortonworks.smartsense.activity.util.ActivityUtil.validateSmartSenseId(ActivityUtil.java:398) at com.hortonworks.smartsense.activity.ActivityAnalyzerFacade.main(ActivityAnalyzerFacade.java:177)

Please advise.

Thank you,

Sachin A

avatar
Expert Contributor

Hi Sachin,

SmartSense is available for the Hortonworks customers who has signed up for our support plan.

It provides monitoring for server configurations and provides suggestions if any of the services are misconfigured.

If you do not have a Hortonworks Support Contract you can disable it.

It seems that your original problem has been resolved.

I'd suggest closing this thread by choosing a 'best answer' for any of the answers you think solved your problem.

If you have further questions please post new question so that others can easily learn from it (without the need to understand the whole history if this thread).

Thanks,

Tibor

avatar
New Contributor

HOW CAN I GEI THE SMARTSENCE ID?