hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Esteban Gutierrez (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-9844) zookeepers.sh - ZKServerTool log permission issue
Date Wed, 16 Nov 2016 22:23:59 GMT

     [ https://issues.apache.org/jira/browse/HBASE-9844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Esteban Gutierrez updated HBASE-9844:
-------------------------------------
    Affects Version/s: 2.0.0

> zookeepers.sh - ZKServerTool log permission issue
> -------------------------------------------------
>
>                 Key: HBASE-9844
>                 URL: https://issues.apache.org/jira/browse/HBASE-9844
>             Project: HBase
>          Issue Type: Bug
>          Components: shell
>    Affects Versions: 0.94.12, 2.0.0
>         Environment: Linux
>            Reporter: Sebastien Barrier
>            Priority: Minor
>              Labels: beginner
>
> The zookeepers.sh script exec the following command during it's process
> /usr/local/hbase/bin/hbase org.apache.hadoop.hbase.zookeeper.ZKServerTool
> before doing this it also change of directory to the hbase binary for example 'cd /usr/local/hbase/bin'
if the permissions of the directory are differents from the user running the ZKServerTool
for example hadoop user and root for the directory there's the following error because it
try to create a log file (hadoop.log) in the current directory
> log4j:ERROR setFile(null,true) call failed.
> java.io.FileNotFoundException: ./hadoop.log (Permission denied)
>         at java.io.FileOutputStream.open(Native Method)
>         at java.io.FileOutputStream.<init>(FileOutputStream.java:212)
>         at java.io.FileOutputStream.<init>(FileOutputStream.java:136)
> the log should be written in HBASE_LOG_DIR and not in the current directory.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message