[
https://issues.apache.org/jira/browse/BIGTOP-236?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14056974#comment-14056974
]
Yi Zhou commented on BIGTOP-236:
--------------------------------
Thanks Mark and Roman for given suggestions and comments.
Hi Mark,
Now I am trying to make changes as per your instructions, below is my changed
for details.
I am not sure about these changed in hbase.spec. Could you kindly pls. help to
review the changed ?
#1 bigtop-packages/src/common/hbase/hbase.svc( change to /var/lib/hbase)
WORKING_DIR="/var/lib/hbase"
#2 bigtop-packages/src/deb/hbase/hbase.dirs ( add /var/lib/hbase entry)
/var/lib/hbase
#3 bigtop-packages/src/deb/hbase/hbase.postinst ( add /var/lib/hbase path)
chown hbase:hbase -R /var/run/hbase /var/log/hbase /var/lib/hbase
#4 bigtop-packages/src/rpm/hbase/SPECS/hbase.spec( Changed from /var/run/hbase
to /var/lib/hbase and add an entry in %file):
1) getent passwd hbase 2>&1 > /dev/null || /usr/sbin/useradd -c "HBase" -s
/sbin/nologin -g hbase -r -d /var/lib/hbase hbase 2> /dev/null || :
2) Add a entry in %file marco section:
%dir /var/lib/%{name}
> The user installed by hbase gets an incorrect home directory
> ------------------------------------------------------------
>
> Key: BIGTOP-236
> URL: https://issues.apache.org/jira/browse/BIGTOP-236
> Project: Bigtop
> Issue Type: Task
> Components: General
> Affects Versions: 0.1.0, 0.7.0
> Reporter: Peter Linnell
> Assignee: Peter Linnell
> Priority: Trivial
> Labels: patch
> Attachments: BIGTOP-236.patch, BIGTOP-236_2.patch
>
>
> HBase installs its user with a home directory of /var/run/hbase which is
> inconsistent with other components and should really be /var/lib/hbase
--
This message was sent by Atlassian JIRA
(v6.2#6252)