Return-Path: X-Original-To: apmail-hive-dev-archive@www.apache.org Delivered-To: apmail-hive-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 15AD895BF for ; Mon, 2 Jul 2012 05:52:21 +0000 (UTC) Received: (qmail 60381 invoked by uid 500); 2 Jul 2012 05:52:20 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 60071 invoked by uid 500); 2 Jul 2012 05:52:20 -0000 Mailing-List: contact dev-help@hive.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@hive.apache.org Delivered-To: mailing list dev@hive.apache.org Received: (qmail 60050 invoked by uid 99); 2 Jul 2012 05:52:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jul 2012 05:52:19 +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 prasadm@cloudera.com designates 209.85.220.176 as permitted sender) Received: from [209.85.220.176] (HELO mail-vc0-f176.google.com) (209.85.220.176) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Jul 2012 05:52:15 +0000 Received: by vcbfo14 with SMTP id fo14so4128583vcb.35 for ; Sun, 01 Jul 2012 22:51:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:x-gm-message-state; bh=6e+7SxBJiGXg+7pKuYfl5CE3bV8fLidXZ/N1ItzXZsA=; b=aQDDNatmLbZw9Usk3uFqHKPHzr2PpNIxV3KoDishdRkY/IWv2Yb0Q6TPWHTPR8Dmac Ed0Y0Yw3NqbxgdCkZCJDT7tHjXU52vHsoucrPbfYYITj8adR7Mi7bCiWlJmv593l5DNl 4j+EBtQ6mgBR89iKmNjXS6m0RbOD4F1tYms1rAx3RuENuC+Eu985QfgE33a6BmMKb02f zLxG3E3UGGkNi09b4JSxfLobf4MAPffeRnV0Kuv+qBAAEJT0od+Cy4wOXqblNfK0C2Kh mX4zvyOkVCJd1Cclw9b8CfVSMomRdH4uXSQtAzBcy5zFgIl/0geETSaIlcQJc1PTGVly a7DA== MIME-Version: 1.0 Received: by 10.220.155.130 with SMTP id s2mr5508014vcw.43.1341208314165; Sun, 01 Jul 2012 22:51:54 -0700 (PDT) Received: by 10.52.117.74 with HTTP; Sun, 1 Jul 2012 22:51:54 -0700 (PDT) In-Reply-To: References: Date: Sun, 1 Jul 2012 22:51:54 -0700 Message-ID: Subject: Re: Connect Squirrel SQL Client to access Hive tables From: Prasad Mujumdar To: dev@hive.apache.org Content-Type: multipart/alternative; boundary=f46d043c7d0622ba4d04c3d26572 X-Gm-Message-State: ALoCoQlqKQj0NpV/pdxuf0zJ0mXFh+IgkEX5qp4ferCZqbm1/tq7mBI98vDhv0FqP80WwbLfWqQT X-Virus-Checked: Checked by ClamAV on apache.org --f46d043c7d0622ba4d04c3d26572 Content-Type: text/plain; charset=ISO-8859-1 Check HIVE-3100 which is to include SQLLine as command line tool for Hive. thanks Prasad On Sun, Jul 1, 2012 at 11:58 AM, Raihan Jamal wrote: > I am new to Hive, MapReduce and Hadoop, so I am newbie in this. > I am using Putty to connect to hive table and access records in the tables. > So what I did is- I opened Putty and in the host name I typed- ` > ares-ingest.vip.name.com` and then I click `Open`. And then I entered my > username and password and then few commands to get to Hive sql. Below is > the list what I did > > $ bash > bash-3.00$ hive > Hive history > file=/tmp/rjamal/hive_job_log_rjamal_201207010451_1212680168.txt > hive> set mapred.job.queue.name=hdmi-technology; > hive> select * from table LIMIT 1; > > So my question is- > > **Is there any other way I can do the same thing in any Sql client like Sql > Developer or Squirel SQL Client instead of doing it from the command > prompt. And if it is there then what is the step by step process to do this > considering my example as I am logging to `ares-ingest.vip.name.com` from > Putty .** > > And same thing if I need to do through JDBC Program in my windows machine > then how I can do it. Means with the use of JDBC Program, how I can access > Hive tables and get the result back. As I know how I can do this with the > oracle tables. But the only confusion I have is, as I am using this > hostname `ares-ingest.vip.name.com` to log into Putty. I am hoping the > question is clear. Any suggestion will be appreciated. > > **In short my question is- Can I do the same thing in any SQLClient instead > of logging from the Putty?** > > > -Raihan Jamal > --f46d043c7d0622ba4d04c3d26572--