I have multiple topologies (one per customer, ABC, DEF, etc.) where I ONLY
enable hive and
authenticate users via LDAP (and limit access to a specific group (e.g.:
ABC-Hive-Users).
…
<provider>
<role>authorization</role>
<name>AclsAuthz</name>
<enabled>true</enabled>
<param name="hive.acl" value="*;ABC-Hive-Users;*" />
</provider>
<service>
<role>HIVE</role>
<url>http://myinternalhiveserver:10010/cliservice</url>
</service>
This all works fine and clients can access my hive service via
/sqlservice/ABC/hive
Is it possible to add another “default” rule for “ABC” topology so that
“/sqlservice/ABC” and “/sqlservice/ABC/hive” point to the same service?
I see the routes & rule entries in service.xml and rewrite.xml files but it’s
not clear to me which one to edit.
Service.xml
…
<routes>
<route path="/hive"/>
</routes>
Rewrite.xml
…
<rules>
<rule dir="IN" name="HIVE/hive/inbound" pattern="*://*:*/**/hive">
<rewrite template="{$serviceUrl[HIVE]}"/>
</rule>
</rules>
--
Alan