You might have already all the pre-requisites installed but we are going to show how to start from a fresh Yosemite (10.10) or El Capitan (10.11) install and end up with running Hue on your Mac in almost no time!
We are going to be using the official Quickstart VM from Cloudera that already packs all the Hadoop ecosystem components your Hue will talk to. If you don’t have the latest already downloaded and running, please visit this link and choose the versions that suits you the best.
In the meanwhile, let’s set up your Mac!
Step 1: Clone the Hue repository
To clone the Hue Github repository you need git installed on your system. Git (plus a ton of other tools) is included in the Xcode command line tools. To install it open Terminal and type
xcode-select --install
In the dialog choose “Install”. If on Terminal you have the message “xcode-select: error: command line tools are already installed, use “Software Update” to install updates” it means you are almost good to go already.
From Terminal, navigate to a directory where you keep all your project and run
git clone https://github.com/cloudera/hue.git
You now have the Hue source code in your Mac.
Step 2: Install Java
The build process use Java to run. A quick way to get to the right download URL from Oracle is to run from Terminal
java -version
and then click on the “More info” button on the dialog that appears. On Oracle’s website, accept the license and choose the Mac OS X JDK link. After the DMG has been downloaded, open it and double click on the installation package. Now, if we return to the Terminal and type again
java -version
we will have the version of the freshly installed JDK. At the time of writing, 1.8.0_40.
Step 3: Install the pre-requisites
Hue uses several libraries that are not included in the XCode command line tools so we will need to install that too. To do that we will use Homebrew, the fantastic open source package manager for Mac OS X. Install it from Terminal with
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
You will need to enter your password to continue. Then, as suggested by the installation script, run
brew doctor
If you already have Homebrew installed, just update it running
brew update
As a first thing, we need to install Maven 3
brew install maven
And then Mysql to have the development libraries for it
brew install mysql
This will install also lib-openssl. Let’s go on install GMP
brew install gmp
Step 3b (just for El Capitan and Sierra): export ENV variables for openssl
If you have OS X El Capitan or macOS Sierra, you need an extra mini step to be able to make Hue:
export LDFLAGS=-L/usr/local/opt/openssl/lib && export CPPFLAGS=-I/usr/local/opt/openssl/include
Step 4: Compile and configure Hue
Now that we are all set with the requirements we can compile Hue by running
make apps
from the Hue folder that was created by the git clone in step 1. After a while, if everything goes as planned, you should see as a last build message something like “N static files copied to …”.
Hue comes with a default configuration file that points all the service to the local machine. Since we are using a VM for this purposes, we will need to change several conf lines. For your convenience, we have the file readily available here.
Just copy this file over to your hue/desktop/conf folder!
Step 5: Configure your /etc/hosts
The last thing we should do is to start the Quickstart VM and get its IP address
(you can launch the terminal inside the VM and run ‘ifconfig’ for that; in my case it’s 172.16.156.130). Then, on your Mac, edit the hosts file with
sudo vi /etc/hosts
and add the line
172.16.156.130 quickstart.cloudera
with the IP you got from the VM. Save and you are good to go!
Step 6: Run!
What you have to do on Terminal from the Hue folder is just
./build/env/bin/hue runserver
And point your browser to http://localhost:8000! Go and write a new app now! 🙂
As usual feel free to comment on the hue-user list or @gethue!
118 Comments
-
Need help for the following error:
from lxml import etree
ImportError: dlopen(/Users/FRBXBA/openapp/hue/build/env/lib/python2.7/site-packages/lxml-2.2.2-py2.7-macosx-10.5-x86_64.egg/lxml/etree.so, 2): Library not loaded: libxml2.2.dylib
Referenced from: /Users/FRBXBA/openapp/hue/build/env/lib/python2.7/site-packages/lxml-2.2.2-py2.7-macosx-10.5-x86_64.egg/lxml/etree.so
Reason: Incompatible library version: etree.so requires version 12.0.0 or later, but libxml2.2.dylib provides version 10.0.0 -
It seems like you have an older version of lxml installed… do you have any other projects using that library on your system?
can you try with
pip install -U lxml -
I am in the process of setting up a company that will develop websites for small companies. I also hope to offer services such as data analysis. I would like to experiment with Hue locally. Can I install Hue without the download from Cloudera? Thanks
-
Of course, but you are going to need all the other components Hue talks to (Hive, Impala, HDFS, etc). You can try with a Virtual Machine to see what you need and what you are interested in!
-
-
I have a hadoop setup in pesudo-mode on my Mac OS Yosemite (10.10) with HCatalog,Hbase,HIVE and PIG. Can I install and run HUE with this setup or is it required to have IMPALA also?
-
Yes, you don’t need to configure Impala if you don’t use it. The Impala App will just not work.
You can even blacklist some apps in the hue.ini if you want to even hide the app: https://github.com/cloudera/hue/blob/master/desktop/conf.dist/hue.ini#L121
-
-
Hi
I am following above steps and got below error during make step.
make: *** No rule to make target `apps’. Stop.
Can you please help on this.
-
You are in the Hue folder, right?
-
Thanks for reply. Now i am getting below error.
Rams-MacBook-Pro:hue Modepalli$ make apps
— Creating virtual environment at /Users/Modepalli/hue/build/env
python2.7 /Users/Modepalli/hue/tools/virtual-bootstrap/virtual-bootstrap.py \
-qq –system-site-packages /Users/Modepalli/hue/build/env
— /Users/Modepalli/hue/build/env ready
cd /Users/Modepalli/hue/maven && mvn install
Exception in thread “main” java.lang.UnsupportedClassVersionError: org/apache/maven/cli/MavenCli : Unsupported major.minor version 51.0
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:637)
at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClassFromSelf(ClassRealm.java:401)
at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:42)
at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:254)
at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
at org.codehaus.plexus.classworlds.launcher.Launcher.getMainClass(Launcher.java:144)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:266)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
make: *** [parent-pom] Error 1-
Please upgrade your Java version and make sure you have Maven3 installed (and the other requirements too)
-
-
I am having this same issue and am new to Terminal…How do I get into the Hue folder? I have everything installed and updated, but am having trouble making this command work.
Thanks,
-
-
-
Cloudera VM already contains the HUE. Why should we build Hue again by ourselves?
-
This is when you want to contribute and develop Hue, or you want to try the latest features that are not in the VM yet
-
-
I see the idea. It is great to design our own dashboard.
We have an existing Cloudera cluster running Hive, Impala, Solr, and Spark. Now we want to build a new HUE UI to connect to it.
To set up the configuration file for a new HUE dashboard on a local machine, how to get the required information, including these services pointing to the existing Cloudera cluster, as well as the existing LDAP authentication to login?
http://gethue.com/wp-content/uploads/2015/03/pseudo-distributed.iniIs there any more detailed documentation or step-by-step tutorial?
-
The pseudo-distributed.ini file normally contains comment sections with the details you’re looking for. You can find the latest version here: https://github.com/cloudera/hue/blob/master/desktop/conf/pseudo-distributed.ini.tmpl
-
-
Hi. I’m getting the error:
Failed to execute goal on project hue-plugins: Could not resolve dependencies for project com.cloudera.hue:hue-plugins:jar:3.9.0-SNAPSHOT: The following artifacts could not be resolved: org.apache.hadoop:hadoop-client:jar:2.6.0-mr1-cdh5.5.0-SNAPSHOT, org.apache.hadoop:hadoop-common:jar:2.6.0-cdh5.5.0-SNAPSHOT, org.apache.hadoop:hadoop-annotations:jar:2.6.0-cdh5.5.0-SNAPSHOT, org.apache.commons:commons-math3:jar:3.1.1, xmlenc:xmlenc:jar:0.52, commons-codec:commons-codec:jar:1.4, commons-io:commons-io:jar:2.4, commons-net:commons-net:jar:3.1, commons-collections:commons-collections:jar:3.2.1, commons-el:commons-el:jar:1.0, commons-configuration:commons-configuration:jar:1.6, commons-digester:commons-digester:jar:1.8, commons-beanutils:commons-beanutils:jar:1.7.0, commons-beanutils:commons-beanutils-core:jar:1.8.0, org.codehaus.jackson:jackson-core-asl:jar:1.8.8, org.codehaus.jackson:jackson-mapper-asl:jar:1.8.8, org.apache.avro:avro:jar:1.7.6-cdh5.5.0-SNAPSHOT, com.thoughtworks.paranamer:paranamer:jar:2.3, org.xerial.snappy:snappy-java:jar:1.0.4.1, com.google.protobuf:protobuf-java:jar:2.5.0, com.google.code.gson:gson:jar:2.2.4, org.apache.hadoop:hadoop-auth:jar:2.6.0-cdh5.5.0-SNAPSHOT, org.apache.directory.server:apacheds-kerberos-codec:jar:2.0.0-M15, org.apache.directory.server:apacheds-i18n:jar:2.0.0-M15, org.apache.directory.api:api-asn1-api:jar:1.0.0-M20, org.apache.directory.api:api-util:jar:1.0.0-M20, org.apache.curator:curator-framework:jar:2.7.1, com.jcraft:jsch:jar:0.1.42, org.apache.curator:curator-client:jar:2.7.1, org.apache.curator:curator-recipes:jar:2.7.1, com.google.code.findbugs:jsr305:jar:3.0.0, org.apache.htrace:htrace-core:jar:3.2.0-incubating, org.apache.zookeeper:zookeeper:jar:3.4.5-cdh5.5.0-SNAPSHOT, org.apache.commons:commons-compress:jar:1.4.1, org.tukaani:xz:jar:1.0, org.apache.hadoop:hadoop-hdfs:jar:2.6.0-cdh5.5.0-SNAPSHOT, com.sun.jersey:jersey-core:jar:1.9, com.sun.jersey:jersey-server:jar:1.9, asm:asm:jar:3.1, commons-cli:commons-cli:jar:1.2, org.apache.hadoop:cloudera-netty-all:jar:2.6.0-cdh5.5.0-SNAPSHOT, io.netty:netty:jar:3.6.2.Final, xerces:xercesImpl:jar:2.9.1, xml-apis:xml-apis:jar:1.3.04, org.fusesource.leveldbjni:leveldbjni-all:jar:1.8, org.apache.hadoop:hadoop-core:jar:2.6.0-mr1-cdh5.5.0-SNAPSHOT, hsqldb:hsqldb:jar:1.8.0.10, org.slf4j:slf4j-api:jar:1.6.1, org.slf4j:slf4j-log4j12:jar:1.6.1, log4j:log4j:jar:1.2.16, commons-logging:commons-logging:jar:1.0.4, commons-logging:commons-logging-api:jar:1.0.4, org.apache.thrift:libthrift:jar:0.9.0, commons-lang:commons-lang:jar:2.5, org.apache.httpcomponents:httpclient:jar:4.1.3, org.apache.httpcomponents:httpcore:jar:4.1.3, junit:junit:jar:4.8.1, org.apache.hadoop:hadoop-test:jar:2.6.0-mr1-cdh5.5.0-SNAPSHOT, org.apache.ftpserver:ftplet-api:jar:1.0.0, org.apache.mina:mina-core:jar:2.0.0-M5, org.apache.ftpserver:ftpserver-core:jar:1.0.0, org.apache.ftpserver:ftpserver-deprecated:jar:1.0.0-M2: Could not transfer artifact org.apache.hadoop:hadoop-client:jar:2.6.0-mr1-cdh5.5.0-20150907.060757-460 from/to cloudera.snapshots.repo (https://repository.cloudera.com/content/repositories/snapshots): repository.cloudera.com: unknown error: Unknown host repository.cloudera.com: unknown error -> [Help 1]
I know I’ve only been looking for a couple of hours, but thought that you might help me have this work out faster. Thanks.
-
“Unknown host repository.cloudera.com” this host was down, I just checked http://repository.cloudera.com/cloudera/webapp/home.html?0 and it is back up now so you can retry!
-
Thanks. I’m on the last part, but getting this error — No such file or directory — running ./build/env/hue runserver. The cd is already hue. Any thoughts?
-
Hello Kristina,
Did you run “make apps” before running “./build/env/bin/hue runserver”?
-
Kristina I’m having the same isse how did you fix it?
-
-
-
-
Hello can you help me, looks like (https://repository.cloudera.com/content/repositories/snapshots): repository.cloudera.com: Unknown host repository.cloudera.com
is down :/
Regards Jose
-
It was probably a temporary network problem, all is good now 🙂
-
-
The build process seems to be broken on OS X 10.11 El Capitan.
I have followed the instructions above, and fail with this error:
running build_configure
building ‘Crypto.PublicKey._fastmath’ extension
clang -fno-strict-aliasing -fno-common -dynamic -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers -fwrapv -Wall -Wstrict-prototypes -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/usr/include/ -I/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c src/_fastmath.c -o build/temp.macosx-10.11-x86_64-2.7/src/_fastmath.o
src/_fastmath.c:36:11: fatal error: ‘gmp.h’ file not found
# include
^
1 error generated.I have definitely got gmp installed: $ brew info gmp
gmp: stable 6.0.0a (bottled)
GNU multiple precision arithmetic library
https://gmplib.org/
/usr/local/Cellar/gmp/6.0.0a (15 files, 3.2M) *
Poured from bottle
From: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/gmp.rb
==> Options
–32-bit
Build 32-bit only
–c++11
Build using C++11 modeI have also tried uninstalling the brew version of GMP, and compiling GMP from scratch. This does not help.
Changing to the ./desktop/core/ext-py/pycrypto-2.6.1/ directory and running python setup.py build directly in there seems to fix the problem.
We then run into a similar problem in the OpenSSL stage of the build, which I solved in the same way: cd ./desktop/core/ext-py/pyopenssl/OpenSSL/; python setup.py build
-
Yes, we just updated the README with some instructions for installing and configuring the openssl library required in Mac OS X. Starting with OS X 10.11 (El Capitan), you will need to:
brew install openssl
then run:
export LDFLAGS=-L/usr/local/opt/openssl/lib && export CPPFLAGS=-I/usr/local/opt/openssl/include
Then you can do a: make apps
-
-
Great! Thank you for the very quick reply 🙂
-
By the way, I had to add:
export LDFLAGS=”-L/usr/local/opt/openssl/lib -L /usr/local/opt/gmp/lib” && export CPPFLAGS=”-I/usr/local/opt/openssl/include -I/usr/local/opt/gmp/include”
-
OK – so it appears to build on El Capitan now, but when I try to run it, I get the following error:
$ /usr/local/hue/build/env/bin/hue runserver
Validating models…Unhandled exception in thread started by
Traceback (most recent call last):
File “/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/utils/autoreload.py”, line 93, in wrapper
fn(*args, **kwargs)
File “/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/commands/runserver.py”, line 102, in inner_run
self.validate(display_num_errors=True)
File “/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/base.py”, line 310, in validate
num_errors = get_validation_errors(s, app)
File “/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/core/management/validation.py”, line 34, in get_validation_errors
for (app_name, error) in get_app_errors().items():
File “/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/db/models/loading.py”, line 196, in get_app_errors
self._populate()
File “/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/db/models/loading.py”, line 75, in _populate
self.load_app(app_name, True)
File “/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/db/models/loading.py”, line 99, in load_app
models = import_module(‘%s.models’ % app_name)
File “/usr/local/hue/build/env/lib/python2.7/site-packages/Django-1.6.10-py2.7.egg/django/utils/importlib.py”, line 40, in import_module
__import__(name)
File “/usr/local/hue/apps/impala/src/impala/models.py”, line 20, in
from beeswax.server.dbms import get_query_server_config
File “/usr/local/hue/apps/beeswax/src/beeswax/server/dbms.py”, line 29, in
from filebrowser.views import location_to_url
File “/usr/local/hue/apps/filebrowser/src/filebrowser/views.py”, line 24, in
import parquet
File “/usr/local/hue/build/env/lib/python2.7/site-packages/parquet-1.0-py2.7.egg/parquet/__init__.py”, line 19, in
import snappy
File “/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/snappy/__init__.py”, line 7, in
from .SnapPy import (AbelianGroup, HolonomyGroup, FundamentalGroup,
File “SnapPycore.pxi”, line 33, in init SnapPy (cython/SnapPy.c:88059)
File “/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cypari/__init__.py”, line 1, in
from . import all
File “/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/cypari/all.py”, line 1, in
from . import gen as _gen
File “gen.pyx”, line 10237, in init cypari_src.gen (cypari_src/gen.c:58713)
ValueError: signal only works in main thread -
OK – solved this problem – my pip installed version of cypari was conflicting with this.
I ran:
pip uninstall cypari
And then hue ran without issue.
-
Cannot find reference to error:
Failed to authenticate to HBase Thrift Server, check authentication configurations.43326 Jps
42672 DataNode
42784 SecondaryNameNode
43281 ThriftServer
43171 HRegionServer
42356 ResourceManager
43013 HQuorumPeer
42584 NameNode
43066 HMaster
42447 NodeManager-
You need to setup a HBase Thrift Server and have Hue point to it: http://gethue.com/the-web-ui-for-hbase-hbase-browser/
Then about security http://gethue.com/hbase-browsing-with-doas-impersonation-and-kerberos/
-
-
In the hue.ini there are several places where we need to enter hadoop installation directory but in your sample file you have commented out all those parameters. for e.g. hive_conf_dir etc. Does it mean that Hue ( installed on a remote server outside of hadoop cluster) doesn’t need any of the hadoop binaries ?
Thanks
-
Hue does needs this config file (hive-site.xml…) for guessing what type of authentication to use, if the Hadoop trash is activated etc.. without recreating a tun of Hue options.
In practice if you don’t use security you don’t need that.About the Hadoop binaries, they are not used at all since Hue 3. You can look at the up to date hue.ini, you will see they are gone:
https://github.com/cloudera/hue/blob/master/desktop/conf.dist/hue.ini#L625And yes, Hue can be put anywhere and still interact with the cluser, here is a presentation detailing it more: http://gethue.com/yahoo-hadoop-meetup-integrate-hue-with-your-hadoop-cluster/
-
-
I followed exactly all the steps but was not able to launch Hue when I typed – “http://localhost:8000” in the browser. But after changing port to 8888 I was successfully able to launch it. Is the URL mentioned in post incorrect?? and should be “http://localhost:8888”
-
If you type ./build/env/bin/hue runserver, it will be 8000 (dev version), if you type ./build/env/bin/hue runcpserver it will be 8888.
-
I typed ./build/env/bin/hue runserver as mentioned in the post but 8888 is working for me.
-
It works or it doesn’t? 🙂
-
8888 worked 🙂
Thought to post it if someone else facing same problem.
-
-
-
-
-
I use brew to install python2.7 and then have following error when ‘make apps’:
/work/hue/Makefile.vars:42: *** “Error: must have python development packages for 2.6 or 2.7. Could not find Python.h. Please install python2.6-devel or python2.7-devel”. Stop.
-
Which version of OS X do you have? Did you upgrade or install fresh? Have you exported the LDFLAGS for instance? You are probably hitting this: https://github.com/cloudera/hue/issues/251
-
-
it appears to build on El Capitan now, but when I try to run it, I get the following error:
[INFO] ————————————————————————
[INFO] Reactor Summary:
[INFO]
[INFO] livy-main …………………………………… SUCCESS [02:04 min]
[INFO] livy-core_2.10 ………………………………. SUCCESS [07:23 min]
[INFO] livy-repl_2.10 ………………………………. FAILURE [ 01:02 h]
[INFO] livy-yarn_2.10 ………………………………. SKIPPED
[INFO] livy-spark_2.10 ……………………………… SKIPPED
[INFO] livy-server_2.10 …………………………….. SKIPPED
[INFO] livy-assembly_2.10 …………………………… SKIPPED
[INFO] ————————————————————————
[INFO] BUILD FAILURE
[INFO] ————————————————————————
[INFO] Total time: 01:12 h
[INFO] Finished at: 2016-01-21T21:50:00+05:30
[INFO] Final Memory: 23M/47M
[INFO] ————————————————————————
[ERROR] Failed to execute goal on project livy-repl_2.10: Could not resolve dependencies for project com.cloudera.hue.livy:livy-repl_2.10:jar:0.2.0-SNAPSHOT: The following artifacts could not be resolved: org.scalanlp:breeze_2.10:jar:0.11.2, org.spire-math:spire_2.10:jar:0.7.4: Could not transfer artifact org.scalanlp:breeze_2.10:jar:0.11.2 from/to cloudera.snapshots.repo (https://repository.cloudera.com/content/repositories/snapshots): Failed to transfer file: https://repository.cloudera.com/content/repositories/snapshots/org/scalanlp/breeze_2.10/0.11.2/breeze_2.10-0.11.2.jar. Return code is: 409 , ReasonPhrase:Conflict. -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn -rf :livy-repl_2.10
make[2]: *** [/Users/ashu/Desktop/hue/hue/apps/spark/java-lib/livy-assembly.jar] Error 1
make[1]: *** [.recursive-egg-info/spark] Error 2
make: *** [apps] Error 2-
So it doesn’t build 🙂 Which version of Java do you have? What about Maven?
-
Thank you for the quick reply. 🙂
Java: Java SE 8 Update 71
Maven: 3.3.9-
I just tried with Maven 3.3.3 and Java 1.8.0_65-b17, on a freshly cloned master, with no ~/.m2 folder (so downloading all the mvn artifacts from scratch) and it works just fine. Probably a temporary glitch? Can you please clone master and try again (also with a clean .m2)?
-
-
-
-
After installing at home via
$ brew install hadoop
$ brew install openssl
$ export LDFLAGS=-L/usr/local/opt/openssl/lib && export CPPFLAGS=-I/usr/local/opt/openssl/include
at cd into hue directory$ make apps
/Users/seb/hue/Makefile.vars:42: *** “Error: must have python development packages for 2.6 or 2.7. Could not find Python.h. Please install python2.6-devel or python2.7-devel”. Stop.-
There is conversation on https://github.com/cloudera/hue/issues/251#issuecomment-176912915
-
-
Have to add
export SKIP_PYTHONDEV_CHECK=1
as @spaztic1215 pointed out, but still getting gmp error:
building ‘Crypto.PublicKey._fastmath’ extension
gcc -fno-strict-aliasing -I/Users/minminsanjose/anaconda/include -arch x86_64 -fwrapv -Wall -Wstrict-prototypes -I/usr/local/opt/openssl/include -std=c99 -O3 -fomit-frame-pointer -Isrc/ -I/usr/include/ -I/Users/seb/anaconda/include/python2.7 -c src/_fastmath.c -o build/temp.macosx-10.5-x86_64-2.7/src/_fastmath.o
src/_fastmath.c:36:11: fatal error: ‘gmp.h’ file not found
# include
^
1 error generated.
error: command ‘gcc’ failed with exit status 1
make[2]: *** [/Users/seb/hue/desktop/core/build/pycrypto-2.6.1/egg.stamp] Error 1
make[1]: *** [.recursive-env-install/core] Error 2-
This is a similar issue, how about http://stackoverflow.com/questions/25347054/install-gmp-library-on-mac-os-x-10-9-and-xcode ?
-
-
Hello I want to run hue on LAN or Wi-fi network. I have started hue server using following command : /build/env/bin/hue runserver in my local. It gets started on 8000 port. I also tried to run server on 8082 port(/build/env/bin/hue runserver 0.0.0.0:8082). It’s get started on my local. But When I open hue url using my IP in another machine or device which is connected in my LAN or Wi-fi, It’s not getting work.
I am accessing :8000 in another machine, which is connected to LAN. But It’s not working.It’s only working in my local. Can you please help me ?
-
What is the public/external IP of the machine running Hue?
You indeed need to start Hue there with 0.0.0.0:8082 and then access it from anywhere the IP is accessible with ip.hue.machine:8082If you can’t ping ip.hue.machine, check your firewall rules
-
-
Hi,
While executing — make apps, I get the following error —
[INFO] BUILD SUCCESS
[INFO] ————————————————————————
[INFO] Total time: 0.486 s
[INFO] Finished at: 2016-03-22T12:29:22-07:00
[INFO] Final Memory: 8M/245M
[INFO] ————————————————————————
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C core env-install
— Building egg for MySQL-python-1.2.5
running bdist_egg
running egg_info
writing MySQL_python.egg-info/PKG-INFO
writing top-level names to MySQL_python.egg-info/top_level.txt
writing dependency_links to MySQL_python.egg-info/dependency_links.txt
reading manifest file ‘MySQL_python.egg-info/SOURCES.txt’
reading manifest template ‘MANIFEST.in’
writing manifest file ‘MySQL_python.egg-info/SOURCES.txt’
installing library code to build/bdist.macosx-10.11-intel/egg
running install_lib
running build_py
copying MySQLdb/release.py -> build/lib.macosx-10.11-intel-2.7/MySQLdb
running build_ext
building ‘_mysql’ extension
cc -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -Dversion_info=(1,2,5,’final’,1) -D__version__=1.2.5 -I/Applications/XAMPP/xamppfiles/include/mysql -I/Applications/XAMPP/xamppfiles/include/mysql/.. -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _mysql.c -o build/temp.macosx-10.11-intel-2.7/_mysql.o
_mysql.c:44:10: fatal error: ‘my_config.h’ file not found
#include “my_config.h”
^
1 error generated.
error: command ‘cc’ failed with exit status 1
make[2]: *** [/Users//Servers/hue/desktop/core/build/MySQL-python-1.2.5/egg.stamp] Error 1
make[1]: *** [.recursive-env-install/core] Error 2
make: *** [desktop] Error 2-
It looks like your system is picking up the wrong MySql files, the ones you have shipped with XAMPP
-
How do we make the system pick the right one?
-
-
-
Hello. I’m getting the error when I run make apps command.
cd /Users/01013875/apache_dev/hue/maven && mvn install
[INFO] Scanning for projects…
[INFO]
[INFO] ————————————————————————
[INFO] Building Hue Maven Parent POM 3.9.0-SNAPSHOT
[INFO] ————————————————————————
[INFO]
[INFO] — maven-enforcer-plugin:1.0:enforce (default) @ hue-parent —
[INFO]
[INFO] — maven-install-plugin:2.4:install (default-install) @ hue-parent —
[INFO] Installing /Users/01013875/apache_dev/hue/maven/pom.xml to /Users/01013875/.m2/repository/com/cloudera/hue/hue-parent/3.9.0-SNAPSHOT/hue-parent-3.9.0-SNAPSHOT.pom
[INFO] ————————————————————————
[INFO] BUILD SUCCESS
[INFO] ————————————————————————
[INFO] Total time: 0.544 s
[INFO] Finished at: 2016-03-23T15:05:15+09:00
[INFO] Final Memory: 9M/309M
[INFO] ————————————————————————
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C core env-install
/bin/bash: /Users/01013875/apache_dev/hue/build/env/bin/o such file or directory
/bin/bash: 31mpython2.7: command not found
/bin/bash: /Users/01013875/apache_dev/hue/build/env/bin/o such file or directory
/bin/bash: 31mpython2.7: command not found
/bin/bash: /Users/01013875/apache_dev/hue/build/env/bin/o such file or directory
/bin/bash: 31mpython2.7: command not found
/bin/bash: /Users/01013875/apache_dev/hue/build/env/bin/o such file or directory
/bin/bash: 31mpython2.7: command not found
/bin/bash: /Users/01013875/apache_dev/hue/build/env/bin/o such file or directory
/bin/bash: 31mpython2.7: command not found
/bin/bash: /Users/01013875/apache_dev/hue/build/env/bin/o such file or directory
/bin/bash: 31mpython2.7: command not found
/bin/bash: /Users/01013875/apache_dev/hue/build/env/bin/o such file or directory
/bin/bash: 31mpython2.7: command not found
/bin/bash: /Users/01013875/apache_dev/hue/build/env/bin/o such file or directory
/bin/bash: 31mpython2.7: command not found
— Building egg for cryptography-1.1.1
/bin/bash: /Users/01013875/apache_dev/hue/build/env/bin/o such file or directory
/bin/bash: 31mpython2.7: command not found
make[2]: *** [/Users/01013875/apache_dev/hue/desktop/core/build/cryptography-1.1.1/egg.stamp] Error 127
make[1]: *** [.recursive-env-install/core] Error 2
make: *** [desktop] Error 2Please give me some advice.
-
Hi,
how can I fix the issue:
ImportError: dlopen(/Users/hadoop/hue-3.9.0/build/env/lib/python2.7/site-packages/lxml-2.2.2-py2.7-macosx-10.5-x86_64.egg/lxml/etree.so, 2): Library not loaded: libxml2.2.dylib
Referenced from: /Users/hadoop/hue-3.9.0/build/env/lib/python2.7/site-packages/lxml-2.2.2-py2.7-macosx-10.5-x86_64.egg/lxml/etree.so
Reason: Incompatible library version: etree.so requires version 12.0.0 or later, but libxml2.2.dylib provides version 10.0.0I already updated the lxml library:
Requirement already up-to-date: lxml in /Users/hadoop/anaconda/lib/python2.7/site-packages
-
Hi, have you tried with
conda install -f lxml
or
brew install libxml2
brew install libxslt
brew link libxml2 --force
brew link libxslt --force
-
Hi,
I’ve updated already before, but maybe the links were missing:
This formula is keg-only, which means it was not symlinked into /usr/local.
I will check if the brew link command will help.
-
It seems like we would need to upgrade
both cffi 1.5.2 + crypto 1.3.1
of https://github.com/cloudera/hue/tree/master/desktop/core/ext-py
Will have a patch
-
-
-
-
Hi,
I get the error below. Is there a solution? Many thanks.
building ‘_openssl’ extension
cc -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -I/usr/local/opt/openssl/include -arch i386 -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c build/temp.macosx-10.11-intel-2.7/_openssl.c -o build/temp.macosx-10.11-intel-2.7/build/temp.macosx-10.11-intel-2.7/_openssl.o
build/temp.macosx-10.11-intel-2.7/_openssl.c:718:6: error: conflicting types for
‘BIO_new_mem_buf’
BIO *BIO_new_mem_buf(void *, int);
^
/usr/local/opt/openssl/include/openssl/bio.h:692:6: note: previous declaration
is here
BIO *BIO_new_mem_buf(const void *buf, int len);
^
build/temp.macosx-10.11-intel-2.7/_openssl.c:2524:25: warning: shifting a
negative signed value is undefined [-Wshift-negative-value]
((time_t)-1) << 0 /* check that time_t is an integer type */
~~~~~~~~~~~~ ^
build/temp.macosx-10.11-intel-2.7/_openssl.c:394:22: note: expanded from macro
'_cffi_prim_int'
((size) == 1 ? ((sign) ? _CFFI_PRIM_INT8 : _CFFI_PRIM_UINT8) : \
^~~~
build/temp.macosx-10.11-intel-2.7/_openssl.c:13:73: note: expanded from macro
'_CFFI_OP'
…arg) (_cffi_opcode_t)(opcode | (((uintptr_t)(arg)) << 8))
^~~
build/temp.macosx-10.11-intel-2.7/_openssl.c:2524:25: warning: shifting a
negative signed value is undefined [-Wshift-negative-value]
((time_t)-1) << 0 /* check that time_t is an integer type */
~~~~~~~~~~~~ ^
build/temp.macosx-10.11-intel-2.7/_openssl.c:395:22: note: expanded from macro
'_cffi_prim_int'
(size) == 2 ? ((sign) ? _CFFI_PRIM_INT16 : _CFFI_PRIM_UINT16) : \
^~~~
build/temp.macosx-10.11-intel-2.7/_openssl.c:13:73: note: expanded from macro
'_CFFI_OP'
…arg) (_cffi_opcode_t)(opcode | (((uintptr_t)(arg)) << 8))
^~~
build/temp.macosx-10.11-intel-2.7/_openssl.c:2524:25: warning: shifting a
negative signed value is undefined [-Wshift-negative-value]
((time_t)-1) << 0 /* check that time_t is an integer type */
~~~~~~~~~~~~ ^
build/temp.macosx-10.11-intel-2.7/_openssl.c:396:22: note: expanded from macro
'_cffi_prim_int'
(size) == 4 ? ((sign) ? _CFFI_PRIM_INT32 : _CFFI_PRIM_UINT32) : \
^~~~
build/temp.macosx-10.11-intel-2.7/_openssl.c:13:73: note: expanded from macro
'_CFFI_OP'
…arg) (_cffi_opcode_t)(opcode | (((uintptr_t)(arg)) << 8))
^~~
build/temp.macosx-10.11-intel-2.7/_openssl.c:2524:25: warning: shifting a
negative signed value is undefined [-Wshift-negative-value]
((time_t)-1) << 0 /* check that time_t is an integer type */
~~~~~~~~~~~~ ^
build/temp.macosx-10.11-intel-2.7/_openssl.c:397:22: note: expanded from macro
'_cffi_prim_int'
(size) == 8 ? ((sign) ? _CFFI_PRIM_INT64 : _CFFI_PRIM_UINT64) : \
^~~~
build/temp.macosx-10.11-intel-2.7/_openssl.c:13:73: note: expanded from macro
'_CFFI_OP'
…arg) (_cffi_opcode_t)(opcode | (((uintptr_t)(arg)) << 8))
^~~
4 warnings and 1 error generated.
error: command 'cc' failed with exit status 1
make[2]: *** [/Users/dev/SourceFiles/hue/desktop/core/build/cryptography-1.1.1/egg.stamp] Error 1
make[1]: *** [.recursive-env-install/core] Error 2
make: *** [desktop] Error 2-
Hi, we are aware of a temporary problem on Macs, it’s due to two conflicting Python libraries we use. Working on a fix, sorry!
-
Any update for this issue?
-
It was fixed in https://issues.cloudera.org/browse/HUE-3501
-
-
-
-
Hi,
Running make apps results in a successful build. But in the end it gives the following error:
make[2]: *** [/Users/ather/development/hue/desktop/libs/hadoop/java-lib/hue-plugins–SNAPSHOT.jar] Error 1
make[1]: *** [.recursive-env-install/libs/hadoop] Error 2
make: *** [desktop] Error 2I am running hue on El Capitan
-
Sometimes it fails there when the Maven repos are down. Do you still have the issue now? Do you have more info about the error?
-
-
I get the splash screen for UN and PW, but what I enter doesn’t work???
-
Does it say that the first user will be created? (so, with a yellow alert on the screen?)
-
-
Hi, I get an error below, Can you help me?
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py”, line 384, in read
data = self._sock.recv(left)
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py”, line 734, in recv
return self.read(buflen)
File “/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py”, line 621, in read
v = self._sslobj.read(len or 1024)
ssl.SSLError: (‘The read operation timed out’,)
make[2]: *** [/usr/local/share/hue-master/desktop/core/build/cryptography-1.3.1/egg.stamp] Error 1
make[1]: *** [.recursive-env-install/core] Error 2
make: *** [desktop] Error 2-
While running it or when doing make apps? Do you have all the pre-requisites?
-
When doing make apps! Yes, I am sure I have all the pre-requisites. It is for El Capitan, I also have done Step 3b (just for El Capitan): export ENV variables for openssl
-
It is the libffi package:
Package libffi was not found in the pkg-config search path.
Perhaps you should add the directory containing `libffi.pc’
to the PKG_CONFIG_PATH environment variable
-
-
-
-
I changed directories to the hue folder and executed “make apps”, but it tells me something is missing:
MacBook-Air:hue macEv$ make apps
— Creating virtual environment at /Users/Ev/Documents/Projecthue/hue/build/env
python2.7 /Users/Ev/Documents/Projecthue/hue/tools/virtual-bootstrap/virtual-bootstrap.py \
-qq –system-site-packages /Users/Ev/Documents/Projecthue/hue/build/env
/System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python: can’t open file ‘/Users/Ev/Documents/Projecthue/hue/tools/virtual-bootstrap/virtual-bootstrap.py’: [Errno 2] No such file or directory
make: *** [/Users/Ev/Documents/Projecthue/hue/build/env/stamp] Error 2Please help 🙂
-
Did you install all the prerequisites?
-
-
I was trying to run ‘make apps’ from cd hue/ but I get the error (42: *** “Error: must have python development packages for 2.6 or 2.7. Could not find Python.h. Please install python2.6-devel or python2.7-devel”. Stop.)
I made sure I installed python using ‘brew install python’ but still it gave me the same error. Trying to install a local standalone version on OSX El Capitan. -
Got this erro,how to fix this? please help me!!!
Download error on https://pypi.python.org/simple/logilab-astng/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) — Some packages may not be found!
Download error on https://pypi.python.org/simple/: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590) — Some packages may not be found!
No local packages or download links found for logilab-astng>=0.24.3-
You might find an answer here: http://stackoverflow.com/questions/25981703/pip-install-fails-with-connection-error-ssl-certificate-verify-failed-certi
-
-
Not sure why i’m getting this error:
A server error occurred. Please contact the administrator.
-
After doing what? Which logs do you have?
-
That error occurs when I go to the browser and type in http://127.0.0.1:8000
-
Do you have any logs/errors in the command line where you started Hue?
-
-
-
-
Build fails on OS X El Capitan 10.11.6 with this error
Traceback (most recent call last):
File “/Users/ankur/Downloads/hue-3.11.0/build/env/bin/hue”, line 9, in
load_entry_point(‘desktop==3.11.0’, ‘console_scripts’, ‘hue’)()
File “/Users/ankur/Downloads/hue-3.11.0/desktop/core/src/desktop/manage_entry.py”, line 59, in entry
..
..
import _saslwrapper
ImportError: dlopen(/Users/ankur/Downloads/hue-3.11.0/build/env/lib/python2.7/site-packages/sasl-0.1.1-py2.7-macosx-10.11-x86_64.egg/_saslwrapper.so, 2): no suitable image found. Did find:
/Users/ankur/Downloads/hue-3.11.0/build/env/lib/python2.7/site-packages/sasl-0.1.1-py2.7-macosx-10.11-x86_64.egg/_saslwrapper.so: mach-o, but wrong architecture -
Hi, I’m trying to install hue in Mac OS X El-Capitan. But it get this message.
— Creating virtual environment at /Users/julius/Documents/Development/hue/hue/build/env
python2.7 /Users/julius/Documents/Development/hue/hue/tools/virtual-bootstrap/virtual-bootstrap.py \
-qq –system-site-packages /Users/julius/Documents/Development/hue/hue/build/env
Traceback (most recent call last):
File “/Users/julius/Documents/Development/hue/hue/tools/virtual-bootstrap/virtual-bootstrap.py”, line 2355, in
main()
File “/Users/julius/Documents/Development/hue/hue/tools/virtual-bootstrap/virtual-bootstrap.py”, line 827, in main
symlink=options.symlink)
File “/Users/julius/Documents/Development/hue/hue/tools/virtual-bootstrap/virtual-bootstrap.py”, line 995, in create_environment
install_wheel(to_install, py_executable, search_dirs)
File “/Users/julius/Documents/Development/hue/hue/tools/virtual-bootstrap/virtual-bootstrap.py”, line 963, in install_wheel
‘PIP_NO_INDEX’: ‘1’
File “/Users/julius/Documents/Development/hue/hue/tools/virtual-bootstrap/virtual-bootstrap.py”, line 905, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command /Users/cornelisdanie…build/env/bin/python -c “import sys, pip; sys…d\”] + sys.argv[1:]))” setuptools pip failed with error code 1
make: *** [/Users/julius/Documents/Development/hue/hue/build/env/stamp] Error 1Can I get some help here ?
Thank you.Julius
-
Author
Are you sure all the dependencies were installed?
-
-
Hi,
I am running latest Mac OS Sierra.
I am following all the steps. But I am getting openssl error.
In El Capitan I was not facing this error (that export command helped, But it is not helping for Mac OS Sierra).
ERROR LOG:
building ‘_openssl’ extension
cc -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c build/temp.macosx-10.12-intel-2.7/_openssl.c -o build/temp.macosx-10.12-intel-2.7/build/temp.macosx-10.12-intel-2.7/_openssl.o
build/temp.macosx-10.12-intel-2.7/_openssl.c:433:10: fatal error:
‘openssl/e_os2.h’ file not found
#include
^
1 error generated.
error: command ‘cc’ failed with exit status 1
make[2]: *** [/usr/local/hue/desktop/core/build/cryptography-1.3.1/egg.stamp] Error 1
make[1]: *** [.recursive-env-install/core] Error 2
make: *** [desktop] Error 2-
Author
We just tried on a fresh macOS Sierra installation and it works adding the same export commands of El Capitan. Have you installed Sierra fresh or upgraded from El Capitan? If the latter, you might have to refresh homebrew and fix the installation of the previous packages you had installed in your machine (ie. brew install openssl && brew link openssl –force)
-
-
Got the same error as previous users.
*** [/Users/user/github/hue/desktop/core/build/cryptography-1.3.1/egg.stamp] Error 1
make[1]: *** [.recursive-env-install/core] Error 2Make followed all steps. have the latest mac osx.
-
brew install –force openssl && brew link openssl
Warning: openssl-1.0.2j already installed, it’s just not linked.
Warning: Refusing to link: openssl
Linking keg-only openssl means you may end up linking against the insecure,
deprecated system OpenSSL while using the headers from Homebrew’s openssl.
Instead, pass the full include/library paths to your compiler e.g.:
-I/usr/local/opt/openssl/include -L/usr/local/opt/openssl/libThis my error while trying to intsal openssl.
-
Author
Hi,
isexport LDFLAGS=-L/usr/local/opt/openssl/lib && export CPPFLAGS=-I/usr/local/opt/openssl/include
in your ~/.bash_profile ?
-
-
Yes, I did that and I still get the same error.
-
I needed more settings
export CPFLAGS=”-I/usr/local/include/gmp.h -I/usr/local/opt/openssl/include”
export CFLAGS=”-I/usr/local/include/gmp.h”
export CXXFLAGS=”-I/usr/local/include/gmp.h”
export LDFLAGS=”-L/usr/local/lib -L/usr/local/opt/openssl/lib”
export PKG_CONFIG_PATH=”/usr/local/opt/openssl/lib/pkgconfig”-
Author
This might help other users too, thanks for sharing!
-
-
Hi,
Sorry for the question, I tried to set up everything in a mac, but while starting Hue getting the following error, any help please?
WebHdfsException at /home
HTTPConnectionPool(host=’quickstart.cloudera’, port=50070): Max retries exceeded with url: /webhdfs/v1/user/dhitado?op=GETFILESTATUS&user.name=hue&doas=dhitado (Caused by NewConnectionError(‘: Failed to establish a new connection: [Errno 60] Operation timed out’,))
Request Method: GET
Request URL: http://localhost:8000/home
Django Version: 1.6.10
Exception Type: WebHdfsException
Exception Value:
HTTPConnectionPool(host=’quickstart.cloudera’, port=50070): Max retries exceeded with url: /webhdfs/v1/user/dhitado?op=GETFILESTATUS&user.name=hue&doas=dhitado (Caused by NewConnectionError(‘: Failed to establish a new connection: [Errno 60] Operation timed out’,))
Exception Location: /Users/dhitado/Big_Data/hue/desktop/libs/hadoop/src/hadoop/fs/webhdfs.py in _stats, line 242
Python Executable: /Users/dhitado/Big_Data/hue/build/env/bin/python2.7
Python Version: 2.7.10
Python Path:Thanks in advance
-
Author
That means that HDFS is not running… did you follow all the steps? Including the VM?
-
I think I followed all steps, should I repeat all of them??
About the steps for the VM, probably I don;t know if I missed one. I picked up the official Quickstart VM from Cloudera, then after install everything I update the config file and then Configure the /etc/hosts.
Is there something i missed?
Thanks in advance
-
Author
Is the Virtual Machine running fine? Can you use Hue inside that VM? Can you ping quickstart.cloudera from your machine?
-
Hi,
Now I rerun everything but when quick start is running having this issues:
Quick Start Wizard – Hue™ 3.12.0 – The Hadoop UI
Step 1: Check Configuration
Step 2: Examples
Step 3: Users
Step 4: Go!
Checking current configuration
Configuration files located in /Users/dhitado/Big_Data/hue/desktop/confPotential misconfiguration detected. Fix and restart Hue.
hadoop.hdfs_clusters.default.webhdfs_url Current value: http://quickstart.cloudera:50070/webhdfs/v1
Failed to access filesystem root
Resource Manager Failed to contact an active Resource Manager: YARN RM returned a failed response: HTTPConnectionPool(host=’quickstart.cloudera’, port=8088): Max retries exceeded with url: /ws/v1/cluster/apps?user=dhitado&user.name=hue&doAs=dhitado (Caused by NewConnectionError(‘: Failed to establish a new connection: [Errno 60] Operation timed out’,))
Hive Failed to access Hive warehouse: /user/hive/warehouse
HBase Browser The application won’t work without a running HBase Thrift Server v1.
Impala No available Impalad to send queries to.
Oozie Editor/Dashboard The app won’t work without a running Oozie server
Pig Editor The app won’t work without a running Oozie server
Spark The app won’t work without a running Livy Spark ServerCheers
-
Author
From the machine where you are running Hue, try to open in a browser this URL: http://quickstart.cloudera:50070/webhdfs/v1
What do you see? -
Hi,
When I try to open http://quickstart.cloudera:50070/webhdfs/v1, it says unable to connect to it..
-
Author
It means that either you Cloudera VM is not running or you haven’t configured your host file to resolve quickstart.cloudera to the VM IP……
-
-
-
-
-
I tried to install Hue on a mac with the following error during make apps process, any help?, I follow all the steps, my java version is 1.8.0_101, and python 2.7:
— Creating virtual environment at /usr/local/Cellar/hue/build/env
python2.7 /usr/local/Cellar/hue/tools/virtual-bootstrap/virtual-bootstrap.py \
-qq –system-site-packages /usr/local/Cellar/hue/build/env
Traceback (most recent call last):
File “/usr/local/Cellar/hue/tools/virtual-bootstrap/virtual-bootstrap.py”, line 2355, in
main()
File “/usr/local/Cellar/hue/tools/virtual-bootstrap/virtual-bootstrap.py”, line 827, in main
symlink=options.symlink)
File “/usr/local/Cellar/hue/tools/virtual-bootstrap/virtual-bootstrap.py”, line 995, in create_environment
install_wheel(to_install, py_executable, search_dirs)
File “/usr/local/Cellar/hue/tools/virtual-bootstrap/virtual-bootstrap.py”, line 963, in install_wheel
‘PIP_NO_INDEX’: ‘1’
File “/usr/local/Cellar/hue/tools/virtual-bootstrap/virtual-bootstrap.py”, line 905, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command /usr/local/Cellar/hue/build/env/bin/python2.7 -c “import sys, pip; sys…d\”] + sys.argv[1:]))” setuptools pip failed with error code 1
make: *** [/usr/local/Cellar/hue/build/env/stamp] Error 1-
Author
Hi! Why are you doing ‘make apps’ inside the homebrew folder? Can you try somewhere else?
-
-
Hello!
I followed the above steps and installed the Hue on my Macbook but I have a problem. When I try to upload a file I get the following error. I can’t even create an empty file.
Error: HTTPConnectionPool(host=’quickstart.cloudera’, port=50075): Max retries exceeded with url: /webhdfs/v1/user/christi_dar/Yelp%20Dataset/yelp_academic_dataset_business.json.tmp?op=CREATE&doas=christi_dar&user.name=hue&namenoderpcaddress=quickstart.cloudera:8020&overwrite=false&permission=644 (Caused by NewConnectionError(‘: Failed to establish a new connection: [Errno 60] Operation timed out’,))Please, I need your help!
Thanks in advance!
-
Author
If you open the Hue about page (/about), does it list some problems in the configuration? Looks like your instance can’t communicate with the VM.
-
Thanks for your quick reply!
Yes, it lists the following problems in the configuration.
hadoop.hdfs_clusters.default.webhdfs_url Current value: http://localhost:50070/webhdfs/v1
Failed to create temporary file “/tmp/hue_config_validation.10213546762786837855”
desktop.secret_key Current value:
Secret key should be configured as a random string. All sessions will be lost on restart
SQLITE_NOT_FOR_PRODUCTION_USE SQLite is only recommended for development environments. It might cause the “Database is locked” error. Migrating to MySQL, Oracle or PostgreSQL is strongly recommended.
OOZIE_EMAIL_SERVER Email notifications is disabled for Workflows and Jobs as SMTP server is localhost.
HBase Browser The application won’t work without a running HBase Thrift Server v1.
Hadoop Security: Sentry Service Failed to connect to Sentry API (version 1).
Hadoop Security: Sentry Service Failed to connect to Sentry API (version 2).
Spark The app won’t work without a running Livy Spark Server-
Author
Did you follow all the steps when setting up the environment? 🙂 You have to change your configuration file to point to the VM (quickstart.cloudera) instead of localhost…
-
-
-
-
I have copied the configuration file over to my hue/desktop/conf folder and I have done exactly what it says in step 5. Is anything else I should do? :/
-
Author
Weird… have you restarted Hue? What if you do
ping quickstart.cloudera
in your terminal on the Mac?-
Yes, I have restarted Hue and Mac.
I did ping quickstart.cloudera in my terminal on the Mac and the result:
PING quickstart.cloudera (10.0.2.15): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
Request timeout for icmp_seq 2
Request timeout for icmp_seq 3
Request timeout for icmp_seq 4
Request timeout for icmp_seq 5….. and still goes on-
Author
Uhm.. and from your browser, what does http://quickstart.cloudera:50070/webhdfs/v1 show?
-
It doesn’t show anything, it cannot open the page. Have I done any mistake with the installation of the vm?
-
Author
If the VM is running, it seems than that you put the wrong VM ip in your /etc/hosts file
-
-
-
-
-
System Version: macOS 10.12.5 (16F73)
Kernel Version: Darwin 16.6.0
Python 2.7.13I tried on a virtualenv and outside the virtualenv 🙁
creating dist
creating ‘dist/configobj-4.6.0-py2.7.egg’ and adding ‘build/bdist.macosx-10.12-x86_64/egg’ to it
removing ‘build/bdist.macosx-10.12-x86_64/egg’ (and everything under it)
— Building egg for cryptography-1.3.1
Traceback (most recent call last):
File “”, line 1, in
File “/Users/user/Documents/eventbrite/hue/build/env/lib/python2.7/site-packages/setuptools/sandbox.py”, line 238, in run_setup
raise
File “/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/contextlib.py”, line 35, in __exit__
self.gen.throw(type, value, traceback)
File “/Users/user/Documents/eventbrite/hue/build/env/lib/python2.7/site-packages/setuptools/sandbox.py”, line 191, in setup_context
yield
File “/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/contextlib.py”, line 35, in __exit__
self.gen.throw(type, value, traceback)
File “/Users/user/Documents/eventbrite/hue/build/env/lib/python2.7/site-packages/setuptools/sandbox.py”, line 162, in save_modules
saved_exc.resume()
File “/Users/user/Documents/eventbrite/hue/build/env/lib/python2.7/site-packages/setuptools/sandbox.py”, line 136, in resume
type, exc = map(pickle.loads, self._saved)
File “/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py”, line 1388, in loads
return Unpickler(file).load()
File “/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py”, line 864, in load
dispatch[key](self)
File “/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py”, line 1096, in load_global
klass = self.find_class(module, name)
File “/usr/local/Cellar/python/2.7.13/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py”, line 1130, in find_class
__import__(module)
ImportError: No module named cffi.api
make[2]: *** [/Users/user/Documents/eventbrite/hue/desktop/core/build/cryptography-1.3.1/egg.stamp] Error 1
make[1]: *** [.recursive-env-install/core] Error 2
make: *** [desktop] Error 2-
Author
The problem is that the build is using your brew installed python instead of the default one. You can try to uninstall it via: brew uninstall python
-
-
My system info :
”
mvn -v
Apache Maven 3.5.2 (138edd61fd100ec658bfa2d307c43b76940a5d7d; 2017-10-18T15:58:13+08:00)
Maven home: /usr/local/Cellar/maven/3.5.2/libexec
Java version: 9, vendor: Oracle Corporation
Java home: /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home
Default locale: en_HK, platform encoding: UTF-8
OS name: “mac os x”, version: “10.12.6”, arch: “x86_64”, family: “Mac””
I followed this tutorials and failed when “make app” with some error as below:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-enforcer-plugin:1.0:enforce (default) on project hue-parent: Execution default of goal org.apache.maven.plugins:maven-enforcer-plugin:1.0:enforce failed: An API incompatibility was encountered while executing org.apache.maven.plugins:maven-enforcer-plugin:1.0:enforce: java.lang.ExceptionInInitializerError: null
[ERROR] —————————————————–
[ERROR] realm = plugin>org.apache.maven.plugins:maven-enforcer-plugin:1.0
[ERROR] strategy = org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy
[ERROR] urls[0] = file:/Users/zhangbao/.m2/repository/org/apache/maven/plugins/maven-enforcer-plugin/1.0/maven-enforcer-plugin-1.0.jar
[ERROR] urls[1] = file:/Users/zhangbao/.m2/repository/org/apache/maven/reporting/maven-reporting-api/2.0.9/maven-reporting-api-2.0.9.jar
[ERROR] urls[2] = file:/Users/zhangbao/.m2/repository/org/apache/maven/doxia/doxia-sink-api/1.0-alpha-10/doxia-sink-api-1.0-alpha-10.jar
[ERROR] urls[3] = file:/Users/zhangbao/.m2/repository/commons-cli/commons-cli/1.0/commons-cli-1.0.jar
[ERROR] urls[4] = file:/Users/zhangbao/.m2/repository/org/codehaus/plexus/plexus-interactivity-api/1.0-alpha-4/plexus-interactivity-api-1.0-alpha-4.jar
[ERROR] urls[5] = file:/Users/zhangbao/.m2/repository/org/codehaus/plexus/plexus-utils/1.5.8/plexus-utils-1.5.8.jar
[ERROR] urls[6] = file:/Users/zhangbao/.m2/repository/commons-lang/commons-lang/2.3/commons-lang-2.3.jar
[ERROR] urls[7] = file:/Users/zhangbao/.m2/repository/org/apache/maven/enforcer/enforcer-api/1.0/enforcer-api-1.0.jar
[ERROR] urls[8] = file:/Users/zhangbao/.m2/repository/org/apache/maven/enforcer/enforcer-rules/1.0/enforcer-rules-1.0.jar
[ERROR] urls[9] = file:/Users/zhangbao/.m2/repository/org/apache/maven/shared/maven-common-artifact-filters/1.2/maven-common-artifact-filters-1.2.jar
[ERROR] urls[10] = file:/Users/zhangbao/.m2/repository/org/beanshell/bsh/2.0b4/bsh-2.0b4.jar
[ERROR] urls[11] = file:/Users/zhangbao/.m2/repository/org/apache/maven/shared/maven-dependency-tree/1.2/maven-dependency-tree-1.2.jar
[ERROR] urls[12] = file:/Users/zhangbao/.m2/repository/org/codehaus/plexus/plexus-i18n/1.0-beta-6/plexus-i18n-1.0-beta-6.jar
[ERROR] Number of foreign imports: 1
[ERROR] import: Entry[import from realm ClassRealm[maven.api, parent: null]]
[ERROR]
[ERROR] —————————————————–
[ERROR] : begin 0, end 3, length 1
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginContainerException
make: *** [parent-pom] Error 1-
Author
Hi Mike,
we added the support for building with Java 9 recently: https://github.com/cloudera/hue/commit/35511ae67bf3c8b6cd34811c39e5850e7dc2bd91 -
File “/usr/local/Cellar/python/2.7.14_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py”, line 1096, in load_global
klass = self.find_class(module, name)
File “/usr/local/Cellar/python/2.7.14_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/pickle.py”, line 1130, in find_class
__import__(module)
ImportError: No module named cffi.api
make[2]: *** [/Users/echo/project/hue/desktop/core/build/cryptography-1.3.1/egg.stamp] Error 1-
Author
Do you have all the pre-requisites (installed with Homebrew)? Do you have an older version of Hue already installed?
-
-
-
Getting the following error when I click Create Account.
Exception Value:
no such table: useradmin_userprofile-
Author
Could you run the ‘hue migrate’ or ‘make apps’ again?
-