Dear Prof. Mattmann, OODT-781 is about the filemgr-client script, while this one is about the query-tool script. They may be different issues.
Also I would like to submit a patch file, but I am not so sure about where to get the RADiX OODT 0.7 source code? This one http://svn.apache.org/repos/asf/oodt/trunk/mvn/archetypes/radix/src/main/resources/archetype-resources/ is correct. Thanks. Best, Mengying (Angela) Wang On Wed, Nov 5, 2014 at 4:39 PM, Mattmann, Chris A (3980) < [email protected]> wrote: > 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: [email protected] > 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 <[email protected]> > Date: Wednesday, November 5, 2014 at 4:54 PM > To: Chris Mattmann <[email protected]> > Cc: "[email protected]" <[email protected]> > 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=`cd "$PRGDIR/../../.." ; pwd` > > > > > > > >to > > > > > ># Only set OODT_HOME if not already set > > > >[ -z "$OODT_HOME" ] && OODT_HOME=`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="$OODT_HOME"/components/filemgr > > export FILEMGR_HOME > >fi > > > > > > > >to > > > > > ># Only set FILEMGR_HOME if not already set > >if [ -z "$FILEMGR_HOME" ]; then > > FILEMGR_HOME="$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 > > > > > > > > > > -- Best, Mengying (Angela) Wang
