Skip to main content
prakashpunj
Gold ⭐️
March 12, 2020
Solved

Hue 3.8.1 on centos 7 - How to start it

I have installed Hue 3.8.1 from tarball and it's running on centos 7. I am not sure how to start hue. 

 

Below is the directory structure.

 

[root@ds hue-3.8.1]# ls -l
total 56
drwxrwxr-x. 21 sitadmin sitadmin 4096 May 4 2015 apps
drwxr-xr-x. 3 root root 17 Mar 10 23:14 build
drwxrwxr-x. 5 sitadmin sitadmin 58 May 4 2015 desktop
drwxrwxr-x. 6 sitadmin sitadmin 142 May 4 2015 docs
drwxrwxr-x. 3 sitadmin sitadmin 24 May 4 2015 ext
-rw-rw-r--. 1 sitadmin sitadmin 11358 May 4 2015 LICENSE.txt
-rw-rw-r--. 1 sitadmin sitadmin 4715 May 4 2015 Makefile
-rw-rw-r--. 1 sitadmin sitadmin 8505 May 4 2015 Makefile.sdk
-rw-rw-r--. 1 sitadmin sitadmin 3498 May 4 2015 Makefile.vars
-rw-rw-r--. 1 sitadmin sitadmin 2192 May 4 2015 Makefile.vars.priv
drwxrwxr-x. 2 sitadmin sitadmin 21 May 4 2015 maven
-rw-rw-r--. 1 sitadmin sitadmin 801 May 4 2015 NOTICE.txt
-rw-rw-r--. 1 sitadmin sitadmin 1562 May 4 2015 README
drwxrwxr-x. 5 sitadmin sitadmin 89 May 4 2015 tools
-rw-rw-r--. 1 sitadmin sitadmin 932 May 4 2015 VERSION

 

 

stevenmatison
Platinum ⭐️⭐️
March 12, 2020

Per documentation, the start command is:

 

/usr/local/hue/build/env/bin/supervisor

If it doesn't start, make sure you have completed the "make apps" command and installed all dependencies.  Also depending on your system you want to chown -R hue:hue /usr/local/hue

9 replies

paras
Gold ⭐️⭐️⭐️
Gold ⭐️⭐️⭐️
March 12, 2020

@prakashpunj 

The hue-server package includes service scripts to start and stop the Hue Server.

 

To start the Hue Server:

$ sudo service hue start

To restart the Hue Server:

$ sudo service hue restart

To stop the Hue Server:

$ sudo service hue stop

Translate
stevenmatison
Platinum ⭐️⭐️
March 12, 2020

Per documentation, the start command is:

 

/usr/local/hue/build/env/bin/supervisor

If it doesn't start, make sure you have completed the "make apps" command and installed all dependencies.  Also depending on your system you want to chown -R hue:hue /usr/local/hue

Translate
prakashpunj
Gold ⭐️
March 12, 2020

I see supervisor.py file got created in different folder than /usr/local/hue. It's in desktop/core/src/desktop folder. I am running as root. Below is what I get

 

[root@ds desktop]# pwd
/root/hue-3.8.1/desktop/core/src/desktop
[root@ds desktop]# ./supervisor
-bash: ./supervisor: No such file or directory
[root@ds desktop]# ./supervisor.py
-bash: ./supervisor.py: Permission denied
[root@ds desktop]# chmod 777 supervisor.py
[root@ds desktop]# ./supervisor.py
Traceback (most recent call last):
File "./supervisor.py", line 32, in <module>
from daemon.pidlockfile import PIDLockFile
ImportError: No module named daemon.pidlockfile

 

 

Translate
stevenmatison
Platinum ⭐️⭐️
March 12, 2020

looks like you have it installed as /root/hue-3.8.1

try using /root/hue-3.8.1 instead of /usr/local/hue in the startup command?

 

I would recommend to put it in /usr/local and symlink if not installed as just /hue/ folder:

 

     ln -s /usr/local/hue-3.8.1 /usr/local/hue 

 

also make sure you execute "make apps" in the folder to install everything as the hue user...

Translate