Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 56114200B91 for ; Thu, 29 Sep 2016 19:22:23 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 54FB1160AF3; Thu, 29 Sep 2016 17:22:23 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 86D14160AEA for ; Thu, 29 Sep 2016 19:22:22 +0200 (CEST) Received: (qmail 54396 invoked by uid 500); 29 Sep 2016 17:22:21 -0000 Mailing-List: contact commits-help@hawq.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hawq.incubator.apache.org Delivered-To: mailing list commits@hawq.incubator.apache.org Received: (qmail 54051 invoked by uid 99); 29 Sep 2016 17:22:21 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Sep 2016 17:22:21 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id BB3A61A0C4B for ; Thu, 29 Sep 2016 17:22:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -6.219 X-Spam-Level: X-Spam-Status: No, score=-6.219 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-2.999] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id KF7zbKVH3kwq for ; Thu, 29 Sep 2016 17:22:19 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with SMTP id 927705FC70 for ; Thu, 29 Sep 2016 17:22:17 +0000 (UTC) Received: (qmail 51454 invoked by uid 99); 29 Sep 2016 17:22:16 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Sep 2016 17:22:16 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 12A33EF99E; Thu, 29 Sep 2016 17:22:16 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: yozie@apache.org To: commits@hawq.incubator.apache.org Date: Thu, 29 Sep 2016 17:22:35 -0000 Message-Id: <91de49e436d2498faf6cde3a700cf83a@git.apache.org> In-Reply-To: References: X-Mailer: ASF-Git Admin Mailer Subject: [21/50] [abbrv] incubator-hawq-docs git commit: add debug logging info to PXF troubleshooting page archived-at: Thu, 29 Sep 2016 17:22:23 -0000 add debug logging info to PXF troubleshooting page Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq-docs/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq-docs/commit/a15e1862 Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq-docs/tree/a15e1862 Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq-docs/diff/a15e1862 Branch: refs/heads/master Commit: a15e18625ce215873747fc3fb3ece97403dcfe1d Parents: 1661c62 Author: Lisa Owen Authored: Fri Sep 16 12:54:28 2016 -0700 Committer: Lisa Owen Committed: Fri Sep 16 12:54:28 2016 -0700 ---------------------------------------------------------------------- pxf/TroubleshootingPXF.html.md.erb | 71 ++++++++++++++++++++++++++++++++- 1 file changed, 70 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-hawq-docs/blob/a15e1862/pxf/TroubleshootingPXF.html.md.erb ---------------------------------------------------------------------- diff --git a/pxf/TroubleshootingPXF.html.md.erb b/pxf/TroubleshootingPXF.html.md.erb index 050e360..7b53065 100644 --- a/pxf/TroubleshootingPXF.html.md.erb +++ b/pxf/TroubleshootingPXF.html.md.erb @@ -2,7 +2,9 @@ title: Troubleshooting PXF --- -The following table describes some common errors while using PXF: +## PXF Errors + +The following table lists some common errors encountered while using PXF: @@ -132,3 +134,70 @@ The following table describes some common errors while using PXF:
Table 1. PXF Errors and Explanation
+## PXF Logging +Enabling more verbose logging may aid PXF troubleshooting efforts. + +PXF provides two categories of message logging - service-level and database-level. + +### Service-Level Logging + +PXF utilizes `log4j` for service-level logging. PXF-service-related log messages are captured in a log file specified by PXF's `log4j` properties file, `/etc/pxf/conf/pxf-log4j.properties`. The default PXF logging configuration will write `INFO` and more severe level logs to `/var/log/pxf/pxf-service.log`. + +PXF provides more detailed logging when the `DEBUG` level is enabled. To configure PXF `DEBUG` logging, uncomment the following line in `pxf-log4j.properties`: + +``` shell +#log4j.logger.org.apache.hawq.pxf=DEBUG +``` + +and restart the PXF service: + +``` shell +$ sudo service pxf-service restart +``` + +With `DEBUG` level logging now enabled, perform your PXF operations; for example, creating and querying an external table. (Make note of the time; this will direct you to the relevant log messages in `/var/log/pxf/pxf-service.log`.) + +``` shell +$ psql +``` + +``` sql +gpadmin=# CREATE EXTERNAL TABLE hivetest(id int, newid int) + LOCATION ('pxf://namenode:51200/pxf_hive1?PROFILE=Hive') + FORMAT 'custom' (formatter='pxfwritable_import'); +gpadmin=# select * from hivetest; +