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 A2ACB200BF8 for ; Fri, 13 Jan 2017 19:00:18 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id A1482160B3F; Fri, 13 Jan 2017 18:00:18 +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 EB40A160B2E for ; Fri, 13 Jan 2017 19:00:17 +0100 (CET) Received: (qmail 77703 invoked by uid 500); 13 Jan 2017 18:00:16 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 77690 invoked by uid 99); 13 Jan 2017 18:00:16 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 13 Jan 2017 18:00:16 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id CF52818051E for ; Fri, 13 Jan 2017 18:00:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 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_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-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 (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 2Zn1I97mrkHy for ; Fri, 13 Jan 2017 18:00:11 +0000 (UTC) Received: from mail-yw0-f172.google.com (mail-yw0-f172.google.com [209.85.161.172]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id E9A345F4AE for ; Fri, 13 Jan 2017 18:00:10 +0000 (UTC) Received: by mail-yw0-f172.google.com with SMTP id l75so35713989ywb.0 for ; Fri, 13 Jan 2017 10:00:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=E7Rtdz6t3/CWMnZt0iLHcoNV06wEk14xF/fCKdawDZE=; b=ChdM5780BXHP82GBBkehi9k8ojnypqDMyVp90FyweTsrn+szmNhZM7VdRcXTHVon+I VCPZHqewdMrXZex3JumdPpCx3s197EQiyEl2wFn1mnFLAmic9VeEGc+v6qpEd5NP9Fg1 e3uXud6QAVy/lXOM9ytEo17M/vg2uuSGvpgsH1TkZ9nNfe5RdJyb85jg//zdlrggrhLQ JOirrO+SgEDtJOjpU50pQh/yE8thNAX0ZJHhPU+R4ri6ubyJt9x04kYqnBR9VhG4bNV8 ROdcEkIiElNcFOAIKftGMmJnUJeNQ7bQHqKwBrTS8SpyrI9eXbcgiIklBS5+2SGHkCTv 58/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=E7Rtdz6t3/CWMnZt0iLHcoNV06wEk14xF/fCKdawDZE=; b=V0eGG167h1UilBGH5JGkb3iz3f5V+5+boPUoF7I2MnbwD222bmVTuWdnAJEUgxtU7I PImGTE3gyek5PscPRuPGPhANlgahIWOGuJFvIdcHHfUcj8EjFabPSDECmyTNU3+1e0A5 8jVwAKGxX9T7rYWxRodj5OUQrAKw0dovBk8i1hA1aigrOnuZ1s5KDquzoBCWgtGaED9G thM9W6aU3CpCakCiODU8Fl/RvXOq7KRWCPxfTutRQkrVjv08+o3VKDVMepNfWv/eh1iO h4mWQxdsI8M+EeFhg5VhwpVesy/PJIWdp5UQmzGeZ4Auex51vzF6bo/kMp1lDEpBVPAi dMVw== X-Gm-Message-State: AIkVDXI2k04WhXClW4yUqEE9FOW1bTw5frADNYDxFHmkqKotVSmlZ/sANMuu0DqAzDi3vPV8jRXN2FF8sdzJfA== X-Received: by 10.129.153.14 with SMTP id q14mr15771136ywg.191.1484330409896; Fri, 13 Jan 2017 10:00:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.37.244.79 with HTTP; Fri, 13 Jan 2017 10:00:09 -0800 (PST) In-Reply-To: References: From: Ted Yu Date: Fri, 13 Jan 2017 10:00:09 -0800 Message-ID: Subject: Re: HBase Thrift Client for C#: OutofMemoryException To: "user@hbase.apache.org" Content-Type: multipart/alternative; boundary=94eb2c0bda48cfb3130545fd9a10 archived-at: Fri, 13 Jan 2017 18:00:18 -0000 --94eb2c0bda48cfb3130545fd9a10 Content-Type: text/plain; charset=UTF-8 Which thrift version did you use to generate c# code ? hbase uses 0.9.3 Can you pastebin the whole stack trace for the exception ? I assume you run your code on 64-bit machine. Cheers On Fri, Jan 13, 2017 at 9:53 AM, jeff saremi wrote: > I have cloned the latest thrift and hbase code. Used thrift generator to > generate c# code from hbase-thrift\src\main\resources\org\apache\hadoop\hbase\thrift. > Then created a single VS solution with the generated code, the thrift lib > for c# (thrift\lib\csharp\src\Thrift.csproj) and i also added a > DemoClient (hbase-examples) converted from c++ to c#. When I run that I > keep getting OutofMemoryException with not a lot of other useful > information. I have done the same process for C++ and the democlient code > from hbase-examples runs with no issues at all. > > > here's the client code: > > TTransport socket = new TSocket(args[0], Convert.ToInt32(args[1])); > TTransport transport = new TBufferedTransport((TStreamTransport)socket); > TProtocol protocol = new TBinaryProtocol(transport); > Hbase.Client client = new Hbase.Client(protocol); > List tables = client.getTableNames(); > > The last line is where the exception is thrown. thanks > --94eb2c0bda48cfb3130545fd9a10--