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1.6.1
- 1.6.0
- 1.5.0
- 1.4.1
- 1.4.0
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.0
- 1.1.1
- 1.1.0
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 0.8.0
Installs/Configures Hadoop (HDFS/YARN/MRv2), HBase, Hive, Flume, Oozie, Pig, Spark, Storm, Tez, and ZooKeeper
cookbook 'hadoop', '= 1.6.1', :supermarket
knife supermarket install hadoop
knife supermarket download hadoop
hadoop cookbook
Requirements
This cookbook may work on earlier versions, but these are the minimal tested versions.
- Chef 11.4.0+
- CentOS 6.4+
- Ubuntu 12.04+
This cookbook assumes that you have a working Java installation. It has been tested using version 1.21.2
of the java
cookbook, using Oracle Java 6. If you plan on using Hive with a database other than the embedded Derby, you will need to provide it and set it up prior to starting Hive Metastore service.
Usage
This cookbook is designed to be used with a wrapper cookbook or a role with settings for configuring Hadoop. The services should work out of the box on a single host, but little validation is done that you have made a working Hadoop configuration. The cookbook is attribute-driven and is suitable for use via either chef-client
or chef-solo
since it does not use any server-based functionality. The cookbook defines service definitions for each Hadoop service, but it does not enable or start them, by default.
For more information, read the Wrapping this cookbook wiki entry.
Attributes
Attributes for this cookbook define the configuration files for Hadoop and its various services. Hadoop configuration files are XML files, with name/value property pairs. The attribute name determines which file the property is placed and the property name. The attribute value is the property value. The attribute hadoop['core_site']['fs.defaultFS']
will configure a property named fs.defaultFS
in core-site.xml
in hadoop['conf_dir']
. All attribute values are taken as-is and only minimal configuration checking is done on values. It is up to the user to provide a valid configuration for your cluster.
Attribute Tree | File | Location |
---|---|---|
hadoop['capacity_scheduler'] | capacity-scheduler.xml | hadoop['conf_dir'] |
hadoop['container_executor'] | container-executor.cfg | hadoop['conf_dir'] |
hadoop['core_site'] | core-site.xml | hadoop['conf_dir'] |
hadoop['fair_scheduler'] | fair-scheduler.xml | hadoop['conf_dir'] |
hadoop['hadoop_env'] | hadoop-env.sh | hadoop['conf_dir'] |
hadoop['hadoop_metrics'] | hadoop-metrics.properties | hadoop['conf_dir'] |
hadoop['hadoop_policy'] | hadoop-policy.xml | hadoop['conf_dir'] |
hadoop['hdfs_site'] | hdfs-site.xml | hadoop['conf_dir'] |
hadoop['log4j'] | log4j.properties | hadoop['conf_dir'] |
hadoop['mapred_env'] | mapred-env.sh | hadoop['conf_dir'] |
hadoop['mapred_site'] | mapred-site.xml | hadoop['conf_dir'] |
hadoop['yarn_env'] | yarn-env.sh | hadoop['conf_dir'] |
hadoop['yarn_site'] | yarn-site.xml | hadoop['conf_dir'] |
hbase['hadoop_metrics'] | hadoop-metrics.properties | hbase['conf_dir'] |
hbase['hbase_env'] | hbase-env.sh | hbase['conf_dir'] |
hbase['hbase_policy'] | hbase-policy.xml | hbase['conf_dir'] |
hbase['hbase_site'] | hbase-site.xml | hbase['conf_dir'] |
hbase['jaas'] | jaas.conf | hbase['conf_dir'] |
hbase['log4j'] | log4j.properties | hbase['conf_dir'] |
hive['hive_env'] | hive-env.sh | hive['conf_dir'] |
hive['hive_site'] | hive-site.xml | hive['conf_dir'] |
hive['jaas'] | jaas.conf | hive['conf_dir'] |
oozie['oozie_site'] | oozie-site.xml | oozie['conf_dir'] |
zookeeper['jaas'] | jaas.conf | zookeeper['conf_dir'] |
zookeeper['log4j'] | log4j.properties | zookeeper['conf_dir'] |
zookeeper['zoocfg'] | zoo.cfg | zookeeper['conf_dir'] |
Distribution Attributes
-
hadoop['distribution']
- Specifies which Hadoop distribution to use, currently supported: cdh, hdp, bigtop. Defaulthdp
-
hadoop['distribution_version']
- Specifies which version ofhadoop['distribution']
to use. Default2.0
ifhadoop['distribution']
ishdp
,5
ifhadoop['distribution']
iscdh
, and0.7.0
ifhadoop['distribution']
isbigtop
. It can also be set todevelop
whenhadoop['distribution']
isbigtop
to allow installing from development repos without gpg validation.
APT-specific settings
-
hadoop['apt_repo_url']
- Provide an alternate apt installation source location. If you change this attribute, you are expected to provide a path to a working repo for thehadoop['distribution']
used. Default:nil
-
hadoop['apt_repo_key_url']
- Provide an alternative apt repository key source location. Defaultnil
RPM-specific settings
-
hadoop['yum_repo_url']
- Provide an alternate yum installation source location. If you change this attribute, you are expected to provide a path to a working repo for thehadoop['distribution']
used. Default:nil
-
hadoop['yum_repo_key_url']
- Provide an alternative yum repository key source location. Defaultnil
Global Configuration Attributes
-
hadoop['conf_dir']
- The directory used inside/etc/hadoop
and used via the alternatives system. Defaultconf.chef
-
hbase['conf_dir']
- The directory used inside/etc/hbase
and used via the alternatives system. Defaultconf.chef
-
hive['conf_dir']
- The directory used inside/etc/hive
and used via the alternatives system. Defaultconf.chef
-
oozie['conf_dir']
- The directory used inside/etc/oozie
and used via the alternatives system. Defaultconf.chef
-
zookeeper['conf_dir']
- The directory used inside/etc/zookeeper
and used via the alternatives system. Defaultconf.chef
Default Attributes
-
hadoop['core_site']['fs.defaultFS']
- Sets URI to HDFS NameNode. Defaulthdfs://localhost
-
hadoop['yarn_site']['yarn.resourcemanager.hostname']
- Sets hostname of YARN ResourceManager. Defaultlocalhost
-
hive['hive_site']['javax.jdo.option.ConnectionURL']
- Sets JDBC URL. Defaultjdbc:derby:;databaseName=/var/lib/hive/metastore/metastore_db;create=true
-
hive['hive_site']['javax.jdo.option.ConnectionDriverName']
- Sets JDBC Driver. Defaultorg.apache.derby.jdbc.EmbeddedDriver
Recipes
-
default.rb
- Sets up configuration andhadoop-client
packages. -
hadoop_hdfs_checkconfig
- Ensures the HDFS configuration meets required parameters. -
hadoop_hdfs_datanode
- Sets up an HDFS DataNode. -
hadoop_hdfs_ha_checkconfig
- Ensures the HDFS configuration meets requirements for High Availability. -
hadoop_hdfs_journalnode
- Sets up an HDFS JournalNode. -
hadoop_hdfs_namenode
- Sets up an HDFS NameNode. -
hadoop_hdfs_secondarynamenode
- Sets up an HDFS Secondary NameNode. -
hadoop_hdfs_zkfc
- Sets up HDFS Failover Controller, required for automated NameNode failover. -
hadoop_yarn_nodemanager
- Sets up a YARN NodeManager. -
hadoop_yarn_proxyserver
- Sets up a YARN Web Proxy. -
hadoop_yarn_resourcemanager
- Sets up a YARN ResourceManager. -
hbase
- Sets up configuration andhbase
packages. -
hbase_checkconfig
- Ensures the HBase configuration meets required parameters. -
hbase_master
- Sets up an HBase Master. -
hbase_regionserver
- Sets up an HBase RegionServer. -
hbase_rest
- Sets up an HBase REST interface. -
hbase_thrift
- Sets up an HBase Thrift interface. -
hive
- Sets up configuration andhive
packages. -
hive_metastore
- Sets up Hive Metastore metadata repository. -
hive_server
- Sets up a Hive Thrift service. -
hive_server2
- Sets up a Hive Thrift service with Kerberos and multi-client concurrency support. -
oozie
- Sets up an Oozie server. -
oozie_client
- Sets up an Oozie client. -
pig
- Installs pig interpreter. -
repo
- Sets up package manager repositories for specifiedhadoop['distribution']
-
zookeeper
- Sets upzookeeper
package. -
zookeeper_server
- Sets up a ZooKeeper server.
Author
Author:: Cask Data, Inc. (ops@cask.co)
Testing
This cookbook has several ways to test it. It includes code tests, which are done using foodcritic
, rubocop
, and chefspec
.
It, also, includes functionality testing, provided by vagrant
.
rake foodcritic rake rubocop rake chefspec rake vagrant
This cookbook requires the vagrant-omnibus
and vagrant-berkshelf
Vagrant plugins to be installed.
License
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this software 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.
hadoop CHANGELOG
v1.6.1 (Oct 16, 2014)
- Update Bigtop to
0.8.0
release ( Issues: #106 #107 ) (COOK-1)
v1.6.0 (Oct 16, 2014)
- Add Bigtop support ( Issue: #105 ) (COOK-1)
v1.5.0 (Sep 25, 2014)
This release adds Flume support to the cookbook.
- Update test-kitchen to use more recipes ( Issue: #95 )
- Test improvements ( Issues: #98 #100 #101 )
- Flume support ( Issue: #99 )
- Simplify RHEL handling ( Issue: #102 )
v1.4.1 (Sep 18, 2014)
- Add
zookeeper
group after package installs ( Issue: #96 ) - Code consistency updates ( Issue: #97 )
v1.4.0 (Sep 18, 2014)
- Support Amazon Linux ( Issues: #84 #90 )
- Remove addition of
zookeeper
user/group ( Issue: #87 ) - Add support for HDP 2.1.5.0 ( Issue: #88 )
- Update HDP-UTILS to 1.1.0.19 ( Issue: #89 )
- Use
next
to break loops ( Issue: #91 ) - Hive HDFS directories use
hive
group ( Issue: #92 ) - Add Hive spec tests ( Issue: #93 )
- Update java cookbook dependency ( Issue: #94 )
There is no CHANGELOG for versions of this cookbook prior to 1.4.0 release.
Foodcritic Metric
1.6.1 passed this metric
1.6.1 passed this metric