Support Questions
Find answers, ask questions, and share your expertise

Need help to create RPM from hadoop tar file

Need help to create RPM from hadoop tar file

I am getting error to convert hadoop tar file to RPM. Might be some misconfiguration in specs file i am not able to figure it out.

Error: ERROR 0002: file '/lib/native/libhdfs.so.0.0.0' contains an invalid rpath '/home/jenkins/tools/java/latest/jre/lib/amd64/server' in [/home/jenkins/tools/java/latest/jre/lib/amd64/server] error: Bad exit status from /var/tmp/rpm-tmp.3pDenQ (%install)

My Spec file:

Name:           hadoop
Version:        2.6.0
Release:        1
Summary:        Test Hadoop RPM


License:        GPL
URL:            http://localhost
Source0:        hadoop-2.6.0.tar.gz
BuildRoot:      %{_tmppath}/%{name}-buildroot


%description
This ia a Test Hadoop RPM


%prep
%setup -q


%install
mkdir -p "$RPM_BUILD_ROOT"
cp -R * "$RPM_BUILD_ROOT"
%clean
rm -rf $RPM_BUILD_ROOT


1 REPLY 1

Re: Need help to create RPM from hadoop tar file

my tar file hadoop-2.6.0.tar.gz is under /home/rpmbuild/SOURCE/ and spec file under /home/rpmbuild/SPECS/