[
https://issues.apache.org/jira/browse/NIFI-472?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14604915#comment-14604915
]
Aldrin Piri commented on NIFI-472:
----------------------------------
Must do some formatting but have this completed. Simple changes to the
assembly occurred to allow shared user/group privileges and the scripts were
used to perform the run.as operation.
One caveat that caught me for quite some time is that it seems that directory
permissions are not preserved via tar on OS X systems, and accordingly, will
not work out of the box using the mechanisms provided in this current state.
Not sure if it makes more sense to try to address via scripting (updating the
permissions of the affected files/folders) or if instructions on how to
manually perform these changes are preferred.
Extracted directory structure using tar on CentOS 7
{code}
[apiri ~]$ ls -l nifi-0.2.0-incubating-SNAPSHOT
total 96
drwxrwxr-x 2 apiri apiri 122 Jun 28 16:52 bin
drwxrwxr-x 2 apiri apiri 124 Jun 28 16:52 conf
-rw-r--r-- 1 apiri apiri 683 Apr 22 16:58 DISCLAIMER
drwxrwxr-x 3 apiri apiri 17 Jun 28 16:52 docs
drwxrwxr-x 3 apiri apiri 4096 Jun 28 16:52 lib
-rw-r--r-- 1 apiri apiri 48317 Jun 28 14:17 LICENSE
-rw-r--r-- 1 apiri apiri 29567 Jun 28 14:17 NOTICE
-rw-r--r-- 1 apiri apiri 5197 Apr 22 16:58 README
{code}
Extracted directory structure on OS X 10.9.x
{code}
± % ls -l nifi-0.2.0-incubating-SNAPSHOT
total 92
-rw-r--r-- 1 apiri 683 Apr 22 16:58 DISCLAIMER
-rw-r--r-- 1 apiri 48317 Jun 28 14:17 LICENSE
-rw-r--r-- 1 apiri 29567 Jun 28 14:17 NOTICE
-rw-r--r-- 1 apiri 5197 Apr 22 16:58 README
drwxr-xr-x 8 apiri 272 Jun 28 16:49 bin
drwxr-xr-x 7 apiri 238 Jun 28 16:49 conf
drwxr-xr-x 3 apiri 102 Jun 28 16:49 docs
drwxr-xr-x 34 apiri 1156 Jun 28 16:49 lib
{code}
This is using the default tar and gtar via homebrew.
> When running NiFi with the "run.as" property specified in the bootstrap.conf
> file, the run.as user should own the nifi.pid file
> -------------------------------------------------------------------------------------------------------------------------------
>
> Key: NIFI-472
> URL: https://issues.apache.org/jira/browse/NIFI-472
> Project: Apache NiFi
> Issue Type: Bug
> Components: Core Framework
> Reporter: Mark Payne
> Assignee: Aldrin Piri
> Fix For: 0.2.0
>
> Attachments:
> 0001-Providing-ownership-of-the-nifi.pid-file-in-the-case.patch
>
>
> Currently, if I set the "run.as" user to something like "nifi" and then I run
> "bin/nifi.sh start", a file named "nifi.pid" is created in the bin/
> directory, but it is owned by me. It should instead be owned by the "run.as"
> user (nifi).
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)