Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 44217 invoked from network); 14 Feb 2011 19:04:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Feb 2011 19:04:25 -0000 Received: (qmail 26366 invoked by uid 500); 14 Feb 2011 19:04:25 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 26185 invoked by uid 500); 14 Feb 2011 19:04:22 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 26088 invoked by uid 99); 14 Feb 2011 19:04:21 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Feb 2011 19:04:21 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Feb 2011 19:04:18 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 779571A41BB for ; Mon, 14 Feb 2011 19:03:57 +0000 (UTC) Date: Mon, 14 Feb 2011 19:03:57 +0000 (UTC) From: "Eric Yang (JIRA)" To: common-issues@hadoop.apache.org Message-ID: <992493509.15432.1297710237486.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Commented: (HADOOP-6255) Create an rpm integration project MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-6255?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12994423#comment-12994423 ] Eric Yang commented on HADOOP-6255: ----------------------------------- Steve, 1. The RPM is relocatable for /var/log/hadoop to anywhere. During installation, the RPM install phase, update-hadoop-env.sh will adjust log directory to user specified directory. For example: {noformat} rpm -i hadoop-[version].[arch].rpm \ --relocate /usr=/usr/local/hadoop-0.20.100 \ --relocate /var/log=/usr/local/hadoop-0.20.100/logs \ --relocate /etc/hadoop=/usr/local/hadoop-0.20.100/conf {noformat} 2. For now, rpmbuild should be sufficient. After hadoop switching to maven, it will be more valuable to have rpm testing in the integration test phase. 3. This should work in both RHEL/CentOS 5.5. This has been tested on RHEL 5.1, 5.5. 4. .deb built should be cross platform (tested on RHEL 5.1), but it requires jdeb. Did you run "ant deb" instead of "ant rpm"? Allen, The current design allows have configuration directory locatable. Example: {noformat} rpm -i hadoop-[version].[arch].rpm \ --relocate /usr=/usr/local/hadoop \ --relocate /etc/hadoop=/usr/local/etc/hadoop {noformat} This works fine, but it will have /usr/local/hadoop/conf hosting the actual files, and /usr/local/etc/hadoop as symlink to /usr/local/hadoop/conf. I guess you prefer to have /usr/local/etc/hadoop host the file, and /usr/local/hadoop/conf symlink to /usr/local/etc/hadoop. Right? I will make this change. There are two possible places to overwrite path configuration. One is at build time, and second one is at installation time. Build Time: build.properties of the ant build, can overwrite the path locations. * package.prefix - Location of binary file prefix * package.conf.dir - Location of configuration directory * package.log.dir - Location of log directory * package.pid.dir - Location of pid directory Install Time: rpm allows write of the location at installation time by using --relocate directive. Debian does not support relocation, hence it needs to be controlled at compile time. In the current patch, it does not expose the build time parameters. I will expose the build time parameters in the next patch. Nigel, I will write a wiki page for this, any recommended location? > Create an rpm integration project > --------------------------------- > > Key: HADOOP-6255 > URL: https://issues.apache.org/jira/browse/HADOOP-6255 > Project: Hadoop Common > Issue Type: New Feature > Affects Versions: 0.20.100 > Reporter: Owen O'Malley > Assignee: Eric Yang > Fix For: 0.20.100 > > Attachments: HADOOP-6255-branch-0.20-security.patch, HADOOP-6255.patch, deployment.pdf > > > We should be able to create RPMs for Hadoop releases. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira