[
https://issues.apache.org/jira/browse/KNOX-528?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
John McParland updated KNOX-528:
--------------------------------
Attachment: KNOX-528.patch
Added service and rewrite definitions for Solr support via Knox.
Key decisions
- used a Solr service definition obtained from the topology (as opposed to
Zookeeper): this is in line with proposed setup for client where there will
only be one Solr
- Installed Solr on HDP 2.4 using the HDP Search product
- Only proxied the API via Knox - no need nor desire to proxy the UI
Patch includes
- service.xml definition for Solr with route for the API
- rewrite.xml definition for the re-write rules
- update to UrlRewriteProcessorTest that includes a JUnit test for the Solr
re-write rule.
Example topology definition for Solr (based on Hortonworks Data Platform 2.4
sandbox)
{noformat}
<service>
<role>SOLRAPI</role>
<url>http://sandbox.hortonworks.com:8983/solr</url>
</service>
{noformat}
Also attached evidence of running it - first an example of output from Solr
directory, the second of the same query run through Knox. Only difference is
the URLs and timing!
> Support for Apache SOLR REST APIs
> ---------------------------------
>
> Key: KNOX-528
> URL: https://issues.apache.org/jira/browse/KNOX-528
> Project: Apache Knox
> Issue Type: Improvement
> Reporter: Rick Kellogg
> Assignee: John McParland
> Fix For: Future
>
> Attachments: KNOX-528.patch
>
>
> Add Knox support for routing and securing Apache SOLR's REST APIs
> See: https://wiki.apache.org/solr/Solrj
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)