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/plain,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
