Home Forums HDP on Linux – Installation RHEL 5 (Missing dependency)

This topic contains 15 replies, has 3 voices, and was last updated by  Sasha J 2 years, 2 months ago.

  • Creator
    Topic
  • #6180

    Lance Fang
    Participant

    When I tried to install HDP, I encountered this missing dependency. Any thoughts?

    [root@dwbi-durl-gem5 hadoop]# uname -a
    Linux dwbi-durl-gem5 2.6.18-194.el5 #1 SMP Mon Mar 29 22:10:29 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux

    ====
    [root@dwbi-durl-gem5 hadoop]# yum install php-pecl-json
    Loaded plugins: security
    Setting up Install Process
    Resolving Dependencies
    –> Running transaction check
    —> Package php-pecl-json.x86_64 0:1.2.1-4.el5 set to be updated
    –> Processing Dependency: php-api = 20041225 for package: php-pecl-json
    –> Processing Dependency: /usr/bin/pecl for package: php-pecl-json
    –> Processing Dependency: /usr/bin/pecl for package: php-pecl-json
    –> Processing Dependency: /usr/bin/pecl for package: php-pecl-json
    –> Processing Dependency: /usr/bin/pecl for package: php-pecl-json
    –> Finished Dependency Resolution
    php-pecl-json-1.2.1-4.el5.x86_64 from epel has depsolving problems
    –> Missing Dependency: /usr/bin/pecl is needed by package php-pecl-json-1.2.1-4.el5.x86_64 (epel)
    php-pecl-json-1.2.1-4.el5.x86_64 from epel has depsolving problems
    –> Missing Dependency: php-api = 20041225 is needed by package php-pecl-json-1.2.1-4.el5.x86_64 (epel)
    Error: Missing Dependency: /usr/bin/pecl is needed by package php-pecl-json-1.2.1-4.el5.x86_64 (epel)
    Error: Missing Dependency: php-api = 20041225 is needed by package php-pecl-json-1.2.1-4.el5.x86_64 (epel)
    You could try using –skip-broken to work around the problem
    You could try running: package-cleanup –problems
    package-cleanup –dupes
    rpm -Va –nofiles –nodigest
    The program package-cleanup is found in the yum-utils package.

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

You must be logged in to reply to this topic.

  • Author
    Replies
  • #6409

    Sasha J
    Moderator

    Lance,
    Is there a way for you to make clean OS installation on the nodes you plan to use?
    As I see, you use it to install Cloudera before (as you have cloud era repositories configured)….
    It is not recommended to mix different Hadoop distributions on the same nodes, this may lead to unpredicted results….
    There is definitely something wrong with your OS installation ….

    Collapse
    #6408

    Lance Fang
    Participant

    Can’t find it.

    Can you reach out to me lance.fang@emc.com? I need to get this installation going ASAP.

    Collapse
    #6399

    Lance,

    You may have to browse through the rhel repo and search for the redhat-release, redhat-release-notes, and enterprise-release rpm , download it and install it. Once you install these rpm’s you are all set to install php-pear as mentioned before.

    let me know how it goes

    -Giri

    Collapse
    #6395

    Lance Fang
    Participant

    Ok I have applied the release-notes rpm. For the other two,

    enterprise-release is needed by (installed) up2date-5.10.1-41.8.el5.x86_64
    /etc/enterprise-release is needed by (installed) initscripts-8.45.30-2.0.2.el5.x86_64

    what are the exact rpm I need to download and install? I am in the rhel subscription download directory and there so many of them.

    Collapse
    #6320

    I can get you the release-notes rpm url which is:
    rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/centos-release-notes-5.8-0.x86_64.rpm

    centos-release and centos-release-notes rpm’s are from the Extra Packages for Enterprise Linux (EPEL) repository. But the enterprise-release rpm has to be downloaded and installed from the redhat repository. You should be using your rhel subscription.

    let me know how it goes.
    -Giri

    Collapse
    #6315

    Lance Fang
    Participant

    Looks like there are other dependencies needed before I can install centos5 base. Do you know where I can pick these 3 dependencies up?

    [root@dwbi-durl-gem5 hadoop]# rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/centos-release-5-8.el5.centos.x86_64.rpm
    Retrieving http://mirror.centos.org/centos/5/os/x86_64/CentOS/centos-release-5-8.el5.centos.x86_64.rpm
    warning: /var/tmp/rpm-xfer.jlcawJ: Header V3 DSA signature: NOKEY, key ID e8562897
    error: Failed dependencies:
    centos-release-notes is needed by centos-release-5-8.el5.centos.x86_64
    enterprise-release is needed by (installed) up2date-5.10.1-41.8.el5.x86_64
    /etc/enterprise-release is needed by (installed) initscripts-8.45.30-2.0.2.el5.x86_64

    Collapse
    #6313

    Lance,

    php-pear is provided by the base centos repo and not by the epel repo. Looking at your yum list output it looks like you don’t seem to have the centos-base yum repo configured.

    You may have to install the centos5 base release rpm to get this issue resolved.
    Steps:
    1)
    rpm -Uvh http://mirror.centos.org/centos/5/os/x86_64/CentOS/centos-release-5-8.el5.centos.x86_64.rpm
    2)
    yum clean all
    3) yum install php-pear
    4) yum install php-pecl-json
    5) yum install hmc

    This should help. Let me know how it goes.

    Collapse
    #6309

    Lance Fang
    Participant

    On the HMC user guide, it has a SW installation check list. How do we check to make sure we have it or compatible?

    • Ruby 1.8.5-24.el5
    • Puppet 2.7.9-2
    • Ruby Rack 1.1.0-2.el5
    • Passenger 3.0.12-1.el5.centos
    • Nagios 3.0.12-1.el5.centos
    • Nagios plug-ins 1.4.15-2.el5
    • Nagios Common 2.12-10.el5
    • mysql v. 5.*
    • Ganglia – ganglia-gmond-3.2.0, ganglia-gmetad-3.2.0

    Collapse
    #6308

    Lance Fang
    Participant

    Girid,

    Please see output below. Still seeing the same errors.

    [root@dwbi-durl-gem5 hadoop]# yum clean all
    Loaded plugins: security
    Cleaning up Everything
    [root@dwbi-durl-gem5 hadoop]# yum list php-pear
    Loaded plugins: security
    HDP-1.0.0.12 | 951 B 00:00
    HDP-1.0.0.12/primary | 31 kB 00:00
    HDP-1.0.0.12 110/110
    cloudera-cdh4 | 951 B 00:00
    cloudera-cdh4/primary | 24 kB 00:00
    cloudera-cdh4 77/77
    epel | 3.4 kB 00:00
    epel/primary_db | 3.7 MB 00:00
    Error: No matching Packages to list
    [root@dwbi-durl-gem5 hadoop]# yum install php-pear
    Loaded plugins: security
    Setting up Install Process
    No package php-pear available.
    Nothing to do
    [root@dwbi-durl-gem5 hadoop]# yum install php-pecl-json
    Loaded plugins: security
    Setting up Install Process
    Resolving Dependencies
    –> Running transaction check
    —> Package php-pecl-json.x86_64 0:1.2.1-4.el5 set to be updated
    –> Processing Dependency: php-api = 20041225 for package: php-pecl-json
    –> Processing Dependency: /usr/bin/pecl for package: php-pecl-json
    –> Processing Dependency: /usr/bin/pecl for package: php-pecl-json
    –> Processing Dependency: /usr/bin/pecl for package: php-pecl-json
    –> Processing Dependency: /usr/bin/pecl for package: php-pecl-json
    –> Finished Dependency Resolution
    php-pecl-json-1.2.1-4.el5.x86_64 from epel has depsolving problems
    –> Missing Dependency: /usr/bin/pecl is needed by package php-pecl-json-1.2.1-4.el5.x86_64 (epel)
    php-pecl-json-1.2.1-4.el5.x86_64 from epel has depsolving problems
    –> Missing Dependency: php-api = 20041225 is needed by package php-pecl-json-1.2.1-4.el5.x86_64 (epel)
    Error: Missing Dependency: /usr/bin/pecl is needed by package php-pecl-json-1.2.1-4.el5.x86_64 (epel)
    Error: Missing Dependency: php-api = 20041225 is needed by package php-pecl-json-1.2.1-4.el5.x86_64 (epel)
    You could try using –skip-broken to work around the problem
    You could try running: package-cleanup –problems
    package-cleanup –dupes
    rpm -Va –nofiles –nodigest
    The program package-cleanup is found in the yum-utils package.

    Collapse
    #6273

    Lance,

    Could you try cleaning up you yum cache by doing “yum clean all” and do a “yum list php-pear” – by doing the yum list it would tell you if the package is installed already or is available in the repo for installation.

    If the rpm is still available in the repo you can do a yum install as mentioned before and let me know how it goes.

    Collapse
    #6228

    Sasha J
    Moderator

    Hi Lance,

    If possible, please try to install with RHEL/CentOS 5.8 + and let us know if you continue to have issues

    Sasha

    Collapse
    #6198

    Lance Fang
    Participant

    When I installed the php-pear, resulted to the output below and still encounter the same error. Do I need to clean up somewhere before reinstall?

    Also looks like the php-pear package is there.

    ==
    [root@dwbi-durl-gem5 hadoop]# yum install php-pear
    Loaded plugins: security
    Setting up Install Process
    No package php-pear available.
    Nothing to do

    Collapse
    #6183

    It looks like /usr/bin/pcel is missing in your system which is causing the php-pcel-json to fail.

    To solve this, you may have to install php-pear before installing php-pecl-json.
    yum install php-pear
    yum install php-pecl-json
    this should solve the issue that you are seeing.

    Also make sure you are using php version 5.1

    let me know how it goes.

    thanks
    Giri

    Collapse
    #6182

    Lance Fang
    Participant

    [root@dwbi-durl-gem5 log]# cat /etc/redhat-release
    Red Hat Enterprise Linux Server release 5.5 (Tikanga)

    Collapse
    #6181

    sorry that you are facing this issue. I need some info about the env that you installing HMC on.
    Could you please paste the output of “cat /etc/redhat-release”

    -Giri

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