提交 c3deb28b 编写于 作者: L Lisa Owen 提交者: David Yozie

docs - pxf troubleshooting - address jdbc timezone error (#6203)

* docs - pxf troubleshooting - address jdbc timezone error

* jdbc driver returns the error

* can set other options as well

* Update troubleshooting_pxf.html.md.erb
上级 92b440fa
......@@ -198,3 +198,25 @@ Perform the following procedure to decrease the maximum number of Tomcat threads
$ gpadmin@gpmaster$ gpssh -e -v -f seghostfile "/usr/local/greenplum-db/pxf/bin/pxf restart"
```
## <a id="pxf-timezonecfg"></a>Addressing PXF JDBC Connector Time Zone Errors
You use the PXF JDBC connector to access data stored in an external SQL database. Depending upon the JDBC driver, the driver may return an error if there is a mismatch between the default time zone set for the PXF server and the time zone set for the external SQL database.
For example, if you use the PXF JDBC connector to access an Oracle database with a conflicting time zone, PXF logs an error similar to the following:
``` pre
SEVERE: Servlet.service() for servlet [PXF REST Service] in context with path [/pxf] threw exception
java.io.IOException: ORA-00604: error occurred at recursive SQL level 1
ORA-01882: timezone region not found
```
Should you encounter this error, you can set default time zone option(s) for the PXF server in the `$PXF_CONF/conf/pxf-env.sh` configuration file, `PXF_JVM_OPTS` property setting. For example, to set the time zone:
``` pre
export PXF_JVM_OPTS="<current_settings> -Duser.timezone=America/Chicago"
```
You can use the `PXF_JVM_OPTS` property to set other Java options as well.
As described in previous sections, you must copy the updated configuration file to each Greenplum Database segment host and restart the PXF server on each host.
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册