Bug 168515 - New port: devel/elasticsearch A search engine in Java
Summary: New port: devel/elasticsearch A search engine in Java
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Tom Judge
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-01 04:00 UTC by Chris Nehren
Modified: 2012-12-08 22:01 UTC (History)
0 users

See Also:


Attachments
file.shar (6.40 KB, text/plain)
2012-06-01 04:00 UTC, Chris Nehren
no flags Details
smime.p7s (5.81 KB, application/x-pkcs7-signature)
2012-09-03 10:49 UTC, stefan.witzel
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Nehren 2012-06-01 04:00:13 UTC
elasticsearch is a search engine written in Java. It supports indexing
data in JSON over HTTP, is schema-free and document-oriented. It
presents a REST API, and supports various sharding and replication
schemes.

WWW: http://elasticsearch.org

Included are diffs against UIDs and GIDs from ports as of when `portsnap cron` ran today (2012-05-31). I chose UID/GID 148, the first available pair, though I am not attached to these numbers.
Comment 1 Jason Helfman freebsd_committer freebsd_triage 2012-06-14 06:55:34 UTC
Responsible Changed
From-To: freebsd-ports-bugs->jgh

I'll take it.
Comment 2 steven 2012-07-19 11:22:25 UTC
Been using this port to get an install done and came across a few issues.
1. The depends should be RUN_DEPENDS not BUILD_DEPENDS
2. Elasticsearch actually depends on a build of lucene with CONTRIB
selected. IIRC the only way to solve this is to create a dependent
port e.g. lucene-contrib that configures lucene to build with CONTRB
and then depend on that port.
3. Version is a little out of date, its now 0.19.8
4. As fetch doesn't support redirects the github url fails, changing
it to http://cloud.github.com/downloads/elasticsearch/elasticsearch/
works.
5. sigar can still be used on 8.X releases so I'd suggest:-
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 900007
RUN_DEPENDS+=   ${JAVALIBDIR}/sigar.jar:${PORTSDIR}/sysutils/hyperic-sigar
.endif
...
.include <bsd.port.post.mk>
6. pkg-plist should use the port version e.g.
%%JAVAJARDIR%%/elasticsearch-%%PORTVERSION%%.jar
which also requires adding an additional PLIST_SUB to the Makefile
PLIST_SUB+=     PORTVERSION=${PORTVERSION}
7. I don't think the pid file should really go in the ES_HOME
/var/run/elasticsearch/elasticsearch.pid is more FreeBSD like.

Hope this helps.

================================================
This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. 

In the event of misdirection, illegible or incomplete transmission please telephone +44 845 868 1337
or return the E.mail to postmaster@multiplay.co.uk.
Comment 3 stefan.witzel 2012-09-03 10:49:08 UTC
Hi,

there is a hyperic-sigar patch by Ed Schouten at
https://github.com/hyperic/sigar/pull/11 .
 
I installed a patched version of sigar for testing elasticsearch (no port),
I have no problems.

It seemed the patch was not accepted by the sigar developers yet. How about
to configure the port using it?

Mit freundlichen Grüßen	

Stefan Witzel 

_______________________________________
Georg-August-Universität Göttingen
Stiftung Öffentlichen Rechts
Abteilung IT
Goßlerstraße 5/7
37073 Göttingen

Telefon: 0551 / 39-4160
Fax:     0551 / 39-184160
E-Mail:  stefan.witzel@zvw.uni-goettingen.de
Comment 4 Tom Judge freebsd_committer freebsd_triage 2012-11-30 19:45:20 UTC
Responsible Changed
From-To: jgh->tj

Taking over from jgh with permission.
Comment 5 Tom Judge freebsd_committer freebsd_triage 2012-12-08 22:01:13 UTC
State Changed
From-To: open->closed

New port commited as textproc/elasticsearch.