We can configure remote metastore in hive-site.xml file with the below property.
hive-site.xml file in node2
<property>
<name>hive.metastore.uris</name>
<value>thrift://node1(or IP Address):9083</value>
<description>IP address (or fully-qualified domain name) and port of the metastore host</description>
</property>