Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pydoop Java home not set installation issue

When I echo $JAVA_HOME I am getting the path of Java. Hadoop is also running, but pydoop installation fails due to this error.

Traceback (most recent call last):
  File "setup.py", line 54, in <module>
    raise RuntimeError("java home not found, try setting JAVA_HOME")
RuntimeError: java home not found, try setting JAVA_HOME

I run setup command with sudo python setup.py install --skip-build. As a non root user getting this error running install running install_lib creating /usr/local/lib/python2.7/dist-packages/pydoop error: could not create '/usr/local/lib/python2.7/dist-packages/pydoop': Permission denied

like image 656
Aravinth Avatar asked Aug 04 '26 18:08

Aravinth


1 Answers

As you run your setup with sudo, it is run under root account, where possibly no JAVA_HOME is defined.

You can opt to:

  • export correct JAVA_HOME for root;
  • or use virtualenv to install pydoop in an virtual environment under your current user without need to sudo;
  • or use setup options to specify build and install directory with no root privileges needed.
like image 90
alko Avatar answered Aug 07 '26 09:08

alko



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!