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

docker-hadoop.sh --create fails with "Error: Could not match |$index" message

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.2.0
    • Component/s: provisioner
    • Labels:
      None

      Description

      After BIGTOP-2531, docker-hadoop.sh --create fails with the following error.

      sekikn@ubuntu:~/d/bigtop/provisioner/docker$ ./docker-hadoop.sh -c 1
      
      (snip)
      
      local yum = false ; NOT Enabling local yum.  Packages will be pulled from remote...
      Error: Could not match |$index, at /bigtop-home/bigtop-deploy/puppet/modules/gpdb/manifests/init.pp:197 on node localhost
      Error: Could not match |$index, at /bigtop-home/bigtop-deploy/puppet/modules/gpdb/manifests/init.pp:197 on node localhost
      

      puppet apply seems to need --parser future option.

        Issue Links

          Activity

          Hide
          cos Konstantin Boudnik added a comment -

          Good catch, will commit it shortly!

          Show
          cos Konstantin Boudnik added a comment - Good catch, will commit it shortly!
          Hide
          cos Konstantin Boudnik added a comment -

          Committed and pushed, thanks for the patch Kengo Seki

          Show
          cos Konstantin Boudnik added a comment - Committed and pushed, thanks for the patch Kengo Seki
          Hide
          oflebbe Olaf Flebbe added a comment -

          Hi Kengo Seki, the patch you are proposed breaks new puppet versions. See BIGTOP-2862
          I am confident there is a better solution. Could you please elaborate on which OS this happend ?

          Show
          oflebbe Olaf Flebbe added a comment - Hi Kengo Seki , the patch you are proposed breaks new puppet versions. See BIGTOP-2862 I am confident there is a better solution. Could you please elaborate on which OS this happend ?
          Hide
          sekikn Kengo Seki added a comment -

          Olaf Flebbe really sorry for the late response, my environment is as follows:

          sekikn@xenial:~/dev/bigtop/provisioner/docker$ cat /etc/issue
          Ubuntu 16.04.3 LTS \n \l
          
          sekikn@xenial:~/dev/bigtop/provisioner/docker$ puppet -V
          3.8.5
          sekikn@xenial:~/dev/bigtop/provisioner/docker$ git diff
          diff --git a/provisioner/docker/docker-hadoop.sh b/provisioner/docker/docker-hadoop.sh
          index 2783a1f..159ccbb 100755
          --- a/provisioner/docker/docker-hadoop.sh
          +++ b/provisioner/docker/docker-hadoop.sh
          @@ -129,7 +129,7 @@ destroy() {
           }
           
           bigtop-puppet() {
          -    docker exec $1 bash -c 'puppet apply --parser future --modulepath=/bigtop-home/bigtop-deploy/puppet/modules:/etc/puppet/modules /bigtop-home/bigtop-deploy/puppet/manifests'
          +    docker exec $1 bash -c 'puppet apply --modulepath=/bigtop-home/bigtop-deploy/puppet/modules:/etc/puppet/modules /bigtop-home/bigtop-deploy/puppet/manifests'
           }
           
           get-yaml-config() {
          sekikn@xenial:~/dev/bigtop/provisioner/docker$ ./docker-hadoop.sh -c 1
          
          (snip)
          
          Error: Could not parse for environment production: Could not match |$count, at /bigtop-home/bigtop-deploy/puppet/manifests/bigtop_repo.pp:21 on node 247f34f0c3a9.bigtop.apache.org
          Error: Could not parse for environment production: Could not match |$count, at /bigtop-home/bigtop-deploy/puppet/manifests/bigtop_repo.pp:21 on node 247f34f0c3a9.bigtop.apache.org
          
          Show
          sekikn Kengo Seki added a comment - Olaf Flebbe really sorry for the late response, my environment is as follows: sekikn@xenial:~/dev/bigtop/provisioner/docker$ cat /etc/issue Ubuntu 16.04.3 LTS \n \l sekikn@xenial:~/dev/bigtop/provisioner/docker$ puppet -V 3.8.5 sekikn@xenial:~/dev/bigtop/provisioner/docker$ git diff diff --git a/provisioner/docker/docker-hadoop.sh b/provisioner/docker/docker-hadoop.sh index 2783a1f..159ccbb 100755 --- a/provisioner/docker/docker-hadoop.sh +++ b/provisioner/docker/docker-hadoop.sh @@ -129,7 +129,7 @@ destroy() { } bigtop-puppet() { - docker exec $1 bash -c 'puppet apply --parser future --modulepath=/bigtop-home/bigtop-deploy/puppet/modules:/etc/puppet/modules /bigtop-home/bigtop-deploy/puppet/manifests' + docker exec $1 bash -c 'puppet apply --modulepath=/bigtop-home/bigtop-deploy/puppet/modules:/etc/puppet/modules /bigtop-home/bigtop-deploy/puppet/manifests' } get-yaml-config() { sekikn@xenial:~/dev/bigtop/provisioner/docker$ ./docker-hadoop.sh -c 1 (snip) Error: Could not parse for environment production: Could not match |$count, at /bigtop-home/bigtop-deploy/puppet/manifests/bigtop_repo.pp:21 on node 247f34f0c3a9.bigtop.apache.org Error: Could not parse for environment production: Could not match |$count, at /bigtop-home/bigtop-deploy/puppet/manifests/bigtop_repo.pp:21 on node 247f34f0c3a9.bigtop.apache.org

            People

            • Assignee:
              sekikn Kengo Seki
              Reporter:
              sekikn Kengo Seki
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development