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 198EF10266 for ; Fri, 11 Mar 2016 16:22:04 +0000 (UTC) Received: (qmail 28866 invoked by uid 500); 11 Mar 2016 16:22:03 -0000 Delivered-To: apmail-hawq-dev-archive@hawq.apache.org Received: (qmail 28805 invoked by uid 500); 11 Mar 2016 16:22:03 -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 28793 invoked by uid 99); 11 Mar 2016 16:22:03 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Mar 2016 16:22:03 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 0965BC0DA2 for ; Fri, 11 Mar 2016 16:22:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.299 X-Spam-Level: * X-Spam-Status: No, score=1.299 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, WEIRD_PORT=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=pivotal-io.20150623.gappssmtp.com Received: from mx2-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id qezVOzmKmq_H for ; Fri, 11 Mar 2016 16:22:00 +0000 (UTC) Received: from mail-lb0-f171.google.com (mail-lb0-f171.google.com [209.85.217.171]) by mx2-lw-us.apache.org (ASF Mail Server at mx2-lw-us.apache.org) with ESMTPS id C09525FACB for ; Fri, 11 Mar 2016 16:21:59 +0000 (UTC) Received: by mail-lb0-f171.google.com with SMTP id bc4so162250596lbc.2 for ; Fri, 11 Mar 2016 08:21:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pivotal-io.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=w1q2RXjIiUFP5nbCSoITddT7Q6cXljE6wymU+vEWVwI=; b=Lwuilsazw1T+mcZKaYA/TqsjFTyvutq6A0YC12aSnJciJkmVfH5YJvrECGcP0Rower jQUpWUXhLMwVgl6ExS1LxSllxdheiAi6TtN1j6NF7hHPnC3ajXkU49bV9btJeRJKMP2J AydmsULp5zkmS/jLr5hvY4cjk8kIuL++5RjgTLxM4H0FEuxoQ6fag4/xjaC8XmacB/RS kyYt/cNsae9oAnsEY36cLWfLjAy5gk/XWNGlpSrpjWIauIhIf9nc1ljTWNfw+aA/2xc8 Rk8cdfqDc6VKaV8F9xmmBtF/06A0N3gv5XNjxE8qjGGkQJRh5DXz4r30APmEZLjFyzpb QInA== 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:date :message-id:subject:from:to:cc; bh=w1q2RXjIiUFP5nbCSoITddT7Q6cXljE6wymU+vEWVwI=; b=LTgoXWhC4MdR08rzkqJqnhGLxrwzAgHvCQ4t2to2gUE0IHp1NKCyMhpBShn2+mnplh MMqmWLx+q/3D7IZtVOLbvoH6kaaLE8N780qEm+G8JOvxC9tYDkgg7e2Fro3vyNe0BASE XexmyUVOOXViskQUdK79GTzURtl6vonN3v2q2fxLSZgbHAmLtETZBG6m686Yv5HIigXg WAbsKLlOVKVYp03bA+Jnutd4OitgbWp6ZRnfLfWD07oQ44+pBA6a9AZ4v3J1Ecl2D//J enjhd/u1mLuRW4yvMXtSLKAibtCbnZa4ZF4VXxsb2mnTTqor+tmvO1hoSy0EOLofMMzC tF1Q== X-Gm-Message-State: AD7BkJJFIsBMdWuCB/aVe9RWzmt64ZAs4HOwfEkZ9aI7xHPgm528gCog20QMGjY16+G9uJrpcYFPR2sIuL8bgM+n MIME-Version: 1.0 X-Received: by 10.112.157.66 with SMTP id wk2mr2905587lbb.53.1457713317909; Fri, 11 Mar 2016 08:21:57 -0800 (PST) Received: by 10.25.158.74 with HTTP; Fri, 11 Mar 2016 08:21:57 -0800 (PST) In-Reply-To: References: Date: Fri, 11 Mar 2016 10:21:57 -0600 Message-ID: Subject: Re: PXF service could not be reached From: Daniel Lynch To: dev@hawq.incubator.apache.org Cc: user@hawq.incubator.apache.org Content-Type: multipart/alternative; boundary=001a11c324847fbe39052dc8549c --001a11c324847fbe39052dc8549c Content-Type: text/plain; charset=UTF-8 check the pxf service logs for errors. I suspect there is an out of memory event at some point during the connection considering this is a single node deployment. Also make sure overcommit is disabled to prevent virtual mem OOM errors. This of course would not be recommended in production but for single node deployments you will need this setting. echo 1 > /proc/sys/vm/overcommit_memory Daniel Lynch Mon-Fri 9-5 PST Office: 408 780 4498 On Fri, Mar 11, 2016 at 2:01 AM, Gagan Brahmi wrote: > This a standalone box with no ha for hdfs. > > I haven't enabled the ha properties in hawq site. > > Regards, > Gagan > On Mar 11, 2016 00:56, "Leon Zhang" wrote: > > > 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 > >> >> > >> > > > > > --001a11c324847fbe39052dc8549c--