[
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