Return-Path: X-Original-To: apmail-oodt-dev-archive@www.apache.org Delivered-To: apmail-oodt-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 53C0A179AE for ; Thu, 6 Nov 2014 00:40:09 +0000 (UTC) Received: (qmail 72163 invoked by uid 500); 6 Nov 2014 00:40:09 -0000 Delivered-To: apmail-oodt-dev-archive@oodt.apache.org Received: (qmail 72130 invoked by uid 500); 6 Nov 2014 00:40:09 -0000 Mailing-List: contact dev-help@oodt.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@oodt.apache.org Delivered-To: mailing list dev@oodt.apache.org Received: (qmail 72105 invoked by uid 99); 6 Nov 2014 00:40:08 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Nov 2014 00:40:08 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of chris.a.mattmann@jpl.nasa.gov designates 128.149.139.106 as permitted sender) Received: from [128.149.139.106] (HELO mail.jpl.nasa.gov) (128.149.139.106) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Nov 2014 00:40:03 +0000 Received: from mail.jpl.nasa.gov (ap-ehub-sp01.jpl.nasa.gov [128.149.137.148]) by smtp.jpl.nasa.gov (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id sA60dFxV019336 (using TLSv1/SSLv3 with cipher AES128-SHA (128 bits) verified NO); Wed, 5 Nov 2014 16:39:16 -0800 Received: from AP-EMBX-SP40.RES.AD.JPL ([169.254.7.201]) by ap-ehub-sp01.RES.AD.JPL ([169.254.3.206]) with mapi id 14.03.0195.001; Wed, 5 Nov 2014 16:39:15 -0800 From: "Mattmann, Chris A (3980)" To: MengYing Wang , Chris Mattmann CC: "dev@oodt.apache.org" Subject: Re: [RADiX File Manager] query-tool script sets the wrong values to the OODT_HOME and FILEMGR_HOME variables Thread-Topic: [RADiX File Manager] query-tool script sets the wrong values to the OODT_HOME and FILEMGR_HOME variables Thread-Index: AQHP+VetH0n2Gy70NEixJ+bgalunKJxSsKiA Date: Thu, 6 Nov 2014 00:39:14 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: user-agent: Microsoft-MacOutlook/14.4.5.141003 x-originating-ip: [128.149.137.113] Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Source-Sender: chris.a.mattmann@jpl.nasa.gov X-AUTH: Authorized X-Virus-Checked: Checked by ClamAV on apache.org Hi Angela, Awesome, can you please submit a patch to the issue you just created (OODT-781) and can you create a Review Board: http://reviews.apache.org/ Thanks, Chris ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Chris Mattmann, Ph.D. Chief Architect Instrument Software and Science Data Systems Section (398) NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA Office: 168-519, Mailstop: 168-527 Email: chris.a.mattmann@nasa.gov WWW: http://sunset.usc.edu/~mattmann/ ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Adjunct Associate Professor, Computer Science Department University of Southern California, Los Angeles, CA 90089 USA ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -----Original Message----- From: MengYing Wang Date: Wednesday, November 5, 2014 at 4:54 PM To: Chris Mattmann Cc: "dev@oodt.apache.org" Subject: [RADiX File Manager] query-tool script sets the wrong values to the OODT_HOME and FILEMGR_HOME variables >Hey everyone, > > >After a text file was ingested into my file manager, I run the command: > > >./query-tool --url http://localhost:9000 --sql -query "SELECT * FROM >GenericFile" > > >to verify the new file. However, it raised such an error: > > >$ ./query-tool --url http://localhost:9000 --sql -query "SELECT * FROM >GenericFile" >./query-tool: line 73: cd: >/Users/AngelaWang/Documents/programs/components/filemgr/bin: No such file >or directory >./query-tool: line 75: : command not found > > >This is due to the wrong values of the OODT_HOME and FILEMGR_HOME >variables in the query-tool script. > > >To solve the problem, please > > >(1) Line 45, change the code from > > ># Only set OODT_HOME if not already set > >[ -z "$OODT_HOME" ] && OODT_HOME=3D`cd "$PRGDIR/../../.." ; pwd` > > > >to=20 > > ># Only set OODT_HOME if not already set > >[ -z "$OODT_HOME" ] && OODT_HOME=3D`cd "$PRGDIR/../.." ; pwd` > > > >(2) Line 54, change the code from > > ># Only set FILEMGR_HOME if not already set >if [ -z "$FILEMGR_HOME" ]; then > FILEMGR_HOME=3D"$OODT_HOME"/components/filemgr > export FILEMGR_HOME >fi > > > >to=20 > > ># Only set FILEMGR_HOME if not already set >if [ -z "$FILEMGR_HOME" ]; then > FILEMGR_HOME=3D"$OODT_HOME"/filemgr > export FILEMGR_HOME >fi > > > >Now if you run the same command, then everything is ok. > > >$ ./query-tool --url http://localhost:9000 --sql -query "SELECT * FROM >GenericFile" >/Users/AngelaWang/Documents/programs/oodt-0.7/data/archive/test.txt,text/p >lain,text,plain,Flat,79a7bbc0-6542-11e4-82c3-33fd0e4b4523,GenericFile,2014 >-11-05T15:21:31.129-08:00,test.txt,test.txt > > > >Thanks. > > >Best, >Mengying (Angela) Wang > > > >