'build-essential',
'ant',
'autoconf',
- 'libtool'
+ 'libtool',
+ # for libhadoop
+ 'zlib1g-dev'
]
rpm_packages = [
'ant',
'autoconf',
'automake',
- 'libtool'
+ 'libtool',
+ # for libhadoop
+ 'zlib-devel',
]
case node[:platform_family]
version, major_version, middle_version \
= parse_version_number(node['hadoop']['version'])
-if middle_version == '2.0' then
+if middle_version >= '2.0' then
packages = packages \
+ [
'cmake',
- # for libhadoop
- 'zlib1g-dev'
]
end
-if middle_version == '2.1' then
+if middle_version >= '2.1' then
packages = packages \
+ [
# for libhdfs
- 'pkg-config'
+ node.value_for_platform_family(
+ 'debian' => 'pkg-config',
+ 'rhel' => 'pkgconfig'
+ )
]
end
Please Check:
Extra requirements must be installed by the other recipes or roles.:
Hadoop 1.x:
- Orack JDK6
+ Oracle JDK6
Apache Maven 3.x
protobuf-compiler 2.4.1
Hadoop 2.x:
- Orack JDK6
+ Oracle JDK6
Apache Maven 3.x
protobuf-compiler 2.5.0
EOM