Blake Williams created HADOOP-9644: -------------------------------------- Summary: Hadoop 1.2 RPM build missing task-log4j.properties Key: HADOOP-9644 URL: https://issues.apache.org/jira/browse/HADOOP-9644 Project: Hadoop Common Issue Type: Bug Components: build Affects Versions: 1.2.0 Environment: CentOS 5.9 64-bit, updated version of libtool Reporter: Blake Williams Priority: Trivial
When running ant rpm, I receive the following error: {noformat} [rpm] + '[' /tmp/hadoop_package_build_root/BUILD/etc/hadoop '!=' /tmp/hadoop_package_build_root/BUILD//usr/conf ']' [rpm] + rm -rf /tmp/hadoop_package_build_root/BUILD//usr/etc [rpm] + /usr/lib/rpm/redhat/brp-compress [rpm] + /usr/lib/rpm/redhat/brp-strip /usr/bin/strip [rpm] + /usr/lib/rpm/redhat/brp-strip-static-archive /usr/bin/strip [rpm] + /usr/lib/rpm/redhat/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump [rpm] + /usr/lib/rpm/brp-python-bytecompile [rpm] Processing files: hadoop-1.2.0-1 [rpm] warning: File listed twice: /usr/libexec [rpm] warning: File listed twice: /usr/libexec/hadoop-config.sh [rpm] warning: File listed twice: /usr/libexec/jsvc.amd64 [rpm] Checking for unpackaged file(s): /usr/lib/rpm/check-files /tmp/hadoop_package_build_root/BUILD [rpm] error: Installed (but unpackaged) file(s) found: [rpm] /etc/hadoop/task-log4j.properties [rpm] File listed twice: /usr/libexec [rpm] File listed twice: /usr/libexec/hadoop-config.sh [rpm] File listed twice: /usr/libexec/jsvc.amd64 [rpm] Installed (but unpackaged) file(s) found: [rpm] /etc/hadoop/task-log4j.properties [rpm] [rpm] [rpm] RPM build errors: BUILD FAILED /root/hadoop-1.2.0/build.xml:1887: '/usr/bin/rpmbuild' failed with exit code 1 {noformat} The following patch fixes the issue: {noformat} *** /dev/null 2013-06-14 15:27:11.000000000 +1000 --- src/packages/rpm/spec/hadoop.spec 2013-06-14 15:31:46.000000000 +1000 *************** *** 194,199 **** --- 194,200 ---- %config(noreplace) %{_conf_dir}/ssl-server.xml.example %config(noreplace) %{_conf_dir}/taskcontroller.cfg %config(noreplace) %{_conf_dir}/fair-scheduler.xml + %config(noreplace) %{_conf_dir}/task-log4j.properties %{_prefix} %attr(0755,root,root) %{_prefix}/libexec %attr(0755,root,root) /etc/rc.d/init.d {noformat} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira