Github user shivzone commented on a diff in the pull request:
https://github.com/apache/incubator-hawq/pull/1294#discussion_r142810868
--- Diff: pxf/pxf-service/src/scripts/pxf-service ---
@@ -35,9 +35,14 @@ else
source $env_script
fi
-pxf_user=${PXF_USER:-pxf}
+pxf_user=${PXF_USER}
instance_port=${PXF_PORT:-51200}
instance_name=pxf-service
+if [ ! -z '@pxfDefaultUser@' ]; then
+ allow_custom_pxf_user=true
+else
+ allow_custom_pxf_user=false
+fi
if [ -z $PXF_HOME ]; then
--- End diff --
We don't need to set instance_owner when PXF_HOME is set
---