Community Articles

Find and share helpful community-sourced technical articles.
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.
Labels (2)
Rising Star

Requirement: HDP 2.6.1
Fix version is knox: 0.12.0, according to KNOX-841

Method I: Using "solr" as data service {/usr/hdp/current/knox-server/data/services/solr}

Add below in Ambari UI > KNOX > Configs > Advanced topology for Solr UI.


Make sure service def is in Upper Case.
Restart KNOX

Use below URL for access Solr UI using KNOX


Method II: Using "solrapi" as data service {/usr/hdp/current/knox-server/data/services/solrapi} for Banana UI KNOX-528

Add below in Ambari UI > KNOX > Configs > Advanced topology for Solr UI.



Login into sorl server:
Please make sure you have "banana" folder under below location.


Create a new file called banana-jetty-context.xml under /opt/lucidworks-hdpsearch/solr/server/contexts

and populate it with the following

<?xml version="1.0"?>
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "">
<Configure class="org.eclipse.jetty.webapp.WebAppContext">
  <Set name="contextPath"><Property name="hostContext" default="/solr/banana"/></Set>
  <Set name="war"><Property name="jetty.base"/>/solr-webapp/webapp/banana</Set>
  <Set name="defaultsDescriptor"><Property name="jetty.base"/>/etc/webdefault.xml</Set>
  <Set name="extractWAR">false</Set>

Restart SOLR and access Banana UI using below URL.


New Contributor

The first method does not work for me on HDP 2.6.2. What happens, is that the SOLR UI accessed through Knox (Or Knox itself does?) forwards to the actual address of the SOLR UI, and obviously that access doesn't work (due to firewall, differing Kerberos realms - whichever of the reasons you use Knox for).

Are you aware of any supplemental configuration to achieve a working Knox-proxy with the HDP-Search-SOLR?

Adding /solr to the url helps marginally, because it avoids the redirect, but the URLs and content are not working correctly.

New Contributor

The correct way is add following context to default.xml



and use below URL for access Solr UI:


Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.
Version history
Last update:
‎08-22-2017 09:18 AM
Updated by:
Top Kudoed Authors