Home Forums HDP on Linux – Installation RPM bad key issue while installing HDP on SLSE

This topic contains 13 replies, has 7 voices, and was last updated by  Seth Lyubich 1 year, 7 months ago.

  • Creator
    Topic
  • #21358

    warren W
    Member

    Hi,
    I tried to install HDP on SLES 11 sp1 with ambari instructed by this doc: http://docs.hortonworks.com/HDPDocuments/HDP1/HDP-1.2.3.1/bk_using_Ambari_book/content/ambari-chap1-2.html#ambari-chap1-2-2.
    Error occured on the “Install, Start and Test” step. It seemed like snappy-1.0.5-1.x86_64.rpm cannot be installed on SLES because of BAD signature. Maybe the wrong package?
    Log about “DataNode install”:

    err: /Stage[1]/Hdp::Snappy::Package/Hdp::Package[snappy]/Hdp::Package::Process_pkg[snappy]/Package[snappy]/ensure: change from absent to present failed: Execution of ‘/usr/bin/zypper –quiet install -l -y snappy’ returned 4:
    The following NEW package is going to be installed:
    snappy
    The following package is not supported by its vendor:
    snappy
    1 new package to install.
    Overall download size: 70.0 KiB. After the operation, additional 206.0 KiB will be used.
    Continue? [y/n/?] (y): y
    Installation of snappy-1.0.5-1 failed:
    (with –nodeps –force) Error: Subprocess failed. Error: RPM failed: error: /var/cache/zypp/packages/HDP-UTILS-1.1.0.15/snappy/snappy-1.0.5-1.x86_64.rpm: Header V4 RSA/SHA1 signature: BAD, key ID 07513cad
    error: /var/cache/zypp/packages/HDP-UTILS-1.1.0.15/snappy/snappy-1.0.5-1.x86_64.rpm cannot be installed
    Abort, retry, ignore? [a/r/i] (a): a
    Problem occured during or after installation or removal of packages:
    Installation aborted by user
    notice: /Stage[1]/Hdp::Snmp/Hdp::Package[snmp]/Hdp::Package::Process_pkg[snmp]/Package[net-snmp]/ensure: created
    notice: /Stage[1]/Hdp::Snmp/Hdp::Package[snmp]/Hdp::Package::Process_pkg[snmp]/Hdp::Java::Package[snmp]/Exec[mkdir -p /tmp/HDP-artifacts/ ; curl -f --retry 10 http://123d93suse11:8080/resources//jdk-6u31-linux-x64.bin -o /tmp/HDP-artifacts//jdk-6u31-linux-x64.bin snmp]/returns: executed successfully
    notice: /Stage[1]/Hdp::Snmp/Hdp::Package[snmp]/Hdp::Package::Process_pkg[snmp]/Hdp::Java::Package[snmp]/Exec[mkdir -p /usr/jdk ; chmod +x /tmp/HDP-artifacts//jdk-6u31-linux-x64.bin; cd /usr/jdk ; echo A | /tmp/HDP-artifacts//jdk-6u31-linux-x64.bin -noregister > /dev/null 2>&1 snmp]/returns: executed successfully
    notice: /Stage[1]/Hdp::Snmp/Hdp::Package[snmp]/Hdp::Package::Process_pkg[snmp]/Hdp::Java::Package[snmp]/File[/usr/jdk/jdk1.6.0_31/bin/java snmp]/ensure: created
    notice: /Stage[1]/Hdp::Snmp/Hdp::Snmp-configfile[snmpd.conf]/Hdp::Configfile[/etc/snmp//snmpd.conf]/File[/etc/snmp//snmpd.conf]/content: content changed ‘{md5}a0a01f75674b6d8890a5436303cf24a0′ to ‘{md5}f786955c0c36f7f5a4f375e3fe93c959′
    notice: /Stage[1]/Hdp::Snmp/Service[snmpd]/ensure: ensure changed ‘stopped’ to ‘running’
    notice: /Stage[1]/Hdp::Snmp/Service[snmpd]: Triggered ‘refresh’ from 1 events
    err: /Stage[1]/Hdp::Snappy::Package/Hdp::Package[snappy]/Hdp::Package::Process_pkg[snappy]/Package[snappy-devel]/ensure: change from absent to present failed: Execution of ‘/usr/bin/zypper –quiet install -l -y snappy-devel’ returned 4:
    The following NEW packages are going to be installed: snappy snappy-devel

Viewing 13 replies - 1 through 13 (of 13 total)

You must be logged in to reply to this topic.

  • Author
    Replies
  • #23036

    Seth Lyubich
    Keymaster

    Hi Warren,

    We did some testing and this issue seems to happen with older versions of Zypper. Updating zypper to the latest version seem to solve this issue. zypper-1.3.14+ seem to work.

    Hope this helps,

    Thanks,
    Seth

    Collapse
    #22630

    warren W
    Member

    # cat /etc/zypp/repos.d/ambari.repo
    [HDP-UTILS-1.1.0.15]
    name=Hortonworks Data Platform Utils Version – HDP-UTILS-1.1.0.15
    enabled=1
    autorefresh=0
    baseurl=http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.15/repos/suse11
    type=rpm-md
    priority=1
    gpgcheck=0
    gpgkey=http://public-repo-1.hortonworks.com/ambari/suse11/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
    [Updates-ambari-1.x]
    name=ambari-1.x – Updates
    enabled=1
    autorefresh=0
    baseurl=http://public-repo-1.hortonworks.com/ambari/suse11/1.x/updates
    type=rpm-md
    priority=1
    gpgcheck=0
    gpgkey=http://public-repo-1.hortonworks.com/ambari/suse11/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
    [ambari-1.x]
    name=Ambari 1.x
    enabled=1
    autorefresh=0
    baseurl=http://public-repo-1.hortonworks.com/ambari/suse11/1.x/GA
    type=rpm-md
    priority=1
    gpgcheck=0
    gpgkey=http://public-repo-1.hortonworks.com/ambari/suse11/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins

    # cat /etc/zypp/repos.d/ambari.HDP.repo
    cat: /etc/zypp/repos.d/ambari.HDP.repo: No such file or directory

    # cat /etc/zypp/repos.d/HDP.repo
    #
    #
    # Licensed to the Apache Software Foundation (ASF) under one
    # or more contributor license agreements. See the NOTICE file
    # distributed with this work for additional information
    # regarding copyright ownership. The ASF licenses this file
    # to you under the Apache License, Version 2.0 (the
    # “License”); you may not use this file except in compliance
    # with the License. You may obtain a copy of the License at
    #
    # http://www.apache.org/licenses/LICENSE-2.0
    #
    # Unless required by applicable law or agreed to in writing,
    # software distributed under the License is distributed on an
    # “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
    # KIND, either express or implied. See the License for the
    # specific language governing permissions and limitations
    # under the License.
    #
    #
    #
    [HDP-1.2.1]
    name=HDP
    baseurl=http://public-repo-1.hortonworks.com/HDP/suse11/1.x/updates/1.2.1
    path=/
    enabled=1
    gpgcheck=0

    Collapse
    #22628

    Seth Lyubich
    Keymaster

    Hi Warren,

    In my previous experience ”zypper clean’ followed by ‘zypper refresh’ fixed the issue. We will need to try to reproduce on SLES 11 11 SP1, which should work and was tested by our team. Can you please provide output from commands below?

    cat /etc/zypp/repos.d/ambari.repo
    cat /etc/zypp/repos.d/ambari.HDP.repo

    Thanks,
    Seth

    Collapse
    #22432

    warren W
    Member

    Hi,
    I have no SUSE 11 patch 2 system on hand.
    Can HDP only be installed on SUSE 11 sp2 OS ?
    I reinstalled OS and repeated the HDP installation on my machines many times recently.I am intrested only in the function of HDP. I don’t want to waste more time on testing the installation of HDP.

    Collapse
    #21994

    Robert
    Participant

    Hi Guys,
    FYI, I was able to install with no problems
    SUSE Linux Enterprise Server 11 (x86_64)
    VERSION = 11
    PATCHLEVEL = 2

    Issue might be patch specific? Warren, is it possible to try with SUSE 11 on patch 2 ?

    Regards,
    Robert

    Collapse
    #21989

    Larry Liu
    Moderator

    Look like the snappy-1.0.5-1.x86_64.rpm package got back signature in the repo. Let me check the repo.

    Collapse
    #21961

    zhzf jeff
    Member

    I successfully install the ambari RPM, and the service runs normal, but when I try to install the hadoop cluster by ambari, encounter the same problem:
    Installation of snappy-1.0.5-1 failed:
    (with –nodeps –force) Error: Subprocess failed. Error: RPM failed: error: /var/cache/zypp/packages/HDP-UTILS-1.1.0.15/snappy/snappy-1.0.5-1.x86_64.rpm: Header V4 RSA/SHA1 signature: BAD, key ID 07513cad
    error: /var/cache/zypp/packages/HDP-UTILS-1.1.0.15/snappy/snappy-1.0.5-1.x86_64.rpm cannot be installed

    How to solve this problem? My OS version is:
    Linux 123d93suse11 2.6.32.12-0.7-default #1 SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/Linux

    Collapse
    #21825

    warren W
    Member

    hi Yi,

    I repeated the installation on a fresh OS today,the result is the same.

    err: /Stage[1]/Hdp::Snappy::Package/Hdp::Package[snappy]/Hdp::Package::Process_pkg[snappy]/Package[snappy]/ensure: change from absent to present failed: Execution of ‘/usr/bin/zypper –quiet install -l -y snappy’ returned 4:
    The following NEW package is going to be installed:
    snappy
    The following package is not supported by its vendor:
    snappy
    1 new package to install.
    Overall download size: 70.0 KiB. After the operation, additional 206.0 KiB will be used.
    Continue? [y/n/?] (y): y
    Installation of snappy-1.0.5-1 failed:
    (with –nodeps –force) Error: Subprocess failed. Error: RPM failed: error: /var/cache/zypp/packages/HDP-UTILS-1.1.0.15/snappy/snappy-1.0.5-1.x86_64.rpm: Header V4 RSA/SHA1 signature: BAD, key ID 07513cad
    error: /var/cache/zypp/packages/HDP-UTILS-1.1.0.15/snappy/snappy-1.0.5-1.x86_64.rpm cannot be installed

    Collapse
    #21818

    Yi Zhang
    Moderator

    Hi Warren,

    Can you try the the install again? the repo was updated last week.

    Thanks
    Yi

    Collapse
    #21817

    warren W
    Member

    # cat /etc/SuSE-release
    SUSE Linux Enterprise Server 11 (x86_64)
    VERSION = 11
    PATCHLEVEL = 1

    # uname -a
    Linux 123d93suse11 2.6.32.12-0.7-default #1 SMP 2010-05-20 11:14:20 +0200 x86_64 x86_64 x86_64 GNU/Linux

    Thanks.

    Collapse
    #21738

    Larry Liu
    Moderator

    Hi, Warren

    What is the version of your SLSE? Can you please provide the following?

    cat /etc/SuSE-release
    uname -a

    Thanks
    Larry

    Collapse
    #21680

    warren W
    Member

    Hi ted,

    zypper clean and zypper refresh are useless. I preformed the intallation on a totally new machine. I chose the only method: “wget http://public-repo-1.hortonworks.com/ambari/suse11/1.x/GA/ambari.repo cp ambari.repo /etc/zypp/repos.d” to install ambari server,not both rpm command and the wget command method.
    Why should I remove all Ambari repos and reinstall the ambari package? My ambari server has been installed successfully already, the issue is not about the ambari-1.x rpm package‘s bad key,but about the snappy-1.0.5-1.x86_64.rpm while datanode installation.Will removing all Ambari repos and reinstalling ambari server chang the snappy-1.0.5-1.x86_64.rpm ? How can I change the key of snappy-1.0.5-1.x86_64.rpm package to be right?
    Do you make sure the rpms are right and can be installed on SLSE11 successfully? Have you tested the installation prcess on suse11 according to this doc:http://docs.hortonworks.com/HDPDocuments/HDP1/HDP-1.2.3.1/bk_using_Ambari_book/content/ambari-chap1.html ?

    Thanks.

    Collapse
    #21393

    tedr
    Moderator

    Hi Warren,

    Try this sequence to fix the problem:
    – remove all Ambari repos ( find exactly what they are with zypper repos )
    – rpm -ev ambari
    – download the ambari repo again with ‘rpm -Uvh http://public-repo-1.hortonworks.com/ambari/suse11/1.x/GA/ambari-1.x-1.noarch.rpm
    – run zypper clean
    – run sypper refresh
    – continue with the HDP install instruction.

    Also note that in the HDP instructions where it shows the rpm command and the wget command, you don’t need to do both methods, you should use which ever of these two that works, not both. We have had folks do both and that is where the bad key bit usually comes in.

    I hope that this helps.

    Thanks,
    Ted.

    Collapse
Viewing 13 replies - 1 through 13 (of 13 total)