crs4 / pydoop

A Python MapReduce and HDFS API for Hadoop
Apache License 2.0
236 stars 59 forks source link

Pydoop Install Error #365

Closed orwa-te closed 4 years ago

orwa-te commented 4 years ago

I am trying to install Pydoop on my centos 7 where all requirements are satisfied: Hadoop 3.1.1, JAVA_HOME, HADOOP_HOME, jre=1.8.0, python_devel, setup_tools and C++ compiler. I am getting the following error:

    compilation terminated.
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-2l9_84lo/pydoop/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-58i12i7y-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-2l9_84lo/pydoop/
simleo commented 4 years ago

Hi. Please post the full build output, i.e., the error above plus what happened before. Make sure you enclose it in triple backticks.

orwa-te commented 4 years ago

Thanks, @simleo for your reply. The problem was because that I was trying this command from the root user which its environment variables path was not configured there. I could resolve by switching to "Hdadmin" user were requirements are satisfied