CLAVIN and CLAVIN Rest installation problems

171 views
Skip to first unread message

Makiko Shukunobe

unread,
May 30, 2014, 3:47:14 PM5/30/14
to clavin...@googlegroups.com
Dear Charlie,
 
Greetings.  I currently work as research associate at the Center for Geospatial Analytics (CGA) (formally the Center for Earth Observation) at North Carolina State University.  I happened to know about the CLAVIN application from the All Things Open conference held in Raleigh in October, 2013.  A few of us from (CGA) attended the conference, and most of us attended your session since the topic was related to geospatial -- we very much enjoyed your presentation.  
 
We would like to use a CLAVIN-generated result in creating a web map (adding geospatial analysis functions).  We would kindly like to ask what version of CLAVIN among CALVIN, CLAVIN-rest, CLAVIN-NERD and CLAVIN-python is the best option (easiest and quickest for creating a web map using JavaScript) for us to use?  
 
We thought that the CLAVIN-rest may be the best option for us so we attempted to install the application; however,  we encountered a problem in that we are unable to create a Lucene index using .\allCountries.txt.  I saved the "allCountries.txt" in the first level (under the CLAVIN-rest-master) and it throws an error "java.io.FileNotFoundException: .\allCountries".  To resolve the problem, I tried saving the file in a few different places, but none of the attempts were successful. I would very much appreciate if you could please kindly assist me to properly install CLAVIN-rest.  All of the steps I took are shown at the end of this discussion.
 
Thank you in advance.
 
Sincerely yours,
Makiko Shukunobe
 
-------------------------------------------------------------
Steps I took:
  1. Download CLAVIN-rest-master from GitHub, extract the folder and save it in my local drive.
  2. In Windows 8 CMD, cd C:\Users\Makiko\CLAVIN-rest-master
  3. Download the CLAVIN Rest Server
  4. Download CLAVIN Bundle snapshot
  5. Download Geonames and extract the allCountries.text file 
  6. Create a CLAVIN gazetteer --> Here I got "java.io.FileNotFoundException: .\allCountries" error as showing below:
C:\Users\Makiko\CLAVIN-rest-master>java -Xmx2048m -jar clavin.jar index
13:30:31.662 [main] INFO  - Indexing... please wait.
13:30:31.790 [main] INFO  - Reading in text file: ./allCountries.txt
Exception in thread "main" java.io.FileNotFoundException: .\allCountries (The sy
stem cannot find the file specified)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(Unknown Source)
        at com.bericotech.clavin.index.IndexDirectoryBuilder.main(IndexDirectory
Builder.java:115)
        at com.bericotech.clavin.cli.Main.main(Main.java:59)

Note: 
We tried to install CLAVIN and we got an error "MAVEN_OPTS" is not recognized as an internal or external command, operable program or batch file at the step 6 "Create the Lucene Index (this one-time process will take several minutes):MAVEN_OPTS="-Xmx2048M" mvn exec:java -Dexec.mainClass="com.bericotech.clavin.index.IndexDirectoryBuilder".  We stumbled the same step (creating index) and we were not able to figure out the problem. 
Here is the system information and more:
OS: Windows 8
JDK: jdk1.7.0_60
Appache Marven:  apache-maven-3.2.1 ( we followed the steps provided at the http://maven.apache.org/download.cgi)

Makiko Shukunobe

unread,
Jun 4, 2014, 1:25:54 PM6/4/14
to clavin...@googlegroups.com
Dear Charlie,

Please disregard the posted question.  We were able to solve the problem and both CLAVIN and CLAVIN-Rest works on our machines:)

Thank you,
Makiko

Charlie Greenbacker

unread,
Jun 20, 2014, 12:49:42 AM6/20/14
to clavin...@googlegroups.com
Apologies for the slow response, Makiko. I'm glad to hear everything turned out well for you. Can you tell us a bit more about your project? Is there a publicly-available demo where we might be able to check it out?

- Charlie

Makiko Shukunobe

unread,
Jun 24, 2014, 8:57:13 AM6/24/14
to clavin...@googlegroups.com
Hi Charlie,

we are still just experimenting with things, so we don't have a public facing web site for a project as of yet.  But CLAVIN is a fantastic tool and we are very keen to leverage it.   We really appreciate you getting back to us.  

Thank you!
Makiko
Reply all
Reply to author
Forward
0 new messages