Hue Forum

Can't make HUE listen on port 80

  • #50485
    Rodulfo
    Participant

    I have a single node installation on an RHEL EC2 instance in AWS and everything works fine excpet that I want to acces HUE on port 80 since the network I work is behind a proxy that only allows connection to port 80.

    I changed the configuration in hue.ini file:
    http_port=80
    and restarted HUE but it doesnt work

    The server had an Apache HTTPD server installed on port 80 but I stoped it and even changed the port to 78.

    If I run “netstat -an |grep 80″ I see a lot of connections to other ports like if it were a proxy, but IPTABLES is off and stopped
    tcp 0 0 10.0.0.180:50090 0.0.0.0:* LISTEN
    tcp 0 0 0.0.0.0:8010 0.0.0.0:* LISTEN
    tcp 0 0 0.0.0.0:41806 0.0.0.0:* LISTEN
    tcp 0 0 10.0.0.180:19888 0.0.0.0:* LISTEN
    tcp 0 0 10.0.0.180:8020 0.0.0.0:* LISTEN
    tcp 0 0 10.0.0.180:8660 0.0.0.0:* LISTEN
    tcp 0 0 10.0.0.180:8661 0.0.0.0:* LISTEN
    tcp 0 0 10.0.0.180:50070 0.0.0.0:* LISTEN
    tcp 0 0 10.0.0.180:8663 0.0.0.0:* LISTEN
    tcp 0 0 10.0.0.180:8664 0.0.0.0:* LISTEN
    tcp 0 0 10.0.0.180:8666 0.0.0.0:* LISTEN
    tcp 0 0 0.0.0.0:8000 0.0.0.0:* LISTEN
    tcp 0 0 0.0.0.0:8002 0.0.0.0:* LISTEN

    Any idea wht I can’t make HUE to listen on port 80?

    Thanks in advance

to create new topics or reply. | New User Registration

  • Author
    Replies
  • #50498
    Dave
    Moderator

    Hi Rodulfo,

    In your runcpserver.log what do you see?
    I see:

    Could not bind port 80: [Errno 13] Permission denied. Exiting

    Although this is because hue runs as hue and not root – and this is a UNIX error when trying to bind to a reserved system port (80)
    If I give hue permissions then this will work

    Thanks

    Dave

    #50499
    Rodulfo
    Participant

    I understand. Thanks Dave.

    So what is the best way to give HUE these permission. I have seen some suggestions to use IPTABLES to route por 80 to 8000 but I have IPTABLES off. Sorry but Im not expert on linux administration. Can you sugest some way to HUE the right permissions?

    Greetings,
    Rodulfo

    #50523
    Dave
    Moderator

    Hi Rodulfo,

    You would need to either give hue sudo permissions to run on port 80, or use a 3rd party tool to configure it – such as authbind.
    Unfortunately I haven’t had a chance to look at this, but trying to get hue to run as root instead of hue seems pretty messy and not relatively straight forward.

    I’d suggest using authbind (there’s a man page for it and lots of information on the web) as this should provide you with the functionality you desire.

    Thanks

    Dave

You must be to reply to this topic. | Create Account

Support from the Experts

A HDP Support Subscription connects you experts with deep experience running Apache Hadoop in production, at-scale on the most demanding workloads.

Enterprise Support »

Become HDP Certified

Real world training designed by the core architects of Hadoop. Scenario-based training courses are available in-classroom or online from anywhere in the world

Training »

Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.