skip to Main Content

Currently executing apache hue on docker
Done some changes on hue.ini file which requires hue restart and for doing that running the command

./build/env/bin/supervisor

However this command is failing to run and throwing below error –

[2023-07-27 06:16:06 -0700] [425] [INFO] Starting gunicorn 19.9.0
[2023-07-27 06:16:06 -0700] [425] [ERROR] Connection in use: ('0.0.0.0', 8888)
[2023-07-27 06:16:06 -0700] [425] [ERROR] Retrying in 1 second.
[2023-07-27 06:16:07 -0700] [425] [ERROR] Connection in use: ('0.0.0.0', 8888)

Tried to kill the process running on 8888 port but still no luck , can anyone please suggest what would be the way to resolve this issue

Update -1

After running the docker stop commands , followed the below steps
Started docker command to start hue

docker run -it -p 8900:8888 gethue/hue:latest

After that changed the hue.ini file to keep the hive server details , dummy value is provide just to check whether the changes are reflected in hue UI

 [[[hive]]]
   name=Hive
   interface=hiveserver2

[beeswax]
# Host where HiveServer2 is running.
# If Kerberos security is enabled, use fully-qualified domain name (FQDN).
hive_server_host=localhost11
# Binary thrift port for HiveServer2.
hive_server_port=10000

Then executed the command to restart hue server

./build/env/bin/hue runserver 0.0.0.0:8900

This command didn’t show any error but UI also didn’t show the updated values in hue.ini file

So my query is exactly what are the steps to be followed to restart hue service after changing in hue file

But confused between all these 3

./build/env/bin/supervisor
./build/env/bin/hue runserver
./build/env/bin/hue runcpserver

2

Answers


  1. Try the following steps, it may help:

    Stop and remove existing containers:

    docker stop $(docker ps -q)
    docker rm $(docker ps -a -q)
    

    Check for other processes using port 8888:

    sudo lsof -i :8888
    

    Terminate any processes using port 8888 with the kill command and Verify the configuration changes in hue.ini. and then start Hue with the following command:

    ./build/env/bin/hue runserver
    

    and then check the container logs for any errors by using:

    docker logs <hue_container_name>
    
    

    Note: Make sure the host port mapping (if used) is correct and not conflicting with other services.

    #Apache-Age #ubuntu #github #repository

    Login or Signup to reply.
  2. The above should work as it worked in my case, but please do try following.

    1. Verify you are modifying the correct hue.ini file.
    2. Restart the Hue container after making changes by running following command.
    docker restart <hue_container_name>
    
    1. Check for syntax errors or typos in the hue.ini file.
      Inspect container logs for any errors by running
    docker logs <hue_container_name>
    

    5.Ensure proper volume mounting if using a custom hue.ini file by running

    docker run -it -p 8900:8888 -v /path/to/updated/hue.ini:/hue/desktop/conf/hue.ini gethue/hue:latest
    
    1. Try accessing the Hue UI in an incognito/private browsing window or clear the browser cache.

    By following these steps, you should be able to get the updated hue.ini file to reflect in the Hue UI.
    But still its creating issue, check the container logs for more details.

    #Apache-Age #ubuntu #hue #postgresql #docker

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search