Package Details: solr 6.2.0-2

Git Clone URL: https://aur.archlinux.org/solr.git (read-only)
Package Base: solr
Description: Popular, blazing fast open source enterprise search platform from the Apache Lucene project
Upstream URL: http://lucene.apache.org/solr/
Licenses: Apache
Submitter: mtorromeo
Maintainer: trichards
Last Packager: trichards
Votes: 36
Popularity: 1.539109
First Submitted: 2011-05-23 09:43
Last Updated: 2016-09-09 17:09

Latest Comments

trichards commented on 2016-09-09 17:06

@webdawg: There's no particular reason for the `java-environment-common` dependency, other than the initial packager having made it that way. You're right, though -- the package should depend on an actual Java runtime and not just the common files. Along with the 6.2.0 version upgrade, I've changed the package to depend on `java-runtime-headless>=8` which should allow you to pick from a wide range of JREs/JDKs.

webdawg commented on 2016-09-04 20:13

So solr looks like it requires java, and it pulls in java-environment-common, but when I install it it does not install java, what is the deal? Why does not java-environment-common pull in java or ask you which you want to install?

Is their any reason you did not pull in a specific java, is it just for flexibility?

webdawg commented on 2016-09-04 19:07

6.2.0 is out

jamesan commented on 2015-07-11 15:38

I've created a solr5 package that installs Solr 5.2.1. I've tried to break up the package according to the FHS with symlinks from the package's webapp directory to the various

It runs out of the box with either the systemd service unit or a /usr/bin/solr script that specifies the correct FHS paths for the various components.

https://aur4.archlinux.org/packages/solr5

grimsock commented on 2015-05-27 10:09

For now updated to 4.10.4.

nineinchnick commented on 2015-03-18 08:52

Maybe this package should be copied as solr4 (and updated to 4.10.4) and solr should be at version 5.0?

marcvangend commented on 2015-03-03 08:25

Solr 5 was released. From what I'm reading (http://lucene.apache.org/solr/news.html) the installation is quite different from Solr 4 so I'm not sure if upgrading will be easy.

CraigRat commented on 2015-02-13 22:48

Installing 4.10.3 (clean installation, not upgrading) from AUR and starting the solr service works ok, however the base URL for the server is / rather than /solr/ so nothing works when trying to add documents etc.
If I go to http://localhost:8983 I get the Admin page, but if I go to the url http://localhost:8983/solr/ (as per all the documentation I get a 404).
It seems the base URL is configured funny somewhere.

Any advice?

grimsock commented on 2015-01-07 21:31

When? Did you try to reload service?

heaven commented on 2015-01-07 21:22

Getting this error:
solr: /etc/solr/core0/conf already exists in the file system
solr: /etc/solr/core1/conf already exists in the file system

grimsock commented on 2015-01-07 14:15

updated to 4.10.3

grimsock commented on 2014-09-17 21:27

updated to 4.10.0

ddanier commented on 2014-08-26 08:42

I currently do not use the solr package any more. If anyone is interested in adopting this package, feel free to do so.

heaven commented on 2014-06-16 15:13

@ddanier, works well for me, thank you!

heaven commented on 2014-06-16 14:52

@ddanier, thx, testing

ddanier commented on 2014-06-12 17:08

@heaven: I added this to the version 4.8.1 PKGBUILD. Hope this works for you.

heaven commented on 2014-06-11 09:17

Hi, Can you please add
cd "$srcdir/solr-$pkgver"

cp -R contrib/ "$pkgdir/usr/share/solr/"
cp -R dist/ "$pkgdir/usr/share/solr/"
at the end of package function?

This will install all additional libraries, e.g. carrot2.

Thanks!

ddanier commented on 2014-05-06 17:39

I updated the package to 4.8.0 and it seems to be working again. Please let me know if you need any additional changes.

gormux commented on 2014-04-30 14:08

I cannot get this to work anymore and don't have time now to investigate.
If someone finds a way, feel free to take this package.

noirbizarre commented on 2014-04-30 10:37

Hi!

Since the 4.7.0 upgrade, I have the following error on SOLR:

java.lang.ClassNotFoundException: org.eclipse.jetty.xml.XmlConfiguration
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
at org.eclipse.jetty.start.Main.invokeMain(Main.java:440)
at org.eclipse.jetty.start.Main.start(Main.java:615)
at org.eclipse.jetty.start.Main.main(Main.java:96)
ClassNotFound: org.eclipse.jetty.xml.XmlConfiguration
Usage: java -jar start.jar [options] [properties] [configs]
java -jar start.jar --help # for more information
systemd[1]: solr.service: main process exited, code=exited, status=254/n/a
systemd[1]: Unit solr.service entered failed state.

I was working with the 4.6.x versions.

It seems related to https://issues.apache.org/jira/browse/SOLR-4050 and https://issues.apache.org/jira/browse/SOLR-4750


gormux commented on 2014-04-08 13:28

Oops, my email address was an old one and I did not receive the comments.
I update the package with heaven's PKGBUILD with version bump to 4.7.1 and using the archives site so that the link won't be dead on next update.

heaven commented on 2014-02-28 16:45

4.7.0: http://pastie.org/pastes/8812583/text?key=rnzto9zyoenrrowyezbpq

fzerorubigd commented on 2014-02-17 09:28

Where is dist folder? for using dataimport feature, it must be there. I think the /usr/lib/solr/dist is a good place for that folder

rkmax commented on 2014-01-30 18:13

I updated package to 4.6.1 which is the latest, I update the backup for other cores, different core0 and core1. although I'm not sure if I did it correctly. make a change to determine where this really the java executable

https://www.dropbox.com/s/ifwkaviw50h79i6/solr-4.6.1-1.src.tar.gz

filipg commented on 2014-01-22 15:12

Hello, I can take it over.

gormux commented on 2013-11-07 11:16

Hello,

I updated the package, using last version from archive url, so that it won't expire.

mtorromeo commented on 2013-11-05 09:37

Anyone wants to take over this package maintainership?
I have been enlightened by elasticsearch and am not using this anymore.

piglovesyou commented on 2013-11-05 09:30

Failed with this error:

java.lang.ClassNotFoundException: org.eclipse.jetty.xml.XmlConfiguration
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.eclipse.jetty.start.Main.invokeMain(Main.java:440)
at org.eclipse.jetty.start.Main.start(Main.java:615)
at org.eclipse.jetty.start.Main.main(Main.java:96)
ClassNotFound: org.eclipse.jetty.xml.XmlConfiguration

piglovesyou commented on 2013-11-05 09:27

Failed with 'java.lang.ClassNotFoundException: org.eclipse.jetty.xml.XmlConfiguration' error.

piglovesyou commented on 2013-11-05 02:47

nubs++

nubs commented on 2013-10-16 15:32

http://archive.apache.org/dist/lucene/solr/4.4.0/solr-4.4.0.tgz is a better url as it won't disappear when a new version comes out. Speaking of which, 4.5.0 is out now, so perhaps http://archive.apache.org/dist/lucene/solr/4.5.0/solr-4.5.0.tgz instead.

mtorromeo commented on 2013-06-17 08:32

Try this updated PKGBUILD.
Seems like the service file was not honoring the WorkingDirectory directive and so the classpath was not set correctly.
I fixed this by passing jetty.home on the command line.

Anonymous comment on 2013-06-14 19:00

sounds like the jetty jar files are not on the classpath

rizumu commented on 2013-05-29 02:29

I get basically the same error as @freaks. If anyone with Java/solr experience has any ideas, please share. Thanks!

$ java -version
java version "1.7.0_21"
OpenJDK Runtime Environment (IcedTea 2.3.9) (ArchLinux build 7.u21_2.3.9-4-x86_64)
OpenJDK 64-Bit Server VM (build 23.7-b01, mixed mode)

$ java -jar /usr/lib/solr/start.jar -config /etc/solr/jetty.xml
WARNING: System properties and/or JVM args set. Consider using --dry-run or --exec
java.lang.ClassNotFoundException: org.eclipse.jetty.xml.XmlConfiguration
at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
at java.lang.ClassLoader.loadClass(ClassLoader.java:423)
at java.lang.ClassLoader.loadClass(ClassLoader.java:356)
at org.eclipse.jetty.start.Main.invokeMain(Main.java:439)
at org.eclipse.jetty.start.Main.start(Main.java:620)
at org.eclipse.jetty.start.Main.main(Main.java:95)
ClassNotFound: org.eclipse.jetty.xml.XmlConfiguration

Usage: java -jar start.jar [options] [properties] [configs]
java -jar start.jar --help # for more information

freaks commented on 2013-04-23 16:18

i have this problem when i try to launch solr

java -jar start.jar -config /etc/solr/jetty.xml
WARNING: System properties and/or JVM args set. Consider using --dry-run or --exec
java.lang.ClassNotFoundException: org.eclipse.jetty.xml.XmlConfiguration
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at org.eclipse.jetty.start.Main.invokeMain(Main.java:439)
at org.eclipse.jetty.start.Main.start(Main.java:620)
at org.eclipse.jetty.start.Main.main(Main.java:95)
ClassNotFound: org.eclipse.jetty.xml.XmlConfiguration

Usage: java -jar start.jar [options] [properties] [configs]
java -jar start.jar --help # for more information

freaks commented on 2013-04-23 09:52

i have this problem when i try to launch solr

java -jar start.jar -config /etc/solr/jetty.xml
WARNING: System properties and/or JVM args set. Consider using --dry-run or --exec
java.lang.ClassNotFoundException: org.eclipse.jetty.xml.XmlConfiguration
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at org.eclipse.jetty.start.Main.invokeMain(Main.java:439)
at org.eclipse.jetty.start.Main.start(Main.java:620)
at org.eclipse.jetty.start.Main.main(Main.java:95)
ClassNotFound: org.eclipse.jetty.xml.XmlConfiguration

Usage: java -jar start.jar [options] [properties] [configs]
java -jar start.jar --help # for more information

Anonymous comment on 2013-03-17 15:25

@heaven: The default log output goes to /var/log/everything.log if you have syslog-ng enabled.

heaven commented on 2013-03-13 08:33

Please help me figure out where is the log output stored?

Anonymous comment on 2013-03-12 19:09

The service file here assumes java to be in /usr/bin/java which is not true if using the packaged Sun Java thats installed in /opt/java.

It might be better to follow standard practice for Java Apps by searching for $JAVA_HOME/bin/java and gracefully falling back from there (/opt/java/bin/java, /usr/bin/java and so on).

mtorromeo commented on 2012-12-04 13:35

I've waited to merge apache-solr and solr together for some time. But I think they are now providing the same type of package and they are essentially duplicated so I'm merging apache-solr into solr.

Please watch out for differences in the directory layout when migrating.

mtorromeo commented on 2012-12-04 13:31

I've reorganized this package with jetty embedded, a working example configuration, dedicated user/group and systemd service file.

Upgrading may require manual intervention to migrate data/configs.

galaux commented on 2012-11-08 20:19

Hello,

It seems there already is a 'apache-solr' package:

https://aur.archlinux.org/packages/apache-solr/

heaven commented on 2012-09-15 06:49

Archive: dist/apache-solr-3.6.1.war
creating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/META-INF/
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/META-INF/MANIFEST.MF
creating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/WEB-INF/
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/WEB-INF/web.xml
creating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/WEB-INF/lib/
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/WEB-INF/lib/commons-codec-1.6.jar
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/WEB-INF/lib/commons-fileupload-1.2.1.jar
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/WEB-INF/lib/commons-httpclient-3.1.jar
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/WEB-INF/lib/commons-io-2.1.jar
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/WEB-INF/lib/commons-lang-2.6.jar
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/WEB-INF/lib/geronimo-stax-api_1.0_spec-1.0.1.jar
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/WEB-INF/lib/guava-r05.jar
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/WEB-INF/lib/jcl-over-slf4j-1.6.1.jar
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/WEB-INF/lib/log4j-over-slf4j-1.6.1.jar
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/WEB-INF/lib/slf4j-api-1.6.1.jar
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/WEB-INF/lib/slf4j-jdk14-1.6.1.jar
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/WEB-INF/lib/wstx-asl-3.2.7.jar
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/WEB-INF/lib/lucene-analyzers-3.6.1.jar
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/WEB-INF/lib/lucene-core-3.6.1.jar
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/WEB-INF/lib/lucene-grouping-3.6.1.jar
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/WEB-INF/lib/lucene-highlighter-3.6.1.jar
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/WEB-INF/lib/lucene-kuromoji-3.6.1.jar
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/WEB-INF/lib/lucene-memory-3.6.1.jar
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/WEB-INF/lib/lucene-misc-3.6.1.jar
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/WEB-INF/lib/lucene-phonetic-3.6.1.jar
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/WEB-INF/lib/lucene-queries-3.6.1.jar
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/WEB-INF/lib/lucene-spatial-3.6.1.jar
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/WEB-INF/lib/lucene-spellchecker-3.6.1.jar
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/WEB-INF/lib/apache-solr-core-3.6.1.jar
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/WEB-INF/lib/apache-solr-solrj-3.6.1.jar
creating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/admin/
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/admin/dataimport.jsp
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/admin/debug.jsp
creating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/admin/replication/
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/WEB-INF/weblogic.xml
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/admin/_info.jsp
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/admin/action.jsp
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/admin/analysis.jsp
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/admin/analysis.xsl
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/admin/distributiondump.jsp
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/admin/favicon.ico
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/admin/form.jsp
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/admin/get-file.jsp
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/admin/get-properties.jsp
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/admin/header.jsp
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/admin/index.jsp
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/admin/jquery-1.4.3.min.js
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/admin/meta.xsl
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/admin/ping.jsp
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/admin/ping.xsl
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/admin/raw-schema.jsp
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/admin/registry.jsp
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/admin/registry.xsl
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/admin/replication/header.jsp
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/admin/replication/index.jsp
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/admin/schema.jsp
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/admin/solr-admin.css
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/admin/solr_small.png
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/admin/stats.jsp
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/admin/stats.xsl
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/admin/tabular.xsl
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/admin/threaddump.jsp
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/admin/threaddump.xsl
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/favicon.ico
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/index.jsp
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/META-INF/LICENSE.txt
inflating: /tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/solr/META-INF/NOTICE.txt
ln: can't create a symbolic link «/tmp/yaourt-tmp-heaven/aur-solr/pkg/usr/share/jetty/webapps/solr»: No such file or directory

Fandekasp commented on 2012-06-14 03:37

solr cannot be installed because of jetty dependency that breaks during the build.

If I'm right, jetty is useful for logging and therefore not mandatory. A temporary solution would be to remove that dependency until jetty package is fixed (which will probably take a while...)

dundee commented on 2012-05-08 12:25

Hm, the mirror seems to be broken. Will use another.

martinpoljak commented on 2012-05-06 14:01

--2012-05-06 16:01:18-- http://ftp.sh.cvut.cz/MIRRORS/apache/lucene/solr/3.6.0/apache-solr-3.6.0.tgz
Resolving ftp.sh.cvut.cz... 147.32.127.222, 2001:718:2::222
Connecting to ftp.sh.cvut.cz|147.32.127.222|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2012-05-06 16:01:18 ERROR 404: Not Found.

heaven commented on 2012-01-13 07:45

Hi, got this error after installing and launching.
I am newbie in java, does anybody know why it might happen?

HTTP ERROR 500

Problem accessing /solr/admin/. Reason:

Severe errors in solr configuration.

Check your log files for more detailed information on what may be wrong.

If you want solr to continue after configuration errors, change:

<abortOnConfigurationError>false</abortOnConfigurationError>

in solr.xml

-------------------------------------------------------------
org.apache.solr.common.SolrException: Error loading class 'solr.VelocityResponseWriter'
at org.apache.solr.core.SolrResourceLoader.findClass(SolrResourceLoader.java:389)
at org.apache.solr.core.SolrCore.createInstance(SolrCore.java:425)
at org.apache.solr.core.SolrCore.createInitInstance(SolrCore.java:447)
at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1556)
at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1550)
at org.apache.solr.core.SolrCore.initPlugins(SolrCore.java:1583)
at org.apache.solr.core.SolrCore.initWriters(SolrCore.java:1466)
at org.apache.solr.core.SolrCore.<init>(SolrCore.java:556)
at org.apache.solr.core.CoreContainer.create(CoreContainer.java:463)
at org.apache.solr.core.CoreContainer.load(CoreContainer.java:316)
...

logankoester commented on 2011-11-15 19:55

I received "PWC6345: There is an error in invoking javac." when I visited http://localhost:8080/solr/admin/ after installation. The solution was to install the package jdk7-openjdk. Perhaps this should be added to the list of dependencies (or maybe for jetty, and not solr itself)?