Pivotal Knowledge Base

Follow

How to change pxf-env.sh on HDB system managed by Ambari

Environment

Product Version
Pivotal HDB 1.3.x, 2.x
OS RHEL 6

Purpose

This article provides a method to modify pxf-env.sh on the HDB cluster that is managed by Ambari.

Cause

As there is no interface on the Ambari web interface to modify pxf-env.sh at the moment, any manual change to this file on servers will be reversed to 'default' after PXF service is restarted via Ambari web interface. To prevent the rollback from happening, the template file of pxf-env.sh should be changed and propagated to all nodes running PXF service.

An internal JIRA AMBR-516 has filed to request the feature for changing pxf-env.sh via Ambari interface. Until the feature is ready, use the procedure below to update pxf-env.sh.

Procedure

1.  Make a change first to the template file of pxf-env.sh on the Ambari server node, for example:

/var/lib/ambari-server/resources/common-services/PXF/3.0.0/package/templates/pxf-env.j2

2. Restart the Ambari server service to propagate the change to Ambari agents:

# service ambari-server restart

3. Restart the PXF service on all nodes on Ambari web console:

Additional Information (Internal)

  1. AMBR-516

 

Comments

Powered by Zendesk