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

Evans Ye commented on BIGTOP-1634:
----------------------------------

Hey [~michaelweiser], first of all, what a great work.
I got some error during me test and would like to have your advice:

I followed the updated README.md under puppet directory when configuring the 
deployment 
my */etc/puppet/hieradata/site.yaml*:
{code}
bigtop::hadoop_head_node: "bigtop1.docker"
hadoop::hadoop_storage_dirs: "/data/1,/data/2"
Bigtop::bigtop_yumrepo_uri: 
"http://bigtop01.cloudera.org:8080/view/Releases/job/Bigtop-0.8.0/label=centos6/6/artifact/output/";
{code}
This brought me to:
{code}
Error: suffix(): expected first argument to be an Array, got "/data/1,/data/2" 
at /bigtop-home/bigtop-deploy/puppet/modules/hadoop/manifests/init.pp:143 on 
node bigtop1.docker
{code}

So I changed the configuration to this:
{code}
hadoop::hadoop_storage_dirs:
- /data/1
- /data/2
{code}

Now hit another one:
{code}
Error: Unknown function inclass at 
/bigtop-home/bigtop-deploy/puppet/modules/hadoop-hbase/manifests/init.pp:49 on 
node bigtop1.docker

I've my stdlib already installed under */etc/puppet/modules*, so no crude about 
why this happening, I'll try around later:)

> Puppet class parameter and hiera conversion
> -------------------------------------------
>
>                 Key: BIGTOP-1634
>                 URL: https://issues.apache.org/jira/browse/BIGTOP-1634
>             Project: Bigtop
>          Issue Type: Improvement
>          Components: deployment
>    Affects Versions: backlog
>            Reporter: Michael Weiser
>              Labels: patch
>         Attachments: 
> 0001-BIGTOP-1634-puppet-Replace-extlookup-with-hiera-use-.patch, 
> 0001-BIGTOP-1634-puppet-Replace-extlookup-with-hiera-use-.patch, 
> 0002-BIGTOP-1634-Add-enhanced-configuration.patch
>
>
> As discussed on the DEV list:
> Update the puppet code to use self-contained, parametrised classes and proper 
> scoping. Replace all extlookup calls bei either explicit or automatic hiera 
> parameter lookups. Implement HA/non-HA alternative via hiera lookup 
> hierarchy. Replace append_each from bigtop_util by suffix from stdlib. Do 
> file imports via puppet:/// scheme. Remove bigtop_util because remaining 
> function get_settings is not needed any more.
> Additionally: Add additional configuration options for zookeeper and yarn as 
> well as a new class for journalnode configuration.
> I've separated it into two patches of ease of review:
> 0001: actual hiera/class conversion
> 0002: functional enhancements including journalnode configuration on top of 
> that. Mainly meant as an example for ease of further expansion and 
> containment of changes to single modules.
> This JIRA is meant for the stuff contained in 0001, the actual hiera 
> conversion. I can resubmit 0002 as a separate JIRA if desired. Also it should 
> be possible to backport 0002 to the current puppet code base without much 
> fuss.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to