You can set the port in the hive-site.xml file. Suppose you want to change the port of server 2, then it should be done as follows:
<property>
  <name>hive.server2.thrift.port</name>
  <value>10001</value>
  <description>TCP port number to listen on, default 10000</description>
</property>