[ 
https://issues.apache.org/jira/browse/BIGTOP-1567?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14296313#comment-14296313
 ] 

Evans Ye commented on BIGTOP-1567:
----------------------------------

IIRC, that was for determining whether to transform components_tmp to an array
{code}
if is_array($components_tmp) {
{code} 
Since originally, any2array will not automatically make an array for us from a 
*,* split-ed string,
thus we still need to split it by ourselves.

> 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)

Reply via email to