|Ambari||1.7.1 / 2.1.2|
After upgrading from Ambari 1.7.1 to Ambari 2.1.2, PXF fails to start via Ambari with the following error in the Ambari GUI:
If the log is reviewed in the Ambari GUI, the following error message will be seen:
File "/var/lib/ambari-agent/cache/stacks/PHD/3.0/services/PXF/package/scripts/pxfservice.py", line 19, in start
File "/var/lib/ambari-agent/cache/stacks/PHD/3.0/services/PXF/package/scripts/pxfservice.py", line 12, in configure
File "/var/lib/ambari-agent/cache/stacks/PHD/3.0/services/PXF/package/scripts/params.py", line 23, in <module>
stack_version = format_stack_version(stack_version_unformatted)
NameError: name 'format_stack_version' is not defined
This is due to a software bug; there is a call to a function that does not exist.
To avoid running into this issue, HAWQ, PXF, and the HAWQ AMBARI plugin should be updated before upgrading AMBARI to version 2.1.2.
If Ambari has already been updated to version 2.1.2, follow one of the actions below:
- Upgrade the HAWQ, PXF, and HAWQ AMBARI PLUGINs (preferred)
- Take these steps on the Ambari node as user "root":
stack_version = format_stack_version(stack_
stack_version = format_phd_stack_version(
Notes: Discussed in https://jira.eng.pivotal.io/browse/GPSQL-3266