Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Hive failed to install HDP2.5

avatar
New Member

I am in the deployment of HDP2.5 cluster, other services are installed properly, but the installation hive failed, error reporting lack python-argparse, but I manually install argparse, still at the same mistake, I want to know why? Thank you! I am very eager to know where is the problem?

1 ACCEPTED SOLUTION

avatar

@li michael

I faced same issue and I resolved the issue after update the python package with

yum update python*

Once try and if this also help you to resolve the issue.

View solution in original post

21 REPLIES 21

avatar
@li michael

Can you paste the error you are seeing? You can install argparse using below commands..

python setup.py install [OR]
easy_install argparse [OR]
pip install argparse

avatar

@li michaelCan you install python-argparse as below..

 yum install python-argparse

You should see console output with success messages like below

8059-1-root.png

avatar
New Member

@Ayub PathanI executed the yum install python-argparse command, the results failed, showing No package python-argparse available.(I first install setuptools, and then install the PIP, through the PIP installed argparse, the implementation of the command is python setup.py install .) below is a screenshot

8046-argparse.jpg

avatar
New Member

@Ayub PathanCentOS 6.6 without a argparse module, can you describe the specific steps you have installed the argparse module?Thank you !

avatar

@li michael Looks like you have yum repo enabled that points to your local file path(file://mnt/cdrom/repodata/repmd.xml).

To fix this, make sure to set "enabled=0" in /etc/yum.repos.d/CentOS-Media.repo on your machine and have a working internet connectivity.

cat /etc/yum.repos.d/CentOS-Media.repo
# CentOS-Media.repo
#
#  This repo can be used with mounted DVD media, verify the mount point for
#  CentOS-6.  You can use this repo and yum to install items directly off the
#  DVD ISO that we release.
#
# To use this repo, put in your DVD and use it with the other repos too:
#  yum --enablerepo=c6-media [command]
#
# or for ONLY the media repo, do this:
#
#  yum --disablerepo=\* --enablerepo=c6-media [command]


[c6-media]
name=CentOS-$releasever - Media
baseurl=file:///media/CentOS/
        file:///media/cdrom/
        file:///media/cdrecorder/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

Basically this setting "enabled=1" is used when there is no internet connectivity and you want to read all repo data from your local machine.

Hope this helps.

avatar
New Member

@Ayub Pathan

Yes, I did forget to change the "enabled=0", thank you very much for your advice and answer!

avatar
New Member

@Ayub Pathan Yes,the problem has been resolved,thanks!

avatar
@li michael

Is the issue solved now?

avatar
New Member

@Ayub Khan

After I connect to the Internet network upgrade the python environment, then the problem solved.Thank you for your attention and help !