cookbook 'ambari', '= 0.1.6'
ambari
(17) Versions
0.1.6
-
Follow10
Installs/Configures ambari
cookbook 'ambari', '= 0.1.6', :supermarket
knife supermarket install ambari
knife supermarket download ambari
ambari Cookbook
This cookbook installs Ambari-server and Ambari-agent in order to provision a cluster with the HDP distribution using the Blueprint API.
Requirements
Supporting (or trying to support) the versions Ambari is supporting.
- RHEL, CentOS, and Oracle Linux 5
- RHEL, CentOS, and Oracle Linux 6
- Suse 11
Usage
ambari::server
Just include ambari::server
in your node's run_list
:
{ "name":"my_node", "run_list": [ "recipe[ambari::server]" ] }
ambari::agent
Just include ambari::agent
in your node's run_list
(alll the nodes of your cluster):
The Ambari Server will be automatically detected, but you can override this detection using the attribute node['ambari']['server']['fdqn']
.
{ "name":"my_node", "run_list": [ "recipe[ambari::agent]" ] }
ambari::server
Include ambari::blueprints
in your node's run_list
. Then configure the blueprints
attributes listed below.
Main Attributes
<table>
<tr>
<th>Key</th>
<th>Description</th>
<th>Default</th>
</tr>
<tr>
<td><tt>node['ambari']['rhel_5_repo']</tt></td>
<td>URL for the RHEL 5.x repository</td>
<td><tt>http://public-repo-1.hortonworks.com/ambari/centos5/1.x/updates/1.6.0/ambari.repo</tt></td>
</tr>
<tr>
<td><tt>node['ambari']['rhel_6_repo']</tt></td>
<td>URL for the RHEL 6.x repository</td>
<td><tt>http://public-repo-1.hortonworks.com/ambari/centos6/1.x/updates/1.6.0/ambari.repo</tt></td>
</tr>
<tr>
<td><tt>node['ambari']['suse_11_repo']</tt></td>
<td>URL for the Suse 11.x repository</td>
<td><tt>http://public-repo-1.hortonworks.com/ambari/suse11/1.x/updates/1.6.0/ambari.repo</tt></td>
</tr>
<tr>
<td><tt>node['ambari']['server_fdqn']</tt></td>
<td>FQDN for the Ambari server</td>
<td><tt>Found by searching a node using the recipe ambari::server in the same environment</tt></td>
</tr>
</table>
Blueprints Attributes
<table>
<tr>
<th>Key</th>
<th>Description</th>
</tr>
<tr>
<td><tt>node['ambari']['blueprints']['blueprint_name']</tt></td>
<td>Name of the cluster's blueprint</td>
</tr>
<tr>
<td><tt>node['ambari']['blueprints']['blueprint_json']</tt></td>
<td>JSON description of the Blueprint. See a single-node example here : https://cwiki.apache.org/confluence/display/AMBARI/Blueprints#Blueprints-ExampleBlueprint</td>
</tr>
<tr>
<td><tt>node['ambari']['blueprints']['cluster_name']</tt></td>
<td>Cluster's name</td>
</tr>
<tr>
<td><tt>node['ambari']['blueprints']['cluster_json']</tt></td>
<td>JSON template for the Cluster. See a single-node example here: https://cwiki.apache.org/confluence/display/AMBARI/Blueprints#Blueprints-ExampleClusterCreationTemplate</td>
</tr>
</table>
Contributing
If you wish to contribute on this cookbook:
- Fork the repository on Github
- Create a named feature branch (like
add_component_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
License and Authors
Author: Julien Pellet
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
ambari CHANGELOG
This file is used to list changes made in each version of the ambari cookbook.
0.1.0
- [your_name] - Initial release of ambari
Check the Markdown Syntax Guide for help with Markdown.
The Github Flavored Markdown page describes the differences between markdown on github and standard markdown.
Foodcritic Metric
0.1.6 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/attributes/default.rb:7
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/attributes/default.rb:8
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/attributes/default.rb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/attributes/default.rb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/attributes/default.rb:11
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/recipes/agent.rb:47
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/recipes/blueprints.rb:20
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/recipes/blueprints.rb:21
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/recipes/blueprints.rb:24
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/recipes/blueprints.rb:28
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/recipes/setup_package_manager.rb:38
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/recipes/setup_package_manager.rb:40
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/recipes/setup_package_manager.rb:49
FC003: Check whether you are running with chef server before using server-specific features: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/recipes/agent.rb:47
FC003: Check whether you are running with chef server before using server-specific features: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/recipes/blueprints.rb:20
FC019: Access node attributes in a consistent manner: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/recipes/setup_package_manager.rb:33
FC019: Access node attributes in a consistent manner: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/recipes/setup_package_manager.rb:36
FC041: Execute resource used to run curl or wget commands: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/recipes/blueprints.rb:23
FC041: Execute resource used to run curl or wget commands: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/recipes/blueprints.rb:27
FC041: Execute resource used to run curl or wget commands: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/recipes/setup_package_manager.rb:35
FC041: Execute resource used to run curl or wget commands: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/recipes/setup_package_manager.rb:48
0.1.6 failed this metric
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/attributes/default.rb:8
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/attributes/default.rb:9
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/attributes/default.rb:10
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/attributes/default.rb:11
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/recipes/agent.rb:47
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/recipes/blueprints.rb:20
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/recipes/blueprints.rb:21
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/recipes/blueprints.rb:24
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/recipes/blueprints.rb:28
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/recipes/setup_package_manager.rb:38
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/recipes/setup_package_manager.rb:40
FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/recipes/setup_package_manager.rb:49
FC003: Check whether you are running with chef server before using server-specific features: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/recipes/agent.rb:47
FC003: Check whether you are running with chef server before using server-specific features: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/recipes/blueprints.rb:20
FC019: Access node attributes in a consistent manner: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/recipes/setup_package_manager.rb:33
FC019: Access node attributes in a consistent manner: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/recipes/setup_package_manager.rb:36
FC041: Execute resource used to run curl or wget commands: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/recipes/blueprints.rb:23
FC041: Execute resource used to run curl or wget commands: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/recipes/blueprints.rb:27
FC041: Execute resource used to run curl or wget commands: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/recipes/setup_package_manager.rb:35
FC041: Execute resource used to run curl or wget commands: /tmp/cook/c46f7d0424d8cb1226502fa2/ambari/recipes/setup_package_manager.rb:48