Support Questions

Find answers, ask questions, and share your expertise

Install problems with HDP 2.6

avatar
Expert Contributor

Hi. I am at the install stage for my HDP2.6 cluster, for Ubuntu14 and Ambari 2.5.0.3. My master node fails with:

E: Unable to locate package accumulo-2-4-2-0-258

My s1 node fails (warning):

E: Unable to locate package hdp-select
2017-05-11 19:34:05,196 - Failed to install package hdp-select. Executing '/usr/bin/apt-get update -qq'
2017-05-11 19:34:47,796 - Retrying to install package hdp-select after 30 seconds
Command aborted. Reason: 'Server considered task failed and automatically aborted it'

My s2 node fails (warning):

2017-05-11 19:33:59,355 - Installing package hadoop-2-6-0-3-8-client ('/usr/bin/apt-get -q -o Dpkg::Options::=--force-confdef --allow-unauthenticated --assume-yes install hadoop-2-6-0-3-8-client')
Command aborted. Reason: 'Server considered task failed and automatically aborted it'

My s2 node fails (warning):

2017-05-11 19:34:06,067 - Installing package accumulo-2-6-0-3-8 ('/usr/bin/apt-get -q -o Dpkg::Options::=--force-confdef --allow-unauthenticated --assume-yes install accumulo-2-6-0-3-8')
Command aborted. Reason: 'Server considered task failed and automatically aborted it'

These are all the first install tasks.

Are these related? How might I fix them?

TIA!

UPDATE:

I am now getting

An internal system exception occurred: Base url http://public-repo-1.hortonworks.com/HDP/sles12/2.x/updates/2.6.0.3 is already defined for another repository version. Setting up base urls that contain the same versions of components will cause stack upgrade to fail.

error. I have not changed anything since my original post except install tree.

19 REPLIES 19

avatar
Expert Contributor

Thanks @Palanivelrajan Chellakutty. Could you very briefly tell me how to do that? Is it the first step in the Ambari install where it asks for the base URLs and do I also have to add it to Ubuntu somehow?

avatar
Rising Star

need below output where you try to install ambari-server on host machine

Output needed:

cat /etc/yum.repos.d/ambari.repo

cat /etc/yum.repos.d/HDP.repo

cat /etc/yum.repos.d/HDP-UTILS.repo

yum repolist

avatar
Expert Contributor

I am now getting

An internal system exception occurred: Base url http://public-repo-1.hortonworks.com/HDP/sles12/2.x/updates/2.6.0.3 is already defined for another repository version. Setting up base urls that contain the same versions of components will cause stack upgrade to fail.

error. I have not changed anything since my original post except install tree.

avatar
Rising Star

Check List.

1. Check Ambari-Server DB

# ambari-server check-database

You must return a message "No errors were found."

If you installed hdp&ambari normally, then Ambari-Server will connect in ambari database of your postgres.

But I think, maybe you were upgraded twice between hdp 2.4.0 -> hdp 2.5.3.0 and hdp 2.5.3.0-> hdp 2.6.0.0 of rolling or manual upgrade.

So I asking, did you upgrade clearly from previous hdp version?

Now, your ambari database in postgres is conflicting cluster, service, some tables, FK constraint(alert_definition table doesn't exist.)..

2. Check Ambari DDL Postgres.

# cd /var/lib/ambari-server/resources

If embeded postgres

# vim Ambari-DDL-Postgres-EMBEDDED-CREATE.sql

Else if custom postgres

# vim Ambari-DDL-Postgres-CREATE.sql

ambari-server still can't find you hadoop cluster 'cresta'.

3. Check ambari database in Postgres.

connect postgres.

\connect ambari

SELECT * FROM ambari.alert_definition;

SELECT * FROM ambari.alert_history;

SELECT * FROM alert_definition WHERE definition_id=74;

SELECT * FROM alert_history WHERE alert_definition_id=74;

definition_id in alert_definition table is alert_definition_id in alert_history table like FK.

But alert_definition_id (74) does not exist in alert_definition table.

It seems something wrong and not clean upgraded.

avatar
Expert Contributor

No errors on ambari-server check-database. I am doing a fresh install (I deleted an old version).

Not sure about the Postgres stuff, how do I use it and how do I know if I am already using it?

avatar
Rising Star

Execute these commans on installed ambari-server node.

vim /etc/ambari-server/conf/ambari.properties

server.jdbc.database=mysql

server.jdbc.database_name=ambari

If you are using postgres database, then server.jdbc.database values is postgres.

How did you delete an older version?

avatar
Rising Star

it looks new error show up you are trying for upgrade...please confirm what you doing currently

Question :

1. are you trying ambari-server fresh install ?

2. or trying to do ambari-server upgrade from one version to newer version ?

Output needed:

cat /etc/yum.repos.d/ambari.repo

cat /etc/yum.repos.d/HDP.repo

cat /etc/yum.repos.d/HDP-UTILS.repo

yum repolist

avatar
Expert Contributor

Fresh install.

I am using Ubuntu, hopefully these are what you are after:

ed@master:~$ cat /etc/apt/sources.list.d/ambari.list
#VERSION_NUMBER=2.5.0.3-7
deb http://public-repo-1.hortonworks.com/ambari/ubuntu14/2.x/updates/2.5.0.3 Ambari main
e
ed@master:~$ cat /etc/apt/sources.list.d/HDP.list
deb http://public-repo-1.hortonworks.com/HDP/ubuntu14/2.x/updates/2.6.0.3 HDP 
ed@master:~$ cat /etc/apt/sources.list.d/HDP-UTILS.list 
deb http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.21/repos/ubuntu12 HDP-UTILS mained@master:~$ 
ed@master:~$ cat /etc/apt/sources.list
# deb cdrom:[Ubuntu 14.04.4 LTS _Trusty Tahr_ - Release amd64 (20160217.1)]/ trusty main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
deb http://gb.archive.ubuntu.com/ubuntu/ trusty main restricted
deb-src http://gb.archive.ubuntu.com/ubuntu/ trusty main restricted
## Major bug fix updates produced after the final release of the
## distribution.
deb http://gb.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
deb-src http://gb.archive.ubuntu.com/ubuntu/ trusty-updates main restricted
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team. Also, please note that software in universe WILL NOT receive any
## review or updates from the Ubuntu security team.
deb http://gb.archive.ubuntu.com/ubuntu/ trusty universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ trusty universe
deb http://gb.archive.ubuntu.com/ubuntu/ trusty-updates universe
deb-src http://gb.archive.ubuntu.com/ubuntu/ trusty-updates universe
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
## team, and may not be under a free licence. Please satisfy yourself as to 
## your rights to use the software. Also, please note that software in 
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://gb.archive.ubuntu.com/ubuntu/ trusty multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ trusty multiverse
deb http://gb.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ trusty-updates multiverse
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
deb http://gb.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb-src http://gb.archive.ubuntu.com/ubuntu/ trusty-backports main restricted universe multiverse
deb http://security.ubuntu.com/ubuntu trusty-security main restricted
deb-src http://security.ubuntu.com/ubuntu trusty-security main restricted
deb http://security.ubuntu.com/ubuntu trusty-security universe
deb-src http://security.ubuntu.com/ubuntu trusty-security universe
deb http://security.ubuntu.com/ubuntu trusty-security multiverse
deb-src http://security.ubuntu.com/ubuntu trusty-security multiverse
## Uncomment the following two lines to add software from Canonical's
## 'partner' repository.
## This software is not part of Ubuntu, but is offered by Canonical and the
## respective vendors as a service to Ubuntu users.
# deb http://archive.canonical.com/ubuntu trusty partner
# deb-src http://archive.canonical.com/ubuntu trusty partner
## This software is not part of Ubuntu, but is offered by third-party
## developers who want to ship their latest software.
deb http://extras.ubuntu.com/ubuntu trusty main
deb-src http://extras.ubuntu.com/ubuntu trusty main

avatar
Rising Star

I have done replica your issue on OS ubuntu16, don't see any issue while installing ambari-server/agent and HDP...Please confirm which step you got an error while try to install ambari server ?

OS Version : ubuntu16 Ambari : 2.5.0.3 HDP : 2.5.5.0 repository used : public url cd /etc/apt/sources.list.d ==> Download software wget -nv http://public-repo-1.hortonworks.com/ambari/ubuntu16/2.x/updates/2.5.0.3/ambari.list -O /etc/apt/sources.list.d/ambari.list apt-key adv --recv-keys --keyserver keyserver.ubuntu.com B9733A7A07513CAD apt-get update testhdp@testhdp:/etc/apt/sources.list.d$ cat ambari.list #VERSION_NUMBER=2.5.0.3-7 deb http://public-repo-1.hortonworks.com/ambari/ubuntu16/2.x/updates/2.5.0.3 Ambari main ==> Confirm that Ambari packages downloaded successfully by checking the package name list. apt-cache showpkg ambari-server apt-cache showpkg ambari-agent apt-cache showpkg ambari-metrics-assembly ==> Install the Ambari bits. This also installs the default PostgreSQL Ambari database. apt-get install ambari-server apt-get install ambari-agent

avatar
Rising Star

Please ignore previous notes, same notes attached for your reference.

I have done replica your issue on OS ubuntu16, don't see any issue while installing ambari-server/agent and HDP...Please confirm which step you got an error while try to install ambari server ?