Skip to content

Commit

Permalink
Merge pull request #23 from projecthydra/solr-4.9
Browse files Browse the repository at this point in the history
Solr and Jetty updates
  • Loading branch information
awead committed Aug 29, 2014
2 parents 248a8e5 + d41af9f commit 396ffff
Show file tree
Hide file tree
Showing 48 changed files with 448 additions and 106 deletions.
432 changes: 371 additions & 61 deletions NOTICE.txt

Large diffs are not rendered by default.

69 changes: 69 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
# hydra-jetty

This is a copy of jetty with the needed applications for running Hydra. These include two java-based applications:

* [Fedora repository](https://github.com/futures/fcrepo4)
* [Solr](http://lucene.apache.org/solr/)

## Included Versions

* jetty: 8.1.10.v20130312
* solr: 4.9.0
* fedora: 3.7.1

## Usage

### Dependencies

* [Java 7 (JRE)](https://java.com/en/download/index.jsp)

#### Java 6

Java 6 is unsupported under Solr 4.9, but still supported under Fedora 3.7.1. However, hydra-jetty has only been tested under
Java 7 so it is recommended to use Java 7 and not Java 6.

### Manual

git clone https://github.com/projecthydra/hydra-jetty
cd hydra-jetty
java -Xmx256m -XX:MaxPermSize=256m -jar start.jar

You can also change the port jetty starts on by editing the file etc/jetty.xml and changing this line to indicate a different port number:

<Set name="port"><SystemProperty name="jetty.port" default="8983"/></Set>

### Using jettywrapper

For use within your Hydra application's Rails directory.

rake jetty:install
rake jetty:start

See [jettywrapper](https://github.com/projecthydra/jettywrapper) for more information regarding configuration and usage.
Port numbers and other java options maybe configured via the gem.

### Interaction

When jetty is finished initializing itself, Solr is available at

* [http://localhost:8983/solr/](http://localhost:8983/solr/)

Fedora is available in two copies, one for developement

* [http://localhost:8983/fedora/](http://localhost:8983/fedora/)

and an additional copy for testing:

* [http://localhost:8983/fedora-test/](http://localhost:8983/fedora-test/)

You can see a list of all installed applications at

* [http://localhost:8983](http://localhost:8983)

### Updating

#### Solr and Jetty

Solr is updated by downloading the latest from [Lucene](http://lucene.apache.org/solr/), which includes an instance of Jetty in the
`example` directory. Updating is a process of replacing the jar files as well as the solr.war and start.jar files. Note that the
example from Lucene does not include the start.ini file.
34 changes: 0 additions & 34 deletions README.txt

This file was deleted.

Binary file removed lib/ext/jcl-over-slf4j-1.6.6.jar
Binary file not shown.
Binary file added lib/ext/jcl-over-slf4j-1.7.6.jar
Binary file not shown.
Binary file removed lib/ext/jul-to-slf4j-1.6.6.jar
Binary file not shown.
Binary file added lib/ext/jul-to-slf4j-1.7.6.jar
Binary file not shown.
Binary file removed lib/ext/log4j-1.2.16.jar
Binary file not shown.
Binary file added lib/ext/log4j-1.2.17.jar
Binary file not shown.
Binary file removed lib/ext/slf4j-api-1.6.6.jar
Binary file not shown.
Binary file added lib/ext/slf4j-api-1.7.6.jar
Binary file not shown.
Binary file removed lib/ext/slf4j-log4j12-1.6.6.jar
Binary file not shown.
Binary file added lib/ext/slf4j-log4j12-1.7.6.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added lib/jetty-http-8.1.10.v20130312.jar
Binary file not shown.
Binary file removed lib/jetty-http-8.1.8.v20121106.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added lib/jetty-server-8.1.10.v20130312.jar
Binary file not shown.
Binary file removed lib/jetty-server-8.1.8.v20121106.jar
Binary file not shown.
Binary file added lib/jetty-servlet-8.1.10.v20130312.jar
Binary file not shown.
Binary file removed lib/jetty-servlet-8.1.8.v20121106.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added lib/jetty-xml-8.1.10.v20130312.jar
Binary file not shown.
Binary file removed lib/jetty-xml-8.1.8.v20121106.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion solr/development-core/conf/solrconfig.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<abortOnConfigurationError>${solr.abortOnConfigurationError:true}</abortOnConfigurationError>

<luceneMatchVersion>LUCENE_43</luceneMatchVersion>
<luceneMatchVersion>4.9</luceneMatchVersion>

<directoryFactory name="DirectoryFactory" class="${solr.directoryFactory:solr.StandardDirectoryFactory}"/>

Expand Down
15 changes: 6 additions & 9 deletions solr/lib/contrib/analysis-extras/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,13 @@ upon large dependencies/dictionaries.
It includes integration with ICU for multilingual support, and
analyzers for Chinese and Polish.

Relies upon the following lucene components (in lucene-libs/):
ICU relies upon lucene-libs/lucene-analyzers-icu-X.Y.jar
and lib/icu4j-X.Y.jar

* lucene-analyzers-icu-X.Y.jar
* lucene-analyzers-smartcn-X.Y.jar
* lucene-analyzers-stempel-X.Y.jar
* lucene-analyzers-morfologik-X.Y.jar
* lucene-analyzers-smartcn-X.Y.jar
Smartcn relies upon lucene-libs/lucene-analyzers-smartcn-X.Y.jar

And the following third-party library (in lib/):
Stempel relies on lucene-libs/lucene-analyzers-stempel-X.Y.jar

* icu4j-X.Y.jar
* morfologik-*.jar
Morfologik relies on lucene-libs/lucene-analyzers-morfologik-X.Y.jar
and lib/morfologik-*.jar

Binary file removed solr/lib/contrib/analysis-extras/lib/icu4j-49.1.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed solr/lib/solr-analysis-extras-4.3.0.jar
Binary file not shown.
Binary file added solr/lib/solr-analysis-extras-4.9.0.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion solr/test-core/conf/solrconfig.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<abortOnConfigurationError>${solr.abortOnConfigurationError:true}</abortOnConfigurationError>

<luceneMatchVersion>LUCENE_43</luceneMatchVersion>
<luceneMatchVersion>4.9</luceneMatchVersion>

<directoryFactory name="DirectoryFactory" class="${solr.directoryFactory:solr.StandardDirectoryFactory}"/>

Expand Down
Binary file modified start.jar
Binary file not shown.
Binary file modified webapps/solr.war
Binary file not shown.

0 comments on commit 396ffff

Please sign in to comment.