diff --git a/hadoop.spec b/hadoop.spec index 8316d3c051cf3764cb0df5e13aa77e2ade06ead1..4119666c17485d5807402e171909b1cca6807cf2 100644 --- a/hadoop.spec +++ b/hadoop.spec @@ -39,7 +39,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: java-1.8.0-openjdk-devel maven hostname maven-local tomcat cmake snappy openssl-devel BuildRequires: cyrus-sasl-devel chrpath systemd protobuf2-compiler protobuf2-devel protobuf2-java protobuf2 BuildRequires: leveldbjni leveldb-java hawtjni-runtime gcc-c++ -BuildRequires: npm +BuildRequires: npm chrpath Requires: java-1.8.0-openjdk protobuf2-java apache-zookeeper %description @@ -905,6 +905,9 @@ sed -i "s|{|%{_var}/log/hadoop-hdfs/*.audit\n{|" %{buildroot}%{_sysconfdir}/logr # hdfs init script install -m 755 %{SOURCE8} %{buildroot}%{_sbindir} +chrpath -d %{buildroot}%{_bindir}/container-executor +chrpath -d %{buildroot}%{_bindir}/test-container-executor + %pretrans -p hdfs path = "%{_datadir}/%{name}/hdfs/webapps" st = posix.stat(path)