Pivotal Knowledge Base

Follow

Unable to stop PXFD service in PHD 1.1.1.0 with Isilon

Environment

Product Version
Pivotal Hadoop 1.1.1.0
Isilon OneFS  
OS RHEL 6.x

Symptom

[root@hdc1 ]# /usr/lib/gphd/pxfd/stop-pxf.sh 
-bash: kill: (1234567) - No such process

Cause

In order for PXF to work with isilon in PHD 1.1.1.0 we have a special build that executes pxf in its own JVM process. For this special build we use script "/usr/lib/gphd/pxfd/stop-pxf.sh" to stop the pxf services.  stop-pxf.sh attempts to find the process file in /tmp/.pxfproc.pid,But in some cases the OS might delete files older then a few months from /tmp wich results in the above error

Fix

This is fixed in PHD 2.1

Workaround 1

  1. find the running pxf process
    [root@hdc1 ]# ps -ef | egrep -i pxfd
    root      10357      1  0  2014 ?        13:20:25 /usr/java/latest/bin/java -DSTART=./start.config -jar start.jar jetty.port=45000 path=/etc/gphd/hadoop/conf/:/etc/gphd/hbase/conf:/etc/gphd/hive/conf/:/usr/lib/gphd/pxfd/lib/jetty-io-7.6.11.v20130520.jar
    root     406009 403647  0 05:26 pts/3    00:00:00 egrep -i pxf
    
  2. Kill the process
    [root@hdc1 ]# kill 10357
  3. Restart pxf as required
    [root@hdc1 ]# /usr/lib/gphd/pxfd/start-pxf.sh
    HOME DIRECTORY: /usr/lib/gphd/pxfd/
    LISTENING AT PORT: 45000
    JAVA_HOME:   /usr/java/default
    93426

Workaround 2

  1. change pid file location in /usr/lib/gphd/pxfd/start-pxf.sh to /var/tmp
    echo $! > /var/tmp/.pxfproc.pid
  2. change pid file location in /usr/lib/gphd/pxfd/stop-pxf.sh
    PXFID=$(cat /var/tmp/.pxfproc.pid)

Comments

Powered by Zendesk