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 AA4DDD259 for ; Sun, 1 Jul 2012 19:04:21 +0000 (UTC) Received: (qmail 72691 invoked by uid 500); 1 Jul 2012 19:04:21 -0000 Delivered-To: apmail-hive-dev-archive@hive.apache.org Received: (qmail 72644 invoked by uid 500); 1 Jul 2012 19:04:21 -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 72634 invoked by uid 99); 1 Jul 2012 19:04:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Jul 2012 19:04:21 +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 jamalraihan@gmail.com designates 209.85.212.48 as permitted sender) Received: from [209.85.212.48] (HELO mail-vb0-f48.google.com) (209.85.212.48) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 01 Jul 2012 19:04:14 +0000 Received: by vbjk17 with SMTP id k17so4002396vbj.35 for ; Sun, 01 Jul 2012 12:03:54 -0700 (PDT) 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 :content-type; bh=rRZA4clZkcCX+JHbAbsmyiEAt/qXMJ1VwZ7Wz/6bOas=; b=n55PEeb8xFhZf8zIUkzhZsbfy+kRdpRZmNYAfDV25HU++4CvrzOWwrfoTejy0mLAte Py4reKRkMQ62AGJDsMJxACPPFF1RIbzrcMeK/Q9AEQOv6GwxkHVlEkWcWLYf9LMBjwm6 XAT0Y2SdEx7w8wE/TQWwLQMQJxIJEF4uO9JW3lItl+cONgwTMB9oydZq+mS6ww8an7Pv EpvXlvKJmE5+2VCLBrtFmLshbipSJG+hr1eK/nlElOCSj+uUwjuK/m7cPrL1diO+SmMG IxDMO7jRI1i1NV7JAdFAH/EBAeuMlRsMkZCOPYiis1Wjk/26fL6bzTeMqIH2V7+Iv/Pn p+Sg== Received: by 10.52.28.71 with SMTP id z7mr4038886vdg.105.1341169433903; Sun, 01 Jul 2012 12:03:53 -0700 (PDT) MIME-Version: 1.0 Received: by 10.52.38.74 with HTTP; Sun, 1 Jul 2012 12:03:33 -0700 (PDT) In-Reply-To: References: From: Raihan Jamal Date: Sun, 1 Jul 2012 12:03:33 -0700 Message-ID: Subject: Connect Squirrel SQL Client to access Hive tables To: dev@hive.apache.org Content-Type: multipart/alternative; boundary=20cf3078119eb100dd04c3c95744 X-Virus-Checked: Checked by ClamAV on apache.org --20cf3078119eb100dd04c3c95744 Content-Type: text/plain; charset=ISO-8859-1 > > 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 > --20cf3078119eb100dd04c3c95744--