frankjkelly opened a new issue #6836:
URL: https://github.com/apache/pulsar/issues/6836


   **Describe the bug**
   Setting PULSAR_PID_DIR="/tmp" but I see no "obvious" pid file in /tmp 
directory
   
   **To Reproduce**
   Steps to reproduce the behavior:
   1) Set PULSAR_PID_DIR e.g. in my Docker file
   ```
   ENV PULSAR_PID_DIR="/tmp"
   RUN export PULSAR_PID_DIR
   ```
   2) Start Pulsar
   ```
   echo "PULSAR_PID_DIR=${PULSAR_PID_DIR}"
   
   /pulsar/bin/pulsar standalone 
   ```
   3) Wait
   4) Check /tmp
   
   **Expected behavior**
   I would expect some kind of pid file (not sure what filename to expect as 
it's not specified in the docs) e.g. ```pulsar.pid```
   
   **Screenshots**
   ```
   root@407af679359d:/pulsar# env | grep PULSAR
   PULSAR_PID_DIR=/tmp
   PULSAR_ROOT_LOGGER=INFO,CONSOLE
   PULSAR_MEM=-Xmx512m -XX:MaxDirectMemorySize=512m
   root@407af679359d:/pulsar# ls -la /tmp
   total 8276
   drwxrwxrwt 1 root root    4096 Apr 28 21:37 .
   drwxr-xr-x 1 root root    4096 Apr 28 21:37 ..
   drwxr-xr-x 1 root root    4096 Apr 28 21:37 hsperfdata_root
   drwxr-xr-x 2 root root    4096 Apr 28 21:37 jna-3506402
   -rw-r--r-- 1 root root  203184 Apr 28 21:37 liblz4-java3029699341358424792.so
   -rw-r--r-- 1 root root 8045305 Apr 28 21:37 
librocksdbjni3787942843072736013.so
   drwxr-xr-x 2 root root    4096 Apr 28 21:37 native3657826586678648839
   -rw-r--r-- 1 root root    2217 Apr 28 21:37 stderr.log
   -rw-r--r-- 1 root root  189104 Apr 28 21:37 stdout.log
   root@407af679359d:/pulsar# ps -ef | grep pulsar
   root         1     0  0 21:37 ?        00:00:00 sh -c /pulsar-start.sh
   root         7     1  0 21:37 ?        00:00:00 /bin/sh /pulsar-start.sh
   root         8     7 99 21:37 ?        00:00:52 
/usr/local/openjdk-8/bin/java -cp /pulsar/conf:::/pulsar/lib/*: 
-Dlog4j.configurationFile=log4j2.yaml -Djute.maxbuffer=10485760 
-Djava.net.preferIPv4Stack=true -Dpulsar.allocator.exit_on_oom=true 
-Dio.netty.recycler.maxCapacity.default=1000 
-Dio.netty.recycler.linkCapacity=1024 -Xmx512m -XX:MaxDirectMemorySize=512m 
-XX:+UseG1GC -XX:MaxGCPauseMillis=10 -XX:+ParallelRefProcEnabled 
-XX:+UnlockExperimentalVMOptions -XX:+AggressiveOpts -XX:+DoEscapeAnalysis 
-XX:ParallelGCThreads=32 -XX:ConcGCThreads=32 -XX:G1NewSizePercent=50 
-XX:+DisableExplicitGC -XX:-ResizePLAB -Dpulsar.log.appender=RoutingAppender 
-Dpulsar.log.dir=/pulsar/logs -Dpulsar.log.level=info 
-Dpulsar.routing.appender.default=Console 
-Dpulsar.functions.process.container.log.dir=/pulsar/logs 
-Dpulsar.functions.java.instance.jar=/pulsar/instances/java-instance.jar 
-Dpulsar.functions.python.instance.file=/pulsar/instances/python-instance/python_instance_main.py
 -Dpulsar.functions.extra.dependencies.dir=/pulsar/instances/deps 
-Dpulsar.functions.instance.classpath=/pulsar/conf:::/pulsar/lib/*: 
-javaagent:/pulsar/lib/org.aspectj-aspectjweaver-1.9.2.jar 
-Dzookeeper.4lw.commands.whitelist=* -Dzookeeper.snapshot.trust.empty=true 
-Dpulsar.log.file=pulsar-standalone.log 
org.apache.pulsar.PulsarStandaloneStarter --config /pulsar/conf/standalone.conf
   root       622   132  0 21:38 pts/0    00:00:00 grep pulsar
   root@407af679359d:/pulsar# whoami
   root
   ```
   
   **Desktop (please complete the following information):**
   ```
   root@407af679359d:/pulsar# uname --all
   Linux 407af679359d 4.19.76-linuxkit #1 SMP Thu Oct 17 19:31:58 UTC 2019 
x86_64 GNU/Linux
   ```
   
   **Additional context**
   Add any other context about the problem here.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to