You can enable encryption of data flowing between Hive JDBC and Hive server by adding the following property in the hive-site.xml file:
<property>
<name>hive.server2.thrift.sasl.qop</name>
<value>auth-conf</value>
<description>Sasl QOP value; one of 'auth', 'auth-int' and 'auth-conf'</description>
</property>