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 2D5C4DE23 for ; Fri, 27 Jul 2012 18:34:55 +0000 (UTC) Received: (qmail 52876 invoked by uid 500); 27 Jul 2012 18:34:54 -0000 Delivered-To: apmail-hive-user-archive@hive.apache.org Received: (qmail 52823 invoked by uid 500); 27 Jul 2012 18:34:54 -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 52813 invoked by uid 99); 27 Jul 2012 18:34:53 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jul 2012 18:34:53 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of comptechgeeky@gmail.com designates 209.85.215.48 as permitted sender) Received: from [209.85.215.48] (HELO mail-lpp01m010-f48.google.com) (209.85.215.48) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jul 2012 18:34:47 +0000 Received: by lagz14 with SMTP id z14so2611520lag.35 for ; Fri, 27 Jul 2012 11:34:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=D+m0JF0JxG1sOFDdnbdEBtWm2BcrPwMGDQfjFgjHB2E=; b=zjo3rELC+MS4FotrcEg6qenct8xDI9AZcySmIHyA5oP98z0GJjXz4Zj22MPAXW5QM7 ZZPzFudD3Nm4OupqXPUNi/78Al/d0hbnYWZDRBOWh9d4nLuIBoNBD0shomJn5liWL+5c ONwd+xq3svcqSu6Wk1FX2WngfNrhbYRrbakQ6sXQwOFBMw3kE8v+bdhApyMVTCe8kPsy E+1zXiWFlxu2ZmJffAfsfWCJLzXd5s1GKYzqPyqhykvVy3IFgvLsAUucvoRbA0pxB/9Y N57RIxKocQ4Ah4WxF7IoF1clag6nH4wHDoSkyYTo04lFn8Qx9GZksOsnEScJ2Dr6Rui0 zgfw== MIME-Version: 1.0 Received: by 10.152.144.138 with SMTP id sm10mr3528921lab.22.1343414067164; Fri, 27 Jul 2012 11:34:27 -0700 (PDT) Received: by 10.112.49.39 with HTTP; Fri, 27 Jul 2012 11:34:27 -0700 (PDT) Date: Fri, 27 Jul 2012 11:34:27 -0700 Message-ID: Subject: /apache/hive/bin/hive: line 107: [: too many arguments error From: Techy Teck To: user@hive.apache.org Content-Type: multipart/alternative; boundary=e89a8f22c6f542741d04c5d3f6c7 --e89a8f22c6f542741d04c5d3f6c7 Content-Type: text/plain; charset=ISO-8859-1 I am trying to execute the below shell scripts using PLINK on MachineB from MachineA(Windows Machine) *#!/bin/bash* *HIVE_OPTS="$HIVE_OPTS -hiveconf mapred.job.queue.name=hdmi-technology"* *export HIVE_OPTS* *hive -S -e 'SELECT count(*) from testingtable1' > attachment22.txt* * * *Below is the way I am doing currently using plink* C:\PLINK>plink uname@MachineB -m count.sh Using keyboard-interactive authentication. Password: Using keyboard-interactive authentication. Your Kerberos password will expire in 73 days. *And this is the below error I am getting? And I have no idea what does that means.. Can anyone help me out here?* * * /apache/hive/bin/hive: line 107: [: too many arguments --e89a8f22c6f542741d04c5d3f6c7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I am trying to execute the below shell scripts using PLINK on MachineB= from MachineA(Windows Machine)

#!/bin/bas= h
HIVE_OPTS=3D"$HIVE_OPTS -hiveconf mapred.job.queue.name=3Dhdmi-technology"
export HIVE_OPTS
hive -S -e 'SELECT count(*) f= rom testingtable1' > attachment22.txt


Below is the way I am doing currently using p= link

C:\PLINK>plink uname@MachineB -m count.sh
= Using keyboard-interactive authentication.
Password:
Us= ing keyboard-interactive authentication.
Your Kerberos password w= ill expire in 73 days.

And this is the below error I am getting? And I have= no idea what does that means.. Can anyone help me out here?
=
/apache/hive/bin/hive: line 107: [: too many argument= s
--e89a8f22c6f542741d04c5d3f6c7--