When working with PXF, the query might fail with an error like:
ERROR: remote component error (500) from '127.0.0.1:5888'...
Unable to read configuration for server SQLServer from
<PATH_TO_PXF_CONF>/servers/<Server_name> (libchurl.c:985) (seg0 slicel xxx.xxx.xxx.xxx:xxxx
pid=74260) (libchurl.c:985)
The PXF log (located in $PXF_CONF/logs) on the segment host will give us more detail:
java.lang.RuntimeException: Unable to read configuration for server SQLServer from /usr/local/greenplum-db/pxf_conf/servers/SQLServer
...
Caused by: [com.ctc.wstx.exc.WstxLazyException] com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character '2' (code 50) (expected a name start character)at [row,col,system-id]: [20,22,"file:/usr/local/greenplum-db/pxf_conf/servers/SQLServer/jdbc-site.xml]
at [row,col,system-id]: [20,22,"file:/usr/local/greenplum-db/pxf_conf/servers/SQLServer/jdbc-site.xml]
...