[
https://issues.apache.org/jira/browse/BIGTOP-1567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14297273#comment-14297273
]
vishnu gajendran commented on BIGTOP-1567:
------------------------------------------
okay, that make sense. But, what I do not understand is how extlookup method
works in this case. in the puppet docs, I see extlookup("variable name to
lookup", "some default value") as the usage. But, in this patch, you try to
split $components on comma for the default value but i do not see a $components
variable defined anywhere in cluster.pp. please correct me if I am missing
something here.
> puppet cannot install components whatever given to it
> -----------------------------------------------------
>
> Key: BIGTOP-1567
> URL: https://issues.apache.org/jira/browse/BIGTOP-1567
> Project: Bigtop
> Issue Type: Bug
> Components: deployment
> Affects Versions: 0.8.0
> Reporter: Evans Ye
> Assignee: Evans Ye
> Priority: Critical
> Fix For: 0.9.0
>
> Attachments: BIGTOP-1567.1.patch
>
>
> The fix in BIGTOP-1553 introduce an issue that is variable {{$components}}
> will always be an one item array.
> This can be identified by adding a quick evaluation snippet in
> {{bigtop/bigtop-deploy/puppet/manifests/cluster.pp}}:
> {code}
> fail("print component[0]: ${$components[0]}")
> {code}
> the output:
> {code}
> Error: print component[0]: hadoopyarnmapred-app at
> /bigtop-home/bigtop-deploy/puppet/manifests/cluster.pp:83 on node
> bigtop1.vagrant
> {code}
> Consequently, the following "if" statement for component installation will
> not be true because it can not match the specific string.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)