Support Questions

Find answers, ask questions, and share your expertise

Hive failed to install HDP2.5

avatar

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

@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

@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

@Ayub Pathan

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

avatar

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

avatar
@li michael

Is the issue solved now?

avatar

@Ayub Khan

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