|
| 1 | +Name: rhs-hadoop |
| 2 | +Version: $version |
| 3 | +Release: $release |
| 4 | +#if $epoch |
| 5 | +Epoch: $epoch |
| 6 | +#end if |
| 7 | +License: Apache |
| 8 | +Summary: GlusterFS Hadoop Plugin |
| 9 | +Group: Application/File |
| 10 | + |
| 11 | +#for $i, $artifact in $enumerate($all_artifacts) |
| 12 | +Source$i: $artifact |
| 13 | +#end for |
| 14 | + |
| 15 | +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
| 16 | +BuildArch: noarch |
| 17 | + |
| 18 | +# yes, this is /usr/lib even on 64-bit |
| 19 | +%global hadoop_libdir %{_prefix}/lib/hadoop/lib |
| 20 | + |
| 21 | +%description |
| 22 | +The Gluster Filesystem Hadoop implementation for both Hadoop 1.x and 2.x. This |
| 23 | +Java plugin for Hadoop allows MapReduce and YARN to run on top of Gluster, by providing the |
| 24 | +GlusterFileSystem (1.x) and GlusterFs (2.x) implementations. These should be referenced |
| 25 | +in the hadoop configuration files and loaded at runtime as the FileSystem implementation. |
| 26 | + |
| 27 | +%prep |
| 28 | + |
| 29 | +%build |
| 30 | + |
| 31 | +%install |
| 32 | +rm -rf %{buildroot} |
| 33 | +/bin/mkdir -p %{buildroot}%{_javadir} |
| 34 | +/bin/mkdir -p %{buildroot}%{hadoop_libdir} |
| 35 | + |
| 36 | +#for $i, $artifact in $enumerate($all_artifacts) |
| 37 | + #if $artifact.endswith('.jar') |
| 38 | +/usr/bin/install -m 644 %{SOURCE$i} %{buildroot}%{_javadir} |
| 39 | +/bin/ln -s ../../../..%{_javadir}/$artifact %{buildroot}%{hadoop_libdir}/$artifact |
| 40 | + #end if |
| 41 | +#end for |
| 42 | + |
| 43 | +%clean |
| 44 | +rm -rf %{buildroot} |
| 45 | + |
| 46 | +%files |
| 47 | +%defattr(-,root,root,-) |
| 48 | +#for $i, $artifact in $enumerate($all_artifacts) |
| 49 | + #if $artifact.endswith('.jar') |
| 50 | +%{_javadir}/$artifact |
| 51 | +%{hadoop_libdir}/$artifact |
| 52 | + #end if |
| 53 | +#end for |
| 54 | + |
| 55 | +%changelog |
| 56 | +* Wed Jan 9 2014 Jay Vyas < [email protected]> 2.1.4 renamed |
| 57 | +- rename to rhs-hadoop for release |
| 58 | + |
| 59 | +* Fri Nov 22 2013 Jay Vyas < [email protected]> 2.1.4 |
| 60 | +- Initial import into the glusterfs-hadoop plugin as part of our deployment. |
| 61 | + |
| 62 | +* Fri May 18 2012 Anthony Towns < [email protected]> - 0.20.2-0 |
| 63 | +- Initial build |
0 commit comments