Return-Path: X-Original-To: apmail-hawq-dev-archive@minotaur.apache.org Delivered-To: apmail-hawq-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 85DA918DCB for ; Fri, 11 Mar 2016 07:56:48 +0000 (UTC) Received: (qmail 58666 invoked by uid 500); 11 Mar 2016 07:56:48 -0000 Delivered-To: apmail-hawq-dev-archive@hawq.apache.org Received: (qmail 58608 invoked by uid 500); 11 Mar 2016 07:56:48 -0000 Mailing-List: contact dev-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 dev@hawq.incubator.apache.org Received: (qmail 58365 invoked by uid 99); 11 Mar 2016 07:56:48 -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; Fri, 11 Mar 2016 07:56:48 +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 9F5261A0727; Fri, 11 Mar 2016 07:56:47 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.18 X-Spam-Level: * X-Spam-Status: No, score=1.18 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id bHCw2Bfk5J0L; Fri, 11 Mar 2016 07:56:45 +0000 (UTC) Received: from mail-yk0-f182.google.com (mail-yk0-f182.google.com [209.85.160.182]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id D3ED55FAF7; Fri, 11 Mar 2016 07:56:44 +0000 (UTC) Received: by mail-yk0-f182.google.com with SMTP id y66so45874400ykd.2; Thu, 10 Mar 2016 23:56:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=7LruVvICf9ji+ran+iU+Jf935dmYDyloY0eo0sJEuZQ=; b=vxXJ5LW9cvAWcyXX/OUAH5m5ANSHgj6n6kbslwdJQ3QVHrNEc64IexWPCL92xnLIWd zT5Q/hwlf/dcZHmH4nnmHInDAPfg0P+DnblUc48KgeGKmeTtCVcf0qW37ZvdJ9NVkTWh VwewklZFgEppGEpWqA+v2Uh6ferts/npGGuXTtxNq+9obXJ6N9d/u4K3iWznP0Tr0o3G 9etGbzrtc+iL1471EUmyBOOuGDTrnu92nVG7XYNOQsoi/SfgTabphG3rXTwKfz53wsRH PT4RRY/n1hUI7aZE1qz6s3pHKACf57zL7P/gdPUIswCbSYHZclhiXt0sQdfn7mRQY6/S hi4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=7LruVvICf9ji+ran+iU+Jf935dmYDyloY0eo0sJEuZQ=; b=IKtPaaiyhctT9Dqi8wB4vNi+jv6bUc/H23R+96LS30FXvpRHTm5BLvz3TPaq3h1ZbA rb334NP9WBUW9tWwJSMlFTP+Ogxnsm4mZLYKVE4Hr5VAGFbuDGllAo/U1i2u7cTGIPiB PhYyZFmjHDd66fcXwIsvKama7IUKvEkhMZaVWTRukBrSSsytObMpjnJgiKfnH+FX/wZ6 DoXeV9CX/cAn8/M0bHycXWH1tkWiJV5uymOYB2JtLc2d2dI9YDEhxyQdHKv0JpcQnPbg 2n4URDb6abPqvS7pFb70otKJhD+XcqMNKn52VAKBiU+yg6UbP5F5QJOQ9J0H4VGmh5Ah VJhA== X-Gm-Message-State: AD7BkJJwGytuyjHHEqxiIsJTJ+zCAuvK8xbH28EMN6P9CebnkqHXNuhywMQVwWyBzQPZ4xORS76mNHVyPl6jmA== X-Received: by 10.37.86.138 with SMTP id k132mr4471978ybb.108.1457682998335; Thu, 10 Mar 2016 23:56:38 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.64.84 with HTTP; Thu, 10 Mar 2016 23:56:18 -0800 (PST) In-Reply-To: References: From: Leon Zhang Date: Fri, 11 Mar 2016 15:56:18 +0800 Message-ID: Subject: Re: PXF service could not be reached To: user@hawq.incubator.apache.org Cc: dev@hawq.incubator.apache.org Content-Type: multipart/alternative; boundary=001a11425a0e4f9dd4052dc14550 --001a11425a0e4f9dd4052dc14550 Content-Type: text/plain; charset=UTF-8 Hi, Gagang It seems you use HA hdfs cluster? I am not sure if HAWQ can work like this. Can any HAWQ developer clarify this condition? If so, you can try a non-HA hdfs cluster with direct IP access. All PXF services are working perfect here. On Fri, Mar 11, 2016 at 10:25 AM, Gagan Brahmi wrote: > Thank you Ting! > > That was the problem. It seemed to have worked, but now I am stuck > with a different error. > > gagan=# INSERT into ext_put_foo VALUES (1, 'Gagan'); > ERROR: failed sending to remote component (libchurl.c:574) (seg0 > my-hadoop-cluster:40000 pid=24563) (dispatcher.c:1753) > > This certainly mean that the back ground service has stopped serving > connection for some reason. > > I check the namenode and find this. > > 2016-03-10 19:28:11,759 INFO hdfs.StateChange > (FSNamesystem.java:completeFile(3503)) - DIR* completeFile: > /tmp/foo_bar/1350_0 is closed by DFSClient_NONMAPREDUCE_-244490296_23 > > I have a single node installation with a HDFS replication factor of 1 > (both in hdfs-site and hdfs-client for hawq). > > I have also tried to update the connectTimeout value to 60 secs in the > server.xml file for pxf webapp. > > A normal write to HDFS works fine. I see file being created in the > directory foor_bar but are 0 bytes in size. > > -rw-r--r-- 1 pxf hdfs 0 2016-03-10 19:08 /tmp/foo_bar/1336_0 > -rw-r--r-- 1 pxf hdfs 0 2016-03-10 19:27 /tmp/foo_bar/1349_0 > -rw-r--r-- 1 pxf hdfs 0 2016-03-10 19:28 /tmp/foo_bar/1350_0 > > Not sure if someone has encountered this before. Would appreciate any > inputs. > > > Regards, > Gagan Brahmi > > On Thu, Mar 10, 2016 at 11:45 AM, Ting(Goden) Yao wrote: > > Your table definition: > > ('pxf://my-hadoop-cluster:*50070*/foo_bar?profile=HdfsTextSimple') > > if you installed pxf on 51200, you need to use the port 51200 > > > > > > On Thu, Mar 10, 2016 at 10:34 AM Gagan Brahmi > wrote: > > > >> Hi Team, > >> > >> I was wondering if someone has encountered this problem before. > >> > >> While trying to work with PXF on hawq 2.0 I am encountering the > following > >> error: > >> > >> gagan=# CREATE EXTERNAL TABLE ext_get_foo (i int, bar text) LOCATION > >> ('pxf://my-hadoop-cluster:50070/foo_bar?profile=HdfsTextSimple') > >> FORMAT 'text' (delimiter '|' null 'null'); > >> > >> gagan=# SELECT * FROM ext_get_foo ; > >> ERROR: remote component error (404): PXF service could not be > >> reached. PXF is not running in the tomcat container (libchurl.c:878) > >> > >> The same happens when I try to write to an external table using PXF. > >> > >> I believe the above error signifies that PXF service isn't running or > >> unavailable. But PXF is running on port 51200. > >> > >> Curl response works fine as well: > >> > >> # curl -s http://localhost:51200/pxf/v0 > >> Wrong version v0, supported version is v14 > >> > >> PXF is build using gradlew and installed as RPM files. I also have > >> tomcat 7.0.62 installed with the PXF packages. > >> > >> The following is how PXF is running on the instance: > >> > >> pxf 21405 0.3 2.8 825224 115164 ? Sl 02:07 0:10 > >> /usr/java/latest/bin/java > >> > >> > -Djava.util.logging.config.file=/var/pxf/pxf-service/conf/logging.properties > >> -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager > >> -Xmx512M -Xss256K -Djava.endorsed.dirs=/var/pxf/pxf-service/endorsed > >> -classpath > >> > /var/pxf/pxf-service/bin/bootstrap.jar:/var/pxf/pxf-service/bin/tomcat-juli.jar > >> -Dcatalina.base=/var/pxf/pxf-service > >> -Dcatalina.home=/var/pxf/pxf-service > >> -Djava.io.tmpdir=/var/pxf/pxf-service/temp > >> org.apache.catalina.startup.Bootstrap start > >> > >> I do not have apache-tomcat running. Not sure how are the two > >> interrelated. But the RPM file created by gradlew requires tomcat for > >> pxf-service. > >> > >> I would appreciate any inputs into this problem. > >> > >> > >> Regards, > >> Gagan Brahmi > >> > --001a11425a0e4f9dd4052dc14550--