Return-Path: X-Original-To: apmail-hive-user-archive@www.apache.org Delivered-To: apmail-hive-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4743F9918 for ; Wed, 25 Apr 2012 05:33:56 +0000 (UTC) Received: (qmail 13876 invoked by uid 500); 25 Apr 2012 05:33:55 -0000 Delivered-To: apmail-hive-user-archive@hive.apache.org Received: (qmail 13497 invoked by uid 500); 25 Apr 2012 05:33:50 -0000 Mailing-List: contact user-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hive.apache.org Delivered-To: mailing list user@hive.apache.org Received: (qmail 13470 invoked by uid 99); 25 Apr 2012 05:33:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Apr 2012 05:33:49 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of vinod@vinodsingh.com designates 209.85.214.176 as permitted sender) Received: from [209.85.214.176] (HELO mail-ob0-f176.google.com) (209.85.214.176) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Apr 2012 05:33:43 +0000 Received: by obbef5 with SMTP id ef5so1499523obb.35 for ; Tue, 24 Apr 2012 22:33:22 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:from:date:message-id:subject:to:content-type :x-gm-message-state; bh=b8SgB86XiqYAPXnmZtj+U6l41CODVTcELyKSEkxqhRA=; b=dh2C6g8m+/mClZNINzUKR6WM0hJWd5cVfKKAmwFaa0kCYhc6q7LzRaJQ3P0N0B1IlU h09YB2N1gkJkKnvyFrr6YLJdkcFzBlR939LNGk1PIjFiKgphA2oDOtLw9OY/LWLSMhPo ib9Kb+zjvp9R51owXd4YtHA8+RL56uhwo/K665GSMK0Rxv6zXSEmzkLz06bhSJf2fPg+ FXu99amCqqiCIXz+nopga1O6AUKiIGseF5o2YG8CGiHQrDm6SIwKTLwNkWrYee8MnJiR ooT2uOcvQgkywWlZ+mZenXfRHMQnQfETh4UHX+x/fpAYNLwA539U07ezryOc1wRNFOT5 Ibhw== Received: by 10.182.152.72 with SMTP id uw8mr1489337obb.73.1335332002518; Tue, 24 Apr 2012 22:33:22 -0700 (PDT) MIME-Version: 1.0 Received: by 10.182.39.170 with HTTP; Tue, 24 Apr 2012 22:33:02 -0700 (PDT) From: Vinod Singh Date: Wed, 25 Apr 2012 11:03:02 +0530 Message-ID: Subject: Embedding Hive To: user@hive.apache.org Content-Type: multipart/alternative; boundary=f46d04451843aad62c04be7a3551 X-Gm-Message-State: ALoCoQmDP7qG3JAQ5reveqapk/Gr8v7kWp2STVnTqqrFSNKn+4LPkbP6/IsrbWzCfnwtP9Cnrg3O X-Virus-Checked: Checked by ClamAV on apache.org --f46d04451843aad62c04be7a3551 Content-Type: text/plain; charset=UTF-8 Hello, I would like to embed Hive (client) in my application to execute a sequence of queries. Right now I do it using CLI (hive -f myScript.sql). Problem with this approach is that I do not get an return / error code to know the status of query programmatically. So my question is what is the best way to embed Hive in a Java application? I know JDBC is one approach but that will need Hive service should be running somewhere and I want to avoid that. Thanks, Vinod --f46d04451843aad62c04be7a3551 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

I would like to embed Hive (client) in my a= pplication to execute a sequence of queries. Right now I do it using CLI (h= ive -f myScript.sql). Problem with this approach is that I do not get an re= turn / error code to know the status of query=C2=A0programmatically.

So my question is what is the best way to embed Hive in a Ja= va application? I know JDBC is one approach but that will need Hive service= should be running somewhere and I want to avoid that.

Thanks,
Vinod
--f46d04451843aad62c04be7a3551--