Start developing Hue on a Mac in a few minutes!

Start developing Hue on a Mac in a few minutes!

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!

Screenshot 2015-03-24 09.11.26

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 …”.

Screenshot 2015-03-24 09.09.20

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

Screenshot 2015-03-24 08.56.33

(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! 🙂

Screenshot 2015-03-23 13.35.34

 

As usual feel free to comment on the hue-user list or @gethue!

86 Comments

  1. Sherry 2 years ago

    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

  2. Hue Team 2 years ago

    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

  3. Bob Brooks 2 years ago

    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

    • Hue Team 2 years ago

      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!

  4. Vishant 2 years ago

    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?

  5. Ram Modepalli 2 years ago

    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.

    • Hue Team 2 years ago

      You are in the Hue folder, right?

      • Ram Modepalli 2 years ago

        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

        • Hue Team 2 years ago

          Please upgrade your Java version and make sure you have Maven3 installed (and the other requirements too)

  6. Rex 2 years ago

    Cloudera VM already contains the HUE. Why should we build Hue again by ourselves?

    • Hue Team 2 years ago

      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

  7. Rex 2 years ago

    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.ini

    Is there any more detailed documentation or step-by-step tutorial?

  8. Kristina Faith Cruz 1 year ago

    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.

    • Hue Team 1 year ago

      “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!

      • Kristina Faith Cruz 1 year ago

        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?

        • Hue Team 1 year ago

          Hello Kristina,

          Did you run “make apps” before running “./build/env/bin/hue runserver”?

  9. Jose 1 year ago

    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

    • Hue Team 1 year ago

      It was probably a temporary network problem, all is good now 🙂

  10. RP 1 year ago

    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 mode

    I 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

    • Hue Team 1 year ago

      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

  11. RP 1 year ago

    Great! Thank you for the very quick reply 🙂

  12. RP 1 year ago

    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”

  13. RP 1 year ago

    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

  14. RP 1 year ago

    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.

  15. wr 1 year ago

    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

  16. PK 1 year ago

    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

  17. Rohit 1 year ago

    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”

    • Hue Team 1 year ago

      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.

      • Rohit 1 year ago

        I typed ./build/env/bin/hue runserver as mentioned in the post but 8888 is working for me.

        • Hue Team 1 year ago

          It works or it doesn’t? 🙂

          • Rohit 1 year ago

            8888 worked 🙂
            Thought to post it if someone else facing same problem.

  18. Hans 1 year ago

    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.

  19. paypal 1 year ago

    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

    • Hue Team 1 year ago

      So it doesn’t build 🙂 Which version of Java do you have? What about Maven?

      • paypal 1 year ago

        Thank you for the quick reply. 🙂
        Java: Java SE 8 Update 71
        Maven: 3.3.9

        • Hue Team 1 year ago

          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)?

  20. Sebastian Cheung 1 year ago

    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.

  21. Sebastian Cheung 1 year ago

    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

  22. Hardik Patel 12 months ago

    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 ?

    • Hue Team 12 months ago

      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:8082

      If you can’t ping ip.hue.machine, check your firewall rules

  23. Rohan 11 months ago

    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

    • Hue Team 11 months ago

      It looks like your system is picking up the wrong MySql files, the ones you have shipped with XAMPP

      • Romain Ducrocq 11 months ago

        How do we make the system pick the right one?

  24. KO 11 months ago

    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 2

    Please give me some advice.

  25. Gerd 11 months ago

    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.0

    I already updated the lxml library:

    Requirement already up-to-date: lxml in /Users/hadoop/anaconda/lib/python2.7/site-packages

    • Hue Team 11 months ago

      Hi, have you tried with
      conda install -f lxml
      or

      brew install libxml2
      brew install libxslt
      brew link libxml2 --force
      brew link libxslt --force

      • Gerd Jährling 11 months ago

        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.

  26. Nicolas Smith 11 months ago

    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

    • Hue Team 11 months ago

      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!

  27. ather 10 months ago

    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 2

    I am running hue on El Capitan

    • Hue Team 10 months ago

      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?

  28. joseph 10 months ago

    I get the splash screen for UN and PW, but what I enter doesn’t work???

    • Hue Team 10 months ago

      Does it say that the first user will be created? (so, with a yellow alert on the screen?)

  29. Abraham Zhang 10 months ago

    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

    • Hue Team 10 months ago

      While running it or when doing make apps? Do you have all the pre-requisites?

      • Abraham Zhang 10 months ago

        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

        • Abraham Zhang 10 months ago

          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

  30. Evniko 10 months ago

    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 2

    Please help 🙂

    • Hue Team 10 months ago

      Did you install all the prerequisites?

  31. Aya 9 months ago

    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.

  32. cx 8 months ago

    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

  33. Josh 8 months ago

    Not sure why i’m getting this error:

    A server error occurred. Please contact the administrator.

    • Hue Team 8 months ago

      After doing what? Which logs do you have?

      • Josh 8 months ago

        That error occurs when I go to the browser and type in http://127.0.0.1:8000

        • Hue Team 8 months ago

          Do you have any logs/errors in the command line where you started Hue?

  34. Ankur 6 months ago

    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

  35. Julius 5 months ago

    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 1

    Can I get some help here ?
    Thank you.

    Julius

    • Author
      Hue Team 5 months ago

      Are you sure all the dependencies were installed?

  36. Selva Ganesh 5 months ago

    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
      Hue Team 5 months ago

      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)

  37. Arunachalam sockalingam 1 month ago

    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 2

    Make followed all steps. have the latest mac osx.

  38. Arunachalam sockalingam 1 month ago

    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/lib

    This my error while trying to intsal openssl.

    • Author
      Hue Team 4 weeks ago

      Hi,
      is export LDFLAGS=-L/usr/local/opt/openssl/lib && export CPPFLAGS=-I/usr/local/opt/openssl/include in your ~/.bash_profile ?

  39. Arunachalam sockalingam 2 weeks ago

    Yes, I did that and I still get the same error.

Leave a reply

Your email address will not be published. Required fields are marked *

*