Uploaded image for project: 'Bigtop'
  1. Bigtop
  2. BIGTOP-2003

Bigtop puppet fails to deploy on Ubuntu due to a hiera 1.3.0 bug

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.0
    • Fix Version/s: 1.1.0
    • Component/s: vm
    • Labels:
      None

      Description

      hiera 1.3.0 fails with empty yaml file, hence we get the following error when running deployment on Ubuntu:

      vagrant-puppet-vm $ cat vagrantconfig.yaml
      memory_size: 4096
      number_cpus: 1
      box: "puppetlabs/ubuntu-14.04-64-puppet"
      repo: "http://bigtop01.cloudera.org:8080/view/Releases/job/Bigtop-1.0.0-deb/BUILD_ENVIRONMENTS=debian-8%2clabel=docker-slave-07/lastSuccessfulBuild/artifact/output/apt/"
      num_instances: 1
      distro: debian
      components: [hadoop, yarn]
      enable_local_repo: false
      run_smoke_tests: false
      smoke_test_components: [mapreduce, pig]
      jdk: "openjdk-7-jdk"
      
      vagrant-puppet-vm $ vagrant up
      ...
      ==> bigtop1: Error: Error from DataBinding 'hiera' while looking up 'hadoop_cluster_node::hadoop_security_authentication': Data                    retrieved from /etc/puppet/hieradata/bigtop/noha.yaml is String not Hash on node bigtop1
      ==> bigtop1: Wrapped exception:
      ==> bigtop1: Data retrieved from /etc/puppet/hieradata/bigtop/noha.yaml is String not Hash
      ==> bigtop1: Wrapped exception:
      ==> bigtop1: Data retrieved from /etc/puppet/hieradata/bigtop/noha.yaml is String not Hash
      ==> bigtop1: Error: Error from DataBinding 'hiera' while looking up 'hadoop_cluster_node::hadoop_security_authentication': Data                    retrieved from /etc/puppet/hieradata/bigtop/noha.yaml is String not Hash on node bigtop1
      

        Issue Links

          Activity

          Hide
          githubbot ASF GitHub Bot added a comment -

          GitHub user evans-ye opened a pull request:

          https://github.com/apache/bigtop/pull/38

          BIGTOP-2003. Bigtop puppet fails to deploy on Ubuntu due to a hiera 1…

          BIGTOP-2003. Bigtop puppet fails to deploy on Ubuntu due to a hiera 1…

          You can merge this pull request into a Git repository by running:

          $ git pull https://github.com/evans-ye/bigtop BIGTOP-2003

          Alternatively you can review and apply these changes as the patch at:

          https://github.com/apache/bigtop/pull/38.patch

          To close this pull request, make a commit to your master/trunk branch
          with (at least) the following in the commit message:

          This closes #38


          commit 9c3b4028d4e4c6ee6a987846390ca2b82142f91b
          Author: Evans Ye <evansye@apache.org>
          Date: 2015-09-03T16:57:10Z

          BIGTOP-2003. Bigtop puppet fails to deploy on Ubuntu due to a hiera 1.3.0 bug


          Show
          githubbot ASF GitHub Bot added a comment - GitHub user evans-ye opened a pull request: https://github.com/apache/bigtop/pull/38 BIGTOP-2003 . Bigtop puppet fails to deploy on Ubuntu due to a hiera 1… BIGTOP-2003 . Bigtop puppet fails to deploy on Ubuntu due to a hiera 1… You can merge this pull request into a Git repository by running: $ git pull https://github.com/evans-ye/bigtop BIGTOP-2003 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/bigtop/pull/38.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #38 commit 9c3b4028d4e4c6ee6a987846390ca2b82142f91b Author: Evans Ye <evansye@apache.org> Date: 2015-09-03T16:57:10Z BIGTOP-2003 . Bigtop puppet fails to deploy on Ubuntu due to a hiera 1.3.0 bug
          Hide
          evans_ye Evans Ye added a comment -

          The hiera package on Ubuntu system has a bug handling empty yaml file(/etc/puppet/hieradata/bigtop/noha.yaml). This fix is an workaround to install puppetlab repo for Ubuntu which provides newer hiera. Without this fix the bigtop puppet recipes can not run on Ubuntu OS. We should remove this once the the newer hiera is provided by Ubuntu natively.

          Show
          evans_ye Evans Ye added a comment - The hiera package on Ubuntu system has a bug handling empty yaml file( /etc/puppet/hieradata/bigtop/noha.yaml ). This fix is an workaround to install puppetlab repo for Ubuntu which provides newer hiera. Without this fix the bigtop puppet recipes can not run on Ubuntu OS. We should remove this once the the newer hiera is provided by Ubuntu natively.
          Hide
          githubbot ASF GitHub Bot added a comment -

          Github user jayunit100 commented on the pull request:

          https://github.com/apache/bigtop/pull/38#issuecomment-137525525

          +1

          Show
          githubbot ASF GitHub Bot added a comment - Github user jayunit100 commented on the pull request: https://github.com/apache/bigtop/pull/38#issuecomment-137525525 +1
          Hide
          evans_ye Evans Ye added a comment -

          Thanks for the review jay vyas! I've committed this.

          Show
          evans_ye Evans Ye added a comment - Thanks for the review jay vyas ! I've committed this.

            People

            • Assignee:
              evans_ye Evans Ye
              Reporter:
              evans_ye Evans Ye
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development