Hi,
I’m getting this error when trying to install hopsworks 2.4
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
gcc -pthread -B /srv/hops/anaconda/anaconda/envs/hops-system/compiler_compat -Wl,–sysroot=/ -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -Isrc/sercore/HadoopUtils -I/srv/hops/anaconda/anaconda/envs/hops-system/include/python2.7 -c src/sercore/HadoopUtils/SerialUtils.cc -o build/temp.linux-x86_64-2.7/src/sercore/HadoopUtils/SerialUtils.o -Wno-write-strings -std=c++11 -O3
cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++ [enabled by default]
g++ -pthread -shared -B /srv/hops/anaconda/anaconda/envs/hops-system/compiler_compat -L/srv/hops/anaconda/anaconda/envs/hops-system/lib -Wl,-rpath=/srv/hops/anaconda/anaconda/envs/hops-system/lib -Wl,–no-as-needed -Wl,–sysroot=/ build/temp.linux-x86_64-2.7/src/sercore/hu_extras.o build/temp.linux-x86_64-2.7/src/sercore/sercore.o build/temp.linux-x86_64-2.7/src/sercore/streams.o build/temp.linux-x86_64-2.7/src/sercore/HadoopUtils/SerialUtils.o -L/srv/hops/anaconda/anaconda/envs/hops-system/lib -lpython2.7 -o build/lib.linux-x86_64-2.7/pydoop/sercore.so
WARNING: log4j.properties is not found. HADOOP_CONF_DIR may be incomplete.
ERROR: JAVA_HOME is not set and could not be found.
Traceback (most recent call last):
File “”, line 1, in
File “/tmp/pip-install-1nNI7E/pydoop/setup.py”, line 368, in
zip_safe=False,
File “/srv/hops/anaconda/anaconda/envs/hops-system/lib/python2.7/site-packages/setuptools/init.py”, line 140, in setup
return distutils.core.setup(**attrs)
File “/srv/hops/anaconda/anaconda/envs/hops-system/lib/python2.7/distutils/core.py”, line 151, in setup
dist.run_commands()
File “/srv/hops/anaconda/anaconda/envs/hops-system/lib/python2.7/distutils/dist.py”, line 953, in run_commands
self.run_command(cmd)
File “/srv/hops/anaconda/anaconda/envs/hops-system/lib/python2.7/distutils/dist.py”, line 972, in run_command
cmd_obj.run()
File “/srv/hops/anaconda/anaconda/envs/hops-system/lib/python2.7/site-packages/wheel/bdist_wheel.py”, line 188, in run
self.run_command(‘build’)
File “/srv/hops/anaconda/anaconda/envs/hops-system/lib/python2.7/distutils/cmd.py”, line 326, in run_command
self.distribution.run_command(command)
File “/srv/hops/anaconda/anaconda/envs/hops-system/lib/python2.7/distutils/dist.py”, line 972, in run_command
cmd_obj.run()
File “/tmp/pip-install-1nNI7E/pydoop/setup.py”, line 320, in run
self.build_java()
File “/tmp/pip-install-1nNI7E/pydoop/setup.py”, line 301, in build_java
jb = JavaBuilder(self.build_temp, self.build_lib)
File “/tmp/pip-install-1nNI7E/pydoop/setup.py”, line 199, in init
self.java_libs = [JavaLib()] File “/tmp/pip-install-1nNI7E/pydoop/setup.py”, line 183, in init
self.classpath = pydoop.hadoop_classpath()
File “pydoop/init.py”, line 79, in hadoop_classpath
return _PATH_FINDER.hadoop_classpath()
File “pydoop/hadoop_utils.py”, line 126, in hadoop_classpath
“hadoop classpath --glob”, shell=True, universal_newlines=True
File “/srv/hops/anaconda/anaconda/envs/hops-system/lib/python2.7/subprocess.py”, line 223, in check_output
raise CalledProcessError(retcode, cmd, output=output)
subprocess.CalledProcessError: Command ‘hadoop classpath --glob’ returned non-zero exit status 1
It looks like JAVA_HOME is not set, but I’m not sure. JAVA_HOME is set in my environment and I get this same error if I try to run the chef recipe directly. I’m trying to install on an AWS EC2 instances running CentOS 7.