Presentation is loading. Please wait.

Presentation is loading. Please wait.

PARTHA MUKHERJEE pom5109@ist.psu.edu How to use ist516 server to make your search engine publicly accessible PARTHA MUKHERJEE pom5109@ist.psu.edu.

Similar presentations


Presentation on theme: "PARTHA MUKHERJEE pom5109@ist.psu.edu How to use ist516 server to make your search engine publicly accessible PARTHA MUKHERJEE pom5109@ist.psu.edu."— Presentation transcript:

1 PARTHA MUKHERJEE pom5109@ist.psu.edu
How to use ist516 server to make your search engine publicly accessible PARTHA MUKHERJEE

2 YouSeer user only If your team is using Apache ist516 server, you do NOT need to read this slide If your team is using YouSeer, run crawling using the YouSeer VM in your desktop, and wants to move stuff to ist516 server for public access, keep reading Your crawled data are currently only accessible within your YouSeer VM So, you need to move those to ist516 server

3 INSTRUCTIONS In a nutshell, you have to:
Upload some files from your YouSeer VM to some web space (eg, PSU PASS web space) using a web browser Download “solr” to ist516 server Transfer those uploaded files from the web space to ist516 server using “wget” program Configure Tomcat ist516 server

4 1. Upload Files to PASS Using a web browser, upload the following files in your YouSeer VM to some web space /home/apps/apache-solr-1.3.0/example/webapps/solr.war /home/apps/apache-solr-1.3.0/example/solr/data folder (you may compress it first using: “tar –cvf data.tar data”) /home/apps/apache-solr-1.3.0/example/solr/conf/schema.xml /home/apps/apache-Tomcat-XXX/webapps/youseerui.war

5 2. Download Solr to ist516 Server
Connect to Vlabs using “remote desktop” (using PSU ID/PWD) Within VLabs, using “SSH client”, connect to ist516 ist516.ist.psu.edu (using the provided team ID/PWD) Once connected: Download apache-solr by the following command: wgethttp://apache.cyberuse.com//lucene/solr/1.3.0/apache-solr tgz Then, unpack it by: tar xvf apache-solr tgz If this creates a folder named “apache-solr-1.3.0”, you are OK

6 3. Transfer Files to ist516 Server
Suppose in step 1, I uploaded my files into Penn State’s PASS folder: Then, Transfer each file to ist516 server using the command: “wgethttp:// solr.warshould be put into ~/tomcat/webapps/ youseerui.warshould be put into ~/tomcat webapps/ schema.xml should be put into ~/apache-solr-1.3.0/example/solr/conf/ First remove old “schema.xml” by running “rmschema.xml” command data.taris to be downloaded into and uncompressed under ~/apache-solr-1.3.0/example/solr/ Uncompress it by “tar –xvf data.tar” command

7 4. Configuring Server First, start tomcat server by running:
This will unpack “war” files that you downloaded and create several needed folders in tomcat ist516 server is a unix system, so get familiar with simple unix commands from here: To edit a file, use the “nano” software To open foo.xml, use: “nano foo.xml” To save and exit foo.xml, “crtl + X” in the nano

8 4. Configuring Server (cont)
In Apache-tomcat: Edit ~/tomcat/webapps/solr/WEB-INF/web.xml” Find the entry for “<env-entry-name>solr/home</env-entry-name>” Under it, make the following change, where “teamX” shoud be your team id like “team4”: <env-entry-value>/home/teamX/apache-solr-1.3.0/example/solr/ </env-entry-value> Uncomment “<!- -” and “- - >” surrounding the changes if they were commented

9 4. Configuring Server (cont)
In apache-solr-1.3.0: Edit the ~/apache-solr-1.3.0/example/solr/conf/solrconfig.xml Change the value of <dataDir>..</dataDir> to <dataDir>/home/teamX/apache-solr-1.3.0/example/solr/data</dataDir>

10 4. Configuring Server (cont)
Edit the port number in~/tomcat/webapps/youseerui/WEB-INF/web.xml file Find the“<param-name>index_url</param-name>” line Below it,put the port number in <param-value> </param-value> Your team port number would be “900X”, where X is team number (eg, 9004 for team 4) Uncomment if the block was commented

11 5. Running Server (cont) When the web browser is opened, search the keyword in it (Screenshot 2) To check the Solr statistics whether the keyword is indexed or not (Screenshots 3&4) When you have finished your search and get results, then Stop tomcat server before logging out of the SSH client: stop-tomcat

12 Search keyword through YOUSEER UI

13 Indexing of Keyword in Solr


Download ppt "PARTHA MUKHERJEE pom5109@ist.psu.edu How to use ist516 server to make your search engine publicly accessible PARTHA MUKHERJEE pom5109@ist.psu.edu."

Similar presentations


Ads by Google