HDP plugin: cannot start Hue when namenode not in HA

Bug #1429905 reported by Adrien Vergé
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Sahara
Fix Released
Medium
Adrien Vergé

Bug Description

Step to reproduce: create a cluster with HUE service and HA namenode disabled (this is by default).

Cluster fails at "Configuring" phase when "Setting Hue configuration".

Changed in sahara:
assignee: nobody → Adrien Vergé (adrien-verge)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to sahara (master)

Fix proposed to branch: master
Review: https://review.openstack.org/162667

Changed in sahara:
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Fix proposed to branch: master
Review: https://review.openstack.org/162668

Changed in sahara:
milestone: none → kilo-3
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to sahara (master)

Reviewed: https://review.openstack.org/162667
Committed: https://git.openstack.org/cgit/openstack/sahara/commit/?id=abd96cd2da90e3baad13b293ba3c1330e26700c6
Submitter: Jenkins
Branch: master

commit abd96cd2da90e3baad13b293ba3c1330e26700c6
Author: Adrien Vergé <email address hidden>
Date: Mon Mar 9 16:16:29 2015 +0100

    HDP plugin: Fix Bash error when starting Hue

    This patch fixes two problems introduced by commit 6894d85, that make
    cluster provisioning fail when installing Hue without a namenode in HA.

    * Execution of:
        [ -f /tmp/hueini-hdfsha ] && sed -i ...
      always fails when /tmp/hueini-hdfsha does not exist, which puts
      cluster in error. Switching to:
        [ ! -f /tmp/hueini-hdfsha ] || sed -i ...
      fails only when sed fails.

    * When running:
        [ -f /tmp/hueini-hdfsha ] && sed ... `cat /tmp/hueini-hdfsha` ...
      the cat command is run before testing the file existence. The special
      quotes (grave accents) need to be escaped.

    Change-Id: I26c184f2f4c19f7d084b4a11d5ba439249c5ba92
    Closes-Bug: #1429905

Changed in sahara:
status: In Progress → Fix Committed
Changed in sahara:
status: Fix Committed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote :

Reviewed: https://review.openstack.org/162668
Committed: https://git.openstack.org/cgit/openstack/sahara/commit/?id=28579d820c55e41a5d0b8fc0407f5489554538a5
Submitter: Jenkins
Branch: master

commit 28579d820c55e41a5d0b8fc0407f5489554538a5
Author: Adrien Vergé <email address hidden>
Date: Mon Mar 9 16:33:56 2015 +0100

    HDP plugin: Fix Beeswax error when starting Hue

    Starting Hue sometimes fails because Beeswax does not find Java home.
    This patch explicitely sets JAVA_HOME in Hadoop conf so this kind of
    error does not happen.

    Change-Id: Ic7ede045cdb660006a0b52a5e5dd25c996a0c1b7
    Closes-Bug: #1429905

Changed in sahara:
status: In Progress → Fix Committed
Thierry Carrez (ttx)
Changed in sahara:
status: Fix Committed → Fix Released
Thierry Carrez (ttx)
Changed in sahara:
milestone: kilo-3 → 2015.1.0
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.