forked from gluster/glusterfs-hadoop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglusterfs-hadoop.spec.tmpl
71 lines (57 loc) · 2.02 KB
/
glusterfs-hadoop.spec.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
Name: rhs-hadoop
Version: $version
# release number is automatically updated when soure version is the same
Release: $release
#if $epoch
Epoch: $epoch
#end if
License: Apache
Summary: GlusterFS Hadoop Plugin
Group: Application/File
#for $i, $artifact in $enumerate($all_artifacts)
Source$i: $artifact
#end for
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
# yes, this is /usr/lib even on 64-bit
%global hadoop_libdir %{_prefix}/lib/hadoop/lib
%description
The Gluster Filesystem Hadoop implementation for both Hadoop 1.x and 2.x. This
Java plugin for Hadoop allows MapReduce and YARN to run on top of Gluster, by providing the
GlusterFileSystem (1.x) and GlusterFs (2.x) implementations. These should be referenced
in the hadoop configuration files and loaded at runtime as the FileSystem implementation.
%prep
%build
%install
rm -rf %{buildroot}
/bin/mkdir -p %{buildroot}%{_javadir}
/bin/mkdir -p %{buildroot}%{hadoop_libdir}
/bin/mkdir -p %{buildroot}%{_sysconfdir}/sudoers.d
#for $i, $artifact in $enumerate($all_artifacts)
#if $artifact.endswith('.jar')
/usr/bin/install -m 644 %{SOURCE$i} %{buildroot}%{_javadir}
/bin/ln -s ../../../..%{_javadir}/$artifact %{buildroot}%{hadoop_libdir}/$artifact
#end if
#end for
# move sudoers file to /etc/sudoers.d/
install -m 644 20_glusterfs_hadoop_sudoers %{buildroot}%{_sysconfdir}/sudoers.d/
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
#for $i, $artifact in $enumerate($all_artifacts)
#if $artifact.endswith('.jar')
%{_javadir}/$artifact
%{hadoop_libdir}/$artifact
#end if
#end for
%{_sysconfdir}/sudoers.d/20_glusterfs_hadoop_sudoers
%changelog
* Wed Feb 05 2014 Jeff Vance <[email protected]> 2.1.5-2
- installs the sudoers file. BZ 1059986
* Wed Jan 9 2014 Jay Vyas <[email protected]> 2.1.4-1
- rename to rhs-hadoop for release
* Fri Nov 22 2013 Jay Vyas <[email protected]> 2.1.4
- Initial import into the glusterfs-hadoop plugin as part of our deployment.
* Fri May 18 2012 Anthony Towns <[email protected]> - 0.20.2-0
- Initial build