|
Huamin Chen |
f90899e |
%global commit 5c054cadf88a5bbdd846142637c27b87936ab6ef
|
|
Timothy St. Clair |
942ec6f |
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
|
Timothy St. Clair |
942ec6f |
%global shortname tachyon
|
|
Timothy St. Clair |
942ec6f |
|
|
Timothy St. Clair |
942ec6f |
Name: amplab-%{shortname}
|
|
Timothy St. Clair |
5876695 |
# Given the naming conflicts with other packages, and eventually this will
|
|
Timothy St. Clair |
2f748db |
# switch to apache-tachyon should
|
|
Timothy St. Clair |
8fdb4b9 |
Version: 0.5.0
|
|
|
62d839b |
Release: 4.%{shortcommit}%{?dist}
|
|
Timothy St. Clair |
942ec6f |
Summary: Reliable file sharing at memory speed across cluster frameworks
|
|
Timothy St. Clair |
942ec6f |
License: ASL 2.0
|
|
Timothy St. Clair |
9bab34d |
URL: http://tachyon-project.org/
|
|
Timothy St. Clair |
942ec6f |
Source0: https://github.com/amplab/tachyon/archive/%{commit}/%{shortname}-%{version}-%{shortcommit}.tar.gz
|
|
Timothy St. Clair |
942ec6f |
Source1: %{shortname}-tmpfiles.conf
|
|
Timothy St. Clair |
942ec6f |
Source2: %{shortname}-master.service
|
|
Timothy St. Clair |
942ec6f |
Source3: %{shortname}-slave.service
|
|
Timothy St. Clair |
942ec6f |
Source4: %{shortname}-layout.sh
|
|
Timothy St. Clair |
942ec6f |
Source5: %{shortname}-env.sh
|
|
Timothy St. Clair |
942ec6f |
|
|
Timothy St. Clair |
942ec6f |
Patch0: tachyon-0.4.0-SNAPSHOT-log4props.patch
|
|
Huamin Chen |
f52f22b |
Patch1: tachyon-0.5.0-defaults.patch
|
|
Timothy St. Clair |
2f748db |
|
|
Timothy St. Clair |
942ec6f |
BuildRequires: java-devel
|
|
Timothy St. Clair |
942ec6f |
BuildRequires: mvn(commons-io:commons-io)
|
|
Timothy St. Clair |
5876695 |
|
|
Huamin Chen |
f52f22b |
%if 0%{?fedora} >= 21
|
|
Huamin Chen |
f52f22b |
BuildRequires: mvn(org.slf4j:slf4j-log4j12)
|
|
Huamin Chen |
f52f22b |
%else
|
|
Huamin Chen |
f52f22b |
BuildRequires: mvn(log4j:log4j)
|
|
Huamin Chen |
f52f22b |
%endif
|
|
Huamin Chen |
f52f22b |
|
|
Timothy St. Clair |
942ec6f |
BuildRequires: mvn(org.apache.ant:ant)
|
|
Timothy St. Clair |
942ec6f |
BuildRequires: mvn(org.apache.commons:commons-lang3)
|
|
Timothy St. Clair |
942ec6f |
|
|
Timothy St. Clair |
942ec6f |
BuildRequires: mvn(org.apache.hadoop:hadoop-common)
|
|
Timothy St. Clair |
942ec6f |
BuildRequires: mvn(org.apache.hadoop:hadoop-mapreduce-client-core)
|
|
Timothy St. Clair |
942ec6f |
BuildRequires: mvn(org.apache.hadoop:hadoop-hdfs)
|
|
Timothy St. Clair |
942ec6f |
BuildRequires: mvn(org.apache.curator:curator-recipes)
|
|
Timothy St. Clair |
942ec6f |
BuildRequires: mvn(org.apache.curator:curator-test)
|
|
Timothy St. Clair |
942ec6f |
BuildRequires: mvn(org.apache.thrift:libthrift)
|
|
Timothy St. Clair |
942ec6f |
BuildRequires: mvn(org.eclipse.jetty:jetty-webapp)
|
|
Timothy St. Clair |
942ec6f |
BuildRequires: mvn(org.eclipse.jetty:jetty-server)
|
|
Timothy St. Clair |
942ec6f |
BuildRequires: mvn(org.eclipse.jetty:jetty-servlet)
|
|
Timothy St. Clair |
942ec6f |
BuildRequires: mvn(org.glassfish.web:javax.servlet.jsp)
|
|
Timothy St. Clair |
942ec6f |
BuildRequires: mvn(org.slf4j:slf4j-api)
|
|
Timothy St. Clair |
942ec6f |
BuildRequires: mvn(org.slf4j:slf4j-log4j12)
|
|
Timothy St. Clair |
8fdb4b9 |
BuildRequires: mvn(org.slf4j:slf4j-api)
|
|
Timothy St. Clair |
8fdb4b9 |
BuildRequires: mvn(org.powermock:powermock-module-junit4)
|
|
Timothy St. Clair |
8fdb4b9 |
BuildRequires: mvn(org.powermock:powermock-api-mockito)
|
|
Timothy St. Clair |
857c785 |
BuildRequires: mvn(org.apache.hadoop.fs.glusterfs:glusterfs-hadoop)
|
|
Huamin Chen |
f52f22b |
BuildRequires: mvn(org.eclipse.jetty:jetty-jsp)
|
|
Huamin Chen |
49d6114 |
BuildRequires: mvn(org.eclipse.jetty:jetty-webapp)
|
|
Huamin Chen |
49d6114 |
BuildRequires: mvn(org.eclipse.jetty:jetty-server)
|
|
Huamin Chen |
49d6114 |
BuildRequires: mvn(org.eclipse.jetty:jetty-servlets)
|
|
Huamin Chen |
49d6114 |
BuildRequires: mvn(org.eclipse.jetty:jetty-util)
|
|
Timothy St. Clair |
942ec6f |
|
|
Timothy St. Clair |
942ec6f |
# Test deps
|
|
Timothy St. Clair |
942ec6f |
BuildRequires: mvn(junit:junit)
|
|
Timothy St. Clair |
942ec6f |
|
|
Timothy St. Clair |
942ec6f |
BuildRequires: maven-local
|
|
Timothy St. Clair |
942ec6f |
BuildRequires: maven-plugin-bundle
|
|
Timothy St. Clair |
942ec6f |
BuildRequires: exec-maven-plugin
|
|
Timothy St. Clair |
942ec6f |
BuildRequires: maven-remote-resources-plugin
|
|
Timothy St. Clair |
942ec6f |
BuildRequires: maven-site-plugin
|
|
Timothy St. Clair |
942ec6f |
BuildRequires: replacer
|
|
Timothy St. Clair |
942ec6f |
BuildRequires: thrift
|
|
Timothy St. Clair |
942ec6f |
BuildRequires: systemd
|
|
Huamin Chen |
49d6114 |
BuildRequires: maven-shade-plugin
|
|
Timothy St. Clair |
942ec6f |
|
|
Timothy St. Clair |
942ec6f |
BuildArch: noarch
|
|
Timothy St. Clair |
942ec6f |
|
|
Timothy St. Clair |
942ec6f |
%description
|
|
Timothy St. Clair |
942ec6f |
Tachyon is a fault tolerant distributed file system
|
|
Timothy St. Clair |
942ec6f |
enabling reliable file sharing at memory-speed
|
|
Timothy St. Clair |
942ec6f |
across cluster frameworks, such as Spark and MapReduce.
|
|
Timothy St. Clair |
942ec6f |
It achieves high performance by leveraging lineage
|
|
Timothy St. Clair |
942ec6f |
information and using memory aggressively.
|
|
Timothy St. Clair |
942ec6f |
Tachyon caches working set files in memory, and
|
|
Timothy St. Clair |
942ec6f |
enables different jobs/queries and frameworks to
|
|
Timothy St. Clair |
942ec6f |
access cached files at memory speed. Thus, Tachyon
|
|
Timothy St. Clair |
942ec6f |
avoids going to disk to load data-sets that
|
|
Timothy St. Clair |
942ec6f |
are frequently read.
|
|
Timothy St. Clair |
942ec6f |
|
|
Timothy St. Clair |
942ec6f |
%package javadoc
|
|
Timothy St. Clair |
942ec6f |
Summary: Javadoc for %{name}
|
|
Timothy St. Clair |
942ec6f |
|
|
Timothy St. Clair |
942ec6f |
%description javadoc
|
|
Timothy St. Clair |
942ec6f |
This package contains javadoc for %{name}.
|
|
Timothy St. Clair |
942ec6f |
|
|
Timothy St. Clair |
942ec6f |
%prep
|
|
Timothy St. Clair |
942ec6f |
%setup -q -n tachyon-%{commit}
|
|
Timothy St. Clair |
942ec6f |
find -name '*.class' -print -delete
|
|
Timothy St. Clair |
942ec6f |
find -name '*.jar' -print -delete
|
|
Timothy St. Clair |
942ec6f |
|
|
Timothy St. Clair |
8fdb4b9 |
%patch0 -F2 -p1
|
|
Timothy St. Clair |
8fdb4b9 |
%patch1 -F2 -p1
|
|
Timothy St. Clair |
942ec6f |
|
|
Huamin Chen |
49d6114 |
sed -i "s|<artifactId>hadoop-client|<artifactId>hadoop-mapreduce-client-core|" core/pom.xml
|
|
Timothy St. Clair |
942ec6f |
|
|
Timothy St. Clair |
942ec6f |
%pom_xpath_remove "pom:repositories"
|
|
Timothy St. Clair |
942ec6f |
|
|
Timothy St. Clair |
942ec6f |
# Remove unnecessary plugin
|
|
Timothy St. Clair |
8fdb4b9 |
# %pom_remove_plugin :maven-assembly-plugin
|
|
Timothy St. Clair |
942ec6f |
|
|
Timothy St. Clair |
942ec6f |
# Fix unavailable jetty-jsp-2.1
|
|
Timothy St. Clair |
8fdb4b9 |
#%pom_remove_dep org.eclipse.jetty:jetty-jsp
|
|
Timothy St. Clair |
942ec6f |
%pom_add_dep org.glassfish.web:javax.servlet.jsp::compile
|
|
Huamin Chen |
49d6114 |
%pom_add_dep org.eclipse.jetty:jetty-util
|
|
Timothy St. Clair |
942ec6f |
|
|
Timothy St. Clair |
942ec6f |
#make additions for hadoop2
|
|
Timothy St. Clair |
942ec6f |
%pom_add_dep org.apache.hadoop:hadoop-common
|
|
Timothy St. Clair |
942ec6f |
%pom_add_dep org.apache.hadoop:hadoop-hdfs
|
|
Timothy St. Clair |
942ec6f |
|
|
Timothy St. Clair |
942ec6f |
%build
|
|
Timothy St. Clair |
5876695 |
|
|
Timothy St. Clair |
942ec6f |
%mvn_file org.tachyonproject:%{shortname} %{shortname}
|
|
Timothy St. Clair |
15bfd43 |
%mvn_build
|
|
Timothy St. Clair |
942ec6f |
|
|
Timothy St. Clair |
942ec6f |
%install
|
|
Timothy St. Clair |
942ec6f |
%mvn_install
|
|
Timothy St. Clair |
942ec6f |
|
|
Timothy St. Clair |
942ec6f |
#######################
|
|
Timothy St. Clair |
942ec6f |
# install system integration files
|
|
Timothy St. Clair |
942ec6f |
#######################
|
|
Timothy St. Clair |
942ec6f |
mkdir -p %{buildroot}%{_sysconfdir}/tmpfiles.d
|
|
Timothy St. Clair |
942ec6f |
install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/tmpfiles.d/%{shortname}.conf
|
|
Timothy St. Clair |
942ec6f |
|
|
Timothy St. Clair |
942ec6f |
#######################
|
|
Timothy St. Clair |
942ec6f |
mkdir -p %{buildroot}%{_unitdir}
|
|
Timothy St. Clair |
942ec6f |
install -m 0644 %{SOURCE2} %{SOURCE3} %{buildroot}%{_unitdir}/
|
|
Timothy St. Clair |
942ec6f |
|
|
Timothy St. Clair |
942ec6f |
#######################
|
|
Timothy St. Clair |
942ec6f |
mkdir -p %{buildroot}%{_libexecdir}/
|
|
Timothy St. Clair |
942ec6f |
install -m 0755 %{SOURCE4} %{buildroot}%{_libexecdir}/
|
|
Timothy St. Clair |
942ec6f |
install -m 0755 libexec/* %{buildroot}%{_libexecdir}/
|
|
Timothy St. Clair |
942ec6f |
|
|
Timothy St. Clair |
942ec6f |
#######################
|
|
Timothy St. Clair |
942ec6f |
mkdir -p %{buildroot}%{_bindir}/
|
|
Timothy St. Clair |
942ec6f |
install -m 0755 bin/tachyon* %{buildroot}%{_bindir}/
|
|
Timothy St. Clair |
942ec6f |
mv %{buildroot}%{_bindir}/%{shortname} %{buildroot}%{_bindir}/%{shortname}.sh
|
|
Timothy St. Clair |
942ec6f |
|
|
Timothy St. Clair |
942ec6f |
#######################
|
|
Timothy St. Clair |
942ec6f |
mkdir -p %{buildroot}/%{_sysconfdir}/%{shortname}
|
|
Timothy St. Clair |
942ec6f |
install -m 0644 conf/log4j.properties conf/slaves %{buildroot}/%{_sysconfdir}/%{shortname}
|
|
Timothy St. Clair |
942ec6f |
install -m 0644 %{SOURCE5} %{buildroot}/%{_sysconfdir}/%{shortname}
|
|
Timothy St. Clair |
942ec6f |
|
|
Timothy St. Clair |
942ec6f |
#######################
|
|
Timothy St. Clair |
942ec6f |
mkdir -p -m0755 %{buildroot}/%{_var}/log/%{shortname}
|
|
Timothy St. Clair |
942ec6f |
mkdir -p -m0755 %{buildroot}%{_var}/lib/%{shortname}/journal
|
|
Timothy St. Clair |
942ec6f |
|
|
Timothy St. Clair |
0f96cea |
#######################
|
|
Timothy St. Clair |
3368fcb |
mkdir -p -m0755 %{buildroot}/%{_datadir}/%{shortname}/web
|
|
Huamin Chen |
fa1aed4 |
cp -rf core/src/main/webapp %{buildroot}/%{_datadir}/%{shortname}/web
|
|
Timothy St. Clair |
3368fcb |
|
|
Timothy St. Clair |
3368fcb |
#######################
|
|
Timothy St. Clair |
5876695 |
# NOTE: The following is plugging into hadoop without
|
|
Timothy St. Clair |
0f96cea |
# having administrative steps.
|
|
Timothy St. Clair |
0f96cea |
mkdir -p -m0755 %{buildroot}/%{_datadir}/hadoop/common/lib
|
|
Timothy St. Clair |
c101000 |
%{__ln_s} %{_javadir}/%{shortname}.jar %{buildroot}/%{_datadir}/hadoop/common/lib
|
|
Timothy St. Clair |
8451d09 |
%{__ln_s} %{_javadir}/libthrift.jar %{buildroot}/%{_datadir}/hadoop/common/lib/%{shortname}-libthrift.jar
|
|
Timothy St. Clair |
0f96cea |
|
|
Timothy St. Clair |
942ec6f |
%files -f .mfiles
|
|
Timothy St. Clair |
942ec6f |
%doc LICENSE README.md
|
|
Timothy St. Clair |
942ec6f |
%dir %{_sysconfdir}/%{shortname}
|
|
Timothy St. Clair |
942ec6f |
%config(noreplace) %{_sysconfdir}/%{shortname}/log4j.properties
|
|
Timothy St. Clair |
942ec6f |
%config(noreplace) %{_sysconfdir}/%{shortname}/slaves
|
|
Timothy St. Clair |
942ec6f |
%config(noreplace) %{_sysconfdir}/%{shortname}/tachyon-env.sh
|
|
Timothy St. Clair |
942ec6f |
%config(noreplace) %{_sysconfdir}/tmpfiles.d/%{shortname}.conf
|
|
Timothy St. Clair |
942ec6f |
%{_bindir}/tachyon*
|
|
Timothy St. Clair |
942ec6f |
%{_libexecdir}/tachyon*
|
|
Timothy St. Clair |
942ec6f |
%config(noreplace) %{_sysconfdir}/tmpfiles.d/%{shortname}.conf
|
|
Timothy St. Clair |
942ec6f |
%{_unitdir}/*
|
|
Timothy St. Clair |
0f96cea |
%attr(0755,hdfs,hdfs) %dir %{_var}/log/%{shortname}
|
|
Timothy St. Clair |
0f96cea |
%attr(0755,hdfs,hdfs) %dir %{_var}/lib/%{shortname}/journal
|
|
Timothy St. Clair |
0f96cea |
%{_datadir}/hadoop/common/lib/%{shortname}.jar
|
|
Timothy St. Clair |
8451d09 |
%{_datadir}/hadoop/common/lib/%{shortname}-libthrift.jar
|
|
Timothy St. Clair |
3368fcb |
%{_datadir}/%{shortname}
|
|
Timothy St. Clair |
942ec6f |
|
|
Timothy St. Clair |
942ec6f |
%files javadoc -f .mfiles-javadoc
|
|
Timothy St. Clair |
942ec6f |
%doc LICENSE
|
|
Timothy St. Clair |
942ec6f |
|
|
Timothy St. Clair |
942ec6f |
############################################
|
|
Timothy St. Clair |
2f748db |
# NOTE: uses hdfs user vs. creating own hdfs required
|
|
Timothy St. Clair |
3368fcb |
#%%pre
|
|
Timothy St. Clair |
0f96cea |
#getent group tachyon >/dev/null || groupadd -f -r tachyon
|
|
Timothy St. Clair |
0f96cea |
#if ! getent passwd tachyon >/dev/null ; then
|
|
Timothy St. Clair |
3368fcb |
# useradd -r -g tachyon -d %%{_sharedstatedir}/%%{shortname} -s /sbin/nologin \
|
|
Timothy St. Clair |
3368fcb |
# -c "%%{shortname} daemon account" tachyon
|
|
Timothy St. Clair |
0f96cea |
#fi
|
|
Timothy St. Clair |
0f96cea |
#exit 0
|
|
Timothy St. Clair |
942ec6f |
|
|
Timothy St. Clair |
942ec6f |
%post
|
|
Timothy St. Clair |
942ec6f |
%systemd_post %{shortname}-master.service %{shortname}-slave.service
|
|
Timothy St. Clair |
942ec6f |
|
|
Timothy St. Clair |
942ec6f |
%preun
|
|
Timothy St. Clair |
942ec6f |
%systemd_preun %{shortname}-slave.service %{shortname}-master.service
|
|
Timothy St. Clair |
942ec6f |
|
|
Timothy St. Clair |
942ec6f |
%postun
|
|
Timothy St. Clair |
942ec6f |
%systemd_postun_with_restart %{shortname}-slave.service %{shortname}-master.service
|
|
Timothy St. Clair |
942ec6f |
|
|
Timothy St. Clair |
942ec6f |
%changelog
|
|
|
62d839b |
* Wed Apr 22 2015 Peter Robinson <pbrobinson@fedoraproject.org> 0.5.0-4.5c054ca
|
|
|
62d839b |
- ARMv7 now has hadoop
|
|
|
62d839b |
|
|
Huamin Chen |
ff0f67d |
* Wed Sep 10 2014 Huamin Chen <hchen@redhat.com> - 0.5.0-3.5c054ca
|
|
Huamin Chen |
ff0f67d |
- Update to 0.5.0 official
|
|
Huamin Chen |
ff0f67d |
|
|
Timothy St. Clair |
880f7a6 |
* Fri Sep 5 2014 Timothy St. Clair <tstclair@redhat.com> - 0.5.0-2.5c054ca
|
|
Timothy St. Clair |
857c785 |
- Update to 0.5.0 official
|
|
Timothy St. Clair |
857c785 |
|
|
|
cc68658 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-2.SNAPSHOT.fc8d2fd
|
|
|
cc68658 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
cc68658 |
|
|
Timothy St. Clair |
5876695 |
* Wed May 28 2014 Timothy St. Clair <tstclair@redhat.com> - 0.5.0-1.SNAPSHOT.fc8d2fd
|
|
Timothy St. Clair |
8fdb4b9 |
- Update to 0.5.0
|
|
Timothy St. Clair |
8fdb4b9 |
|
|
Timothy St. Clair |
0880d73 |
* Mon Feb 24 2014 Timothy St. Clair <tstclair@redhat.com> - 0.4.1-2.SNAPSHOT.4b9c806
|
|
Timothy St. Clair |
0880d73 |
- Update due to cascading dependencies around java-headless
|
|
Timothy St. Clair |
0880d73 |
|
|
Timothy St. Clair |
2f748db |
* Mon Feb 17 2014 Timothy St. Clair<tstclair@redhat.com> 0.4.1-1.SNAPSHOT.4b9c806
|
|
Timothy St. Clair |
2f748db |
- Update to latest, with updated fixes for rawhide
|
|
Timothy St. Clair |
c101000 |
|
|
Timothy St. Clair |
0f96cea |
* Fri Dec 6 2013 Timothy St. Clair<tstclair@redhat.com> 0.4.0-6.SNAPSHOT.8e4e9a4
|
|
Timothy St. Clair |
112474a |
- Update to latest modifications
|
|
Timothy St. Clair |
112474a |
|
|
Timothy St. Clair |
5ed49e6 |
* Wed Nov 20 2013 Timothy St. Clair<tstclair@redhat.com> 0.4.0-5.SNAPSHOT.515c2c8
|
|
Timothy St. Clair |
5ed49e6 |
- Update to exclude arm due to missing dependencies
|
|
Timothy St. Clair |
5ed49e6 |
|
|
Timothy St. Clair |
942ec6f |
* Fri Nov 15 2013 Timothy St. Clair<tstclair@redhat.com> 0.4.0-4.SNAPSHOT.515c2c8
|
|
Timothy St. Clair |
942ec6f |
- Patches accepted upstream, thus changing source url to be canonical
|
|
Timothy St. Clair |
942ec6f |
|
|
Timothy St. Clair |
942ec6f |
* Thu Nov 7 2013 Timothy St. Clair<tstclair@redhat.com> 0.4.0-3.SNAPSHOT.9d66149
|
|
Timothy St. Clair |
942ec6f |
- Modifications from system testing.
|
|
Timothy St. Clair |
942ec6f |
|
|
Timothy St. Clair |
942ec6f |
* Mon Nov 4 2013 Timothy St. Clair<tstclair@redhat.com> 0.4.0-2.SNAPSHOT.9d66149
|
|
Timothy St. Clair |
942ec6f |
- System integration and testing.
|
|
Timothy St. Clair |
942ec6f |
|
|
Timothy St. Clair |
942ec6f |
* Mon Oct 28 2013 Timothy St. Clair <tstclair@redhat.com> 0.4.0-1.SNAPSHOT.9d66149
|
|
Timothy St. Clair |
942ec6f |
- Pre-release update to 0.4.0 with script modifications.
|
|
Timothy St. Clair |
942ec6f |
|
|
Timothy St. Clair |
942ec6f |
* Thu Oct 10 2013 Timothy St. Clair <tstclair@redhat.com> 0.3.0-1
|
|
Timothy St. Clair |
5876695 |
- Update to the latest in preparation for release.
|
|
Timothy St. Clair |
942ec6f |
|
|
Timothy St. Clair |
942ec6f |
* Sun Sep 29 2013 gil cattaneo <puntogil@libero.it> 0.2.1-1
|
|
Timothy St. Clair |
942ec6f |
- initial rpm
|