hive-site.xml配置文件
<property>
<name>hive.server2.thrift.bind.host</name>
<value>node1</value>
</property>
hive.server2.thrift.bind.host: This property determines the host
address to which the HiveServer2 Thrift service will bind. The Thrift
service is responsible for handling client requests and executing
queries against the Hive metastore.In this configuration, the bind host is set to
node1, which means that the HiveServer2 Thrift service will listen for
incoming connections on the network interface associated with the
hostname node1. Clients intending to connect to HiveServer2 Thrift
should use this hostname or its corresponding IP address to establish
a connection.
<property>
<name>hive.metastore.uris</name>
<value>thrift://node1:9083</value>
</property>
- hive.metastore.uris: This property defines the URI for accessing the
Hive metastore service. The metastore stores metadata related to Hive
tables, schemas, and partitions.- In this configuration, the URI is
set to thrift://node1:9083, indicating that the Hive metastore service
is accessible via the Thrift protocol at the host node1 on port 9083.
Clients, such as HiveServer2 or other Hive components, use this URI to
communicate with the metastore service for metadata operations.