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 013AC17D9C for ; Sun, 2 Nov 2014 19:50:17 +0000 (UTC) Received: (qmail 50256 invoked by uid 500); 2 Nov 2014 19:50:16 -0000 Delivered-To: apmail-oodt-dev-archive@oodt.apache.org Received: (qmail 50217 invoked by uid 500); 2 Nov 2014 19:50:16 -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 50206 invoked by uid 99); 2 Nov 2014 19:50:16 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Nov 2014 19:50:16 +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 paul.m.ramirez@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; Sun, 02 Nov 2014 19:50:12 +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 sA2JlOAg014219 (using TLSv1/SSLv3 with cipher AES128-SHA (128 bits) verified NO); Sun, 2 Nov 2014 11:47:24 -0800 Received: from AP-EMBX-SP10.RES.AD.JPL ([169.254.1.113]) by ap-ehub-sp01.RES.AD.JPL ([169.254.3.206]) with mapi id 14.03.0195.001; Sun, 2 Nov 2014 11:47:24 -0800 From: "Ramirez, Paul M (398M)" To: "" CC: MengYing Wang , Chris Mattmann Subject: Re: RADiX filemgr-client script cannot delete product by id or name Thread-Topic: RADiX filemgr-client script cannot delete product by id or name Thread-Index: AQHP9gNMBHWc98xzhEigFloMHz9NnJxMC5wAgACblgD//4xBgIAAf/6A//+kaACAAWfF9A== Date: Sun, 2 Nov 2014 19:47:23 +0000 Message-ID: References: , In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Source-Sender: paul.m.ramirez@jpl.nasa.gov X-AUTH: Authorized X-Virus-Checked: Checked by ClamAV on apache.org Sounds like a bug in RADiX. MengYing would you mind adding an issue. The fi= lemgr-client script should source the env.sh so that this variable would be= set.=20 --Paul=20 Sent from my iPhone > On Nov 1, 2014, at 7:52 PM, Mattmann, Chris A (3980) wrote: >=20 > Yes, you have to reingest your data after restarting your file manager > after deleting > the catalog. Then try the query tool >=20 > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > 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 > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >=20 >=20 >=20 >=20 >=20 >=20 > -----Original Message----- > From: MengYing Wang > Date: Saturday, November 1, 2014 at 1:47 PM > To: Chris Mattmann > Cc: "dev@oodt.apache.org" , Chris Mattmann > > Subject: Re: RADiX filemgr-client script cannot delete product by id or > name >=20 >> Dear Prof. Mattmann, >>=20 >>=20 >> Now the ./query-tool sql query does work too. -_-! >> $ ./query-tool --url http://localhost:9000 --sql -query "SELECT * FROM >> GenericFile" >> org.apache.xmlrpc.XmlRpcException: java.lang.Exception: >> org.apache.oodt.cas.filemgr.structs.exceptions.CatalogException: Failed >> to perform complex query : null >> at=20 >> org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeException(XmlRpcCl= ie >> ntResponseProcessor.java:104) >> at=20 >> org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeResponse(XmlRpcCli= en >> tResponseProcessor.java:71) >> at=20 >> org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:73) >> at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:194) >> at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:185) >> at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:178) >> at=20 >> org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient.complexQuery(= Xm >> lRpcFileManagerClient.java:1003) >> at=20 >> org.apache.oodt.cas.filemgr.tools.QueryTool.performSqlQuery(QueryTool.ja= va >> :252) >> at org.apache.oodt.cas.filemgr.tools.QueryTool.main(QueryTool.java:242) >> Exception in thread "main" >> org.apache.oodt.cas.filemgr.structs.exceptions.CatalogException: >> java.lang.Exception: >> org.apache.oodt.cas.filemgr.structs.exceptions.CatalogException: Failed >> to perform complex query : null >> at=20 >> org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient.complexQuery(= Xm >> lRpcFileManagerClient.java:1009) >> at=20 >> org.apache.oodt.cas.filemgr.tools.QueryTool.performSqlQuery(QueryTool.ja= va >> :252) >> at org.apache.oodt.cas.filemgr.tools.QueryTool.main(QueryTool.java:242) >> Best, >> Mengying (Angela) Wang >>=20 >>=20 >>=20 >> On Sat, Nov 1, 2014 at 1:09 PM, Mattmann, Chris A (3980) >> wrote: >>=20 >> Can you please remove your FILEMGR_HOME/catalog (or your >> RADIX_HOME/data/catalog) >> directory, restart file manager, and then try again? >>=20 >> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >> 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 >> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >> -----Original Message----- >> From: MengYing Wang >> Date: Saturday, November 1, 2014 at 1:03 PM >> To: "dev@oodt.apache.org" >> Cc: Chris Mattmann >> Subject: Re: RADiX filemgr-client script cannot delete product by id or >> name >>=20 >>> Dear Prof. Mattmann, >>>=20 >>>=20 >>> Thank you for your help! Actually, I have set the FILEMGR_URL. Below ar= e >>> the variables that I have set: >>>=20 >>>=20 >>> export OODT_HOME=3D"/Users/AngelaWang/Documents/programs/oodt-0.7" >>> export >>> CRAWLER_HOME=3D"/Users/AngelaWang/Documents/programs/oodt-0.7/crawler" >>> export >>> FILEMGR_HOME=3D"/Users/AngelaWang/Documents/programs/oodt-0.7/filemgr" >>> export >>> WORKFLOW_HOME=3D"/Users/AngelaWang/Documents/programs/oodt-0.7/workflow= " >>> export PGE_ROOT=3D"/Users/AngelaWang/Documents/programs/oodt-0.7/pge" >>> export WORKFLOW_URL=3D"http://localhost:9200" >>> export FILEMGR_URL=3D"http://localhost:9000" >>>=20 >>>=20 >>>=20 >>> Best, >>> Mengying (Angela) Wang >>>=20 >>>=20 >>> On Sat, Nov 1, 2014 at 10:46 AM, Mattmann, Chris A (3980) >>> wrote: >>>=20 >>> This is an environment variable issue - your FILEMGR_URL is not set. >>> Can you check it Angela? >>>=20 >>> Cheers, >>> Chris >>>=20 >>>=20 >>> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >>> 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 >>> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ >>>=20 >>>=20 >>>=20 >>>=20 >>>=20 >>>=20 >>> -----Original Message----- >>> From: MengYing Wang >>> Reply-To: "dev@oodt.apache.org" >>> Date: Thursday, October 30, 2014 at 3:02 PM >>> To: "dev@oodt.apache.org" >>> Subject: RADiX filemgr-client script cannot delete product by id or nam= e >>>=20 >>>> Hey everyone, >>>>=20 >>>> I am trying to delete some product in the OODT File Manager with its >>>> product id or name. However, the system raises >>>> "java.lang.IllegalArgumentException: URI is not absolute" error. Pleas= e >>>> help me! Thank you! >>>>=20 >>>> My commands are: >>>>=20 >>>> ./filemgr-client --op --dbyid --productId >>>> 2b0e7582-6077-11e4-ac24-8d456d2e5b9b --url >>=20 >>=20 >>> http://localhost:9000 >>>>=20 >>>> ./filemgr-client -op --deleteProductByName --productName >>>> concatenatedOutputFile-2014-10-30T20:56:02.189Z.txt --url >>>> http://localhost:9000 >>>>=20 >>>> The logs of the file manager is: >>>> ...... >>>>=20 >>>> Oct 30, 2014 2:56:21 PM >>>> org.springframework.beans.factory.support.AbstractBeanFactory doGetBea= n >>>>=20 >>>> FINE: Returning cached instance of singleton bean 'sqlQuery' >>>>=20 >>>> Oct 30, 2014 2:56:21 PM >>>> org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient >>>>=20 >>>> INFO: Loading File Manager Configuration Properties from: >>>> [/Users/AngelaWang/Documents/programs/oodt-0.7/filemgr/etc/filemgr.pro= pe >>>> r >>>> t >>>> ies] >>>>=20 >>>> Oct 30, 2014 2:56:21 PM >>>> org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient >>>>=20 >>>> INFO: Loading File Manager Configuration Properties from: >>>> [/Users/AngelaWang/Documents/programs/oodt-0.7/filemgr/etc/filemgr.pro= pe >>>> r >>>> t >>>> ies] >>>=20 >>>=20 >>>> ERROR: Failed to delete product >>>> 'org.apache.oodt.cas.filemgr.structs.Product@5433d17' : >>>> java.lang.Exception: java.lang.IllegalArgumentException: URI is not >>>> absolute >>>>=20 >>>> -- >>>> Best, >>>> Mengying (Angela) Wang >>>=20 >>>=20 >>>=20 >>>=20 >>>=20 >>>=20 >>>=20 >>>=20 >>>=20 >>>=20 >>> -- >>> Best, >>> Mengying (Angela) Wang >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >>=20 >> --=20 >> Best, >> Mengying (Angela) Wang >=20