Return-Path: X-Original-To: apmail-cassandra-commits-archive@www.apache.org Delivered-To: apmail-cassandra-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8C5069A82 for ; Wed, 5 Oct 2011 20:10:54 +0000 (UTC) Received: (qmail 31659 invoked by uid 500); 5 Oct 2011 20:10:54 -0000 Delivered-To: apmail-cassandra-commits-archive@cassandra.apache.org Received: (qmail 31590 invoked by uid 500); 5 Oct 2011 20:10:54 -0000 Mailing-List: contact commits-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cassandra.apache.org Delivered-To: mailing list commits@cassandra.apache.org Received: (qmail 31447 invoked by uid 99); 5 Oct 2011 20:10:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Oct 2011 20:10:54 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Oct 2011 20:10:51 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 0A0CB2AA9FD for ; Wed, 5 Oct 2011 20:10:30 +0000 (UTC) Date: Wed, 5 Oct 2011 20:10:30 +0000 (UTC) From: "Brian ONeill (Updated) (JIRA)" To: commits@cassandra.apache.org Message-ID: <123694564.579.1317845430042.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1181398796.561.1317845309821.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (CASSANDRA-3320) pig_cassandra script errors when running against pig 0.9.1 tar ball because there are multiple jars. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/CASSANDRA-3320?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Brian ONeill updated CASSANDRA-3320: ------------------------------------ Attachment: trunk-3320.txt Patch > pig_cassandra script errors when running against pig 0.9.1 tar ball because there are multiple jars. > ---------------------------------------------------------------------------------------------------- > > Key: CASSANDRA-3320 > URL: https://issues.apache.org/jira/browse/CASSANDRA-3320 > Project: Cassandra > Issue Type: Bug > Components: Contrib > Affects Versions: 0.8.6 > Environment: Running on mac os x. PIG_HOME set to a fresh download of pig 0.9.1. > Reporter: Brian ONeill > Priority: Minor > Attachments: trunk-3320.txt > > > The pig_cassandra script in contrib/pig/bin assumes there is only one pig jar file in $PIG_HOME. However, the latest release of pig 0.9.1 has two jar files: one for hadoop and one without hadoop. See below: > bone@zen:~/tools/pig-0.9.1-> ls -al *.jar > -rw-r--r-- 1 bone staff 5130595 Sep 29 18:55 pig-0.9.1-withouthadoop.jar > -rw-r--r-- 1 bone staff 12430153 Sep 29 18:55 pig-0.9.1.jar > This breaks the shell script with: > bin/pig_cassandra: line 42: [: /Users/bone/tools/pig/pig-0.9.1-withouthadoop.jar: binary operator expected > Unrecognized option: -x > Attached is a patch for the shell script that takes the last jar file listed in the directory. This fixes the problem. I also add an "echo" to notify the user which jar file they are using. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira