name = 'Hadoop'
version = '2.7.3'
versionsuffix = '-native'

homepage = 'http://archive.cloudera.com/cdh5/cdh/5/'
description = """Hadoop MapReduce by Cloudera"""

toolchain = SYSTEM

sources = ['%(namelower)s-%(version)s-src.tar.gz']
source_urls = ['http://archive.cloudera.com/cdh5/cdh/5/']

patches = ['Hadoop-TeraSort-on-local-filesystem.patch']

builddependencies = [
    ('Maven', '3.3.9'),
    ('protobuf', '2.5.0'),  # *must* be this version
    ('CMake', '3.7.2'),
    ('snappy', '1.1.3', '', ('GCC', '4.9.3-2.25')),
]

dependencies = [('Java', '1.8.0_121')]

build_native_libs = True

extra_native_libs = [('snappy', 'lib/libsnappy.so*')]

parallel = 1

moduleclass = 'tools'
