[
https://issues.apache.org/jira/browse/HADOOP-7521?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13080135#comment-13080135
]
Alejandro Abdelnur commented on HADOOP-7521:
--------------------------------------------
Using usr/ leads to the following layout:
{code}
usr/
+ bin/
+ sbin/
+ etc/
+ libexec/
+ share/
+ lib/
{code}
IMO the layout should be:
{code}
<FOO>/
+ usr/bin/
+ usr/sbin/
+ usr/etc/
+ usr/libexec/
+ usr/share/
+ usr/lib/
+ usr/lib64/
{code}
Where <FOO> could be the same for common, hdfs, mapred.
When doing TARs you have everything under <FOO>
When doing RPM/DEB the packaging logic removes the <FOO> level.
In addition this would play nicely with runtime dirs like /var/log, /var/lib,
/var/run which could work out for <FOO> when using TARs and out fo / when doing
RPM/DEB.
Thoughts?
PS: I'm OK with using <FOO>/etc/ instead <FOO>/usr/etc/ also, still things are
under the <FOO> prefix for TAR usage.
> bintar created tarball should use a common directory for prefix
> ---------------------------------------------------------------
>
> Key: HADOOP-7521
> URL: https://issues.apache.org/jira/browse/HADOOP-7521
> Project: Hadoop Common
> Issue Type: Bug
> Components: build
> Affects Versions: 0.23.0
> Environment: Java 6, Maven, Linux/Mac
> Reporter: Eric Yang
> Assignee: Eric Yang
> Attachments: HADOOP-7521.patch
>
>
> The binary tarball contains the directory structure like:
> {noformat}
> hadoop-common-0.23.0-SNAPSHOT-bin/bin
> /etc/hadoop
> /libexec
> /sbin
> /share/hadoop/common
> {noformat}
> It would be nice to rename the prefix directory to a common directory where
> it is common to all Hadoop stack software. Therefore, user can untar hbase,
> hadoop, zookeeper, pig, hive all into the same location and run from the top
> level directory without manually renaming them to the same directory again.
> By default the prefix directory can be /usr. Hence, it could merge with the
> base OS.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira