Home > Back-end >  MAC running zookeeper zkServer. Sh showing FAILED TO WRITE the PID
MAC running zookeeper zkServer. Sh showing FAILED TO WRITE the PID

Time:09-22

Zookeeper installation package: apache - they are - 3.6.1 track - bin

MAC: 10.13.6 (17 g65)

In terminal bin directory input command "sh zkServer. Sh start", according to the following error:

ZkServer. Sh: line 169: - e/TMP/zookeeper/data1/zookeeper_server pid: No to the file or directory
FAILED TO WRITE the PID



To view the conf/zoo. CFG, dataDir for/TMP/zookeeper/data1



View/TMP/zookeeper permissions, folder in addition to data1 and a version - 2 directory, a group of wheel, and the other and the group are rx permissions, no w:

DRWXR MAC wheel 102 9 19 - xr - x 3 separate zookeeper

I will then go on to zookeeper, zookeeper/data1 and zookeeper/version - 2 other permissions are w, (they execute the command: chmod o + w... )

* * _ don't have any effect, however, _ * *

I will then go on to zookeeper, zookeeper/data1 and zookeeper/version - 2 groups are changes to the staff, (because they are running scripts directory group staff)

DRWXR xr - x 11 MAC staff 374 9 19 16:27 apache - they are - 3.6.1 track - bin

DRWXR - XRWX 4 MAC staff 136 September 22 00:53 zookeeper
DRWXR xr - 102 9 x 3 MAC staff 22 00:53 data1
DRWXR xr - x 3 MAC staff 102 9 19 separate version - 2

* * _ but still don't have any effect, _ * *

In the end I will dataDir home directory instead of a directory, to solve this problem, but why changes in front of the group and permissions can solve this problem? Which bosses to solve please, thank you very much

CodePudding user response:

Look at the comments

All wrote, cannot use TMP, TMP just demo

CodePudding user response:

Datadir=/TMP/zookeeper can't match this
  • Related