Indexima provides its own authentication mechanism for basic user/password authentication.


Activate this authentication mechanism, in the hive-site.xml configuration file:

hive-site.xml

        <property>
                <name>hive.server2.authentication</name>
                <value>CUSTOM</value>
        </property>
        <property>
                <name>hive.server2.custom.authentication.class</name>
                <value>io.galactica.admin.HiveAuthProvider</value>
        </property>
XML


To configure users, you need to add the list of users and passwords in your galactica.conf file. Both lists are comma-separated.

session.users=admin,user1
session.passwords=adminPassword,passUser1
users.in.admin.role=admin,user1
BASH


You can then create new users with the CREATE USER sql command, as described in SQL reference.