Closed abolotnov closed 5 years ago
Hi, sorry for the late answer. Unfortunately we don't have the resources to provide explicit support for the Mac at the moment. If you (or anyone else reading this) manage to make it work, we are interested in any feedback. Keeping this open for now.
Hi again,
I finally got my hands on a Mac. I think the problem is in the HADOOP_HOME
setting, which should be /usr/local/Cellar/hadoop/3.1.1
(no libexec
bit). Actually, I've just installed without setting HADOOP_HOME
at all and let Pydoop auto detect it. At this point you can install version 2.0a4 (pip install --pre pydoop
) which does not even need JAVA_HOME
, so you can install from scratch with:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install hadoop
curl -O https://bootstrap.pypa.io/get-pip.py
python get-pip.py --user
export PATH="/Users/${USER}/Library/Python/2.7/bin:${PATH}"
pip install --user virtualenv
virtualenv venv
source venv/bin/activate
pip install --pre pydoop
Python 3.6, brew installed hadoop 3.1.1 and 1.8 JDK.
I hope I got all the envs right:
aleksandrs-mbp:pydoop sasha$ printenv|grep -e HADOOP -e JAVA HADOOP_HOME=/usr/local/Cellar/hadoop/3.1.1/libexec HADOOP_COMMON_HOME=/usr/local/Cellar/hadoop/3.1.1/ HADOOP_VERSION=3.1.1 JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home HADOOP_CONF_DIR=/usr/local/Cellar/hadoop/3.1.1/libexec/etc/hadoop
Then on install, the following happens (same thing happens on building from source): I think it's all going downhill on "WARNING: could not set classpath, java code may not compile"... is this an environment variable not set properly or something else?
aleksandrs-mbp:pydoop sasha$ pip install pydoop==2.0a3