masatana opened a new pull request #641:
URL: https://github.com/apache/bigtop/pull/641
This PR updates `get_roles.rb` to be faild if there is no such component
which is specified in user config.
Before:
```
$ cat config.yaml
docker:
memory_limit: "4g"
image: "bigtop/puppet:trunk-centos-7"
repo: "http://repos.bigtop.apache.org/releases/1.4.0/centos/7/$basearch"
distro: centos
components: [foobar]
enable_local_repo: false
smoke_test_components: []
$ ./docker-hadoop.sh -c 1
(snip)
(not failed)
```
After:
```
$ ./docker-hadoop.sh -c 1
(snip)
Error: get_roles(): No such component in roles_map. foobar on node
7541662d9555.bigtop.apache.org
Error: get_roles(): No such component in roles_map. foobar on node
7541662d9555.bigtop.apache.org
[LOG] Failed to provision container
7541662d95558968b99a07be71813b030a0f827243ca7a3d0f6c25c9d6cc784c with exit code
1
```
Also I updated existed config files as I noticed that there is no such
component `mapreduce` but `mapred`.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]