Description
The permission of phoenix-*-queryserver.log is different from umask we set.
For example, when we set umask to 077, the permission of phoenix-*-queryserver.log should be 600, but it's 666:
$ umask 077 $ <phenix-home>/bin/queryserver.py start starting Query Server, logging to /var/log/hbase/phoenix-hbase-queryserver.log $ ll /var/log/hbase/phoenix* -rw-rw-rw- 1 hbase hadoop 6181 Nov 27 13:52 phoenix-hbase-queryserver.log -rw------- 1 hbase hadoop 1358 Nov 27 13:52 phoenix-hbase-queryserver.out
It looks like the permission of phoenix-*-queryserver.out is correct (600).
queryserver.py opens QueryServer process as a sub process but it looks like the umask is not inherited. I think we need to inherit the umask to the sub process.
Attachments
Issue Links
- is superceded by
-
PHOENIX-6162 Apply PHOENIX-5594 to the phoenix-queryserver repo
- Closed
- links to