[
https://issues.apache.org/jira/browse/AMBARI-13731?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14991473#comment-14991473
]
Madan Sen commented on AMBARI-13731:
------------------------------------
The packages (python-devel, netcat-openbsd, mysql-connector-java) are present
in the SLES repository
bdavm691:˜ # zypper wp python-devel
S | Name | Type | Version | Arch | Repository
--+--------------+---------+--------------+--------+--------------------------
| python-devel | package | 2.6.9-0.35.1 | x86_64 | SDS SLE11 SDK SP3 Updates
| python-devel | package | 2.6.9-0.33.1 | x86_64 | SDS SLE11 SDK SP3 Updates
| python-devel | package | 2.6.9-0.31.1 | x86_64 | SDS SLE11 SDK SP3 Updates
| python-devel | package | 2.6.9-0.27.1 | x86_64 | SDS SLE11 SDK SP3 Updates
| python-devel | package | 2.6.9-0.25.1 | x86_64 | SDS SLE11 SDK SP3 Updates
| python-devel | package | 2.6.8-0.23.1 | x86_64 | SDS SLE11 SDK SP3 Updates
| python-devel | package | 2.6.8-0.19.1 | x86_64 | SDS SLE11 SDK SP3 Updates
| python-devel | package | 2.6.8-0.15.1 | x86_64 | SDS SLE11 SDK SP3 Pool
bdavm691:˜ #
bdavm691:˜ # zypper wp netcat-openbsd
S | Name | Type | Version | Arch | Repository
--+----------------+---------+-------------+--------+-------------------------------------------------
| netcat-openbsd | package | 1.89-78.8.1 | x86_64 | SDS SLES11 SP3 Updates
| netcat-openbsd | package | 1.89-78.6.1 | x86_64 | SDS SLES11 SP3 Pool
| netcat-openbsd | package | 1.89-78.6.1 | x86_64 |
SUSE-Linux-Enterprise-Server-11-SP3 11.3.3-1.138
bdavm691:˜ #
bdavm691:˜ # zypper wp mysql-connector-java
S | Name | Type | Version | Arch | Repository
--+----------------------+---------+------------+--------+-----------------------
| mysql-connector-java | package | 5.1.6-1.27 | noarch | SDS SLE11 SDK SP3
Pool
The basic issue is of "Login Failure" while accessing the SLES repositories
from ambari installation.
Further looking at this, found out that on the SLES machines the credentials
for ftp repo are stored at /root/.zypp/credentials.cat file. Now there a couple
of ways to fix the login failure issue
Option 1. Zypper seems to need $HOME to be set to pick up the credentials from
"/root/.zypp/credentials.cat". Looking at ambari code that is firing the zypper
install command and that seems to be only setting up the "PATH" variable. If we
put HOME=/root environment variable the installation succeeds. I think we can
do this install will need root access. A similar problem is reported by puppet
https://projects.puppetlabs.com/issues/23378. So the solution would be to
modify ambari to set $HOME variable to /root
Option 2. If we look at the zypper config file (/etc/zypp/zypp.conf) it expects
a global credentials file, by default, at /etc/zypp/credentials.cat
(credentials.global.file = /etc/zypp/credentials.cat). If we copy
/root/.zypp/credentials.cat to /etc/zypp/credentials.cat installation succeeds.
So the solution would be to document that the user needs to copy
root/.zypp/credentials.cat to /etc/zypp/credentials.cat and run "zypper
refresh" and "zypper update" before installing ambari. This is a quick
work-around
I think Option 1 would be most suitable
> Ambari fails to install packages python-devel, mysql-connector-java and
> netcat-openbsd on SLES
> -----------------------------------------------------------------------------------------------
>
> Key: AMBARI-13731
> URL: https://issues.apache.org/jira/browse/AMBARI-13731
> Project: Ambari
> Issue Type: Bug
> Environment: Suse Linux
> Reporter: Madan Sen
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)