Due to the configuration items of hadoop
<property>
<name>fs.defaultFS</name>
<value>hdfs://localhost:9000</value>
</property>
Changed
<property>
<name>fs.defaultFS</name>
<value>hdfs://192.168.65.128:9000</value>
</property>
Leading to hive select when the following error:
SemanticException Unable to determine if hdfs://localhost:9000/user/hive/warehouse/t1.db/student is encrypted: org.apache.hadoop.hive.ql.metadata.HiveException: java.net.ConnectException: Call From localhost/127.0.0.1 to localhost:9000 failed on connection exception: java.net.ConnectException: Connection refused; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused
This is generally hive data storage path does not go directly to the mysql data modification in the original hive on it:
mysql execute the following command:
use hive;
update DBS set DB_LOCATION_URI=REPLACE (DB_LOCATION_URI,'localhost','192.168.65.128')
update SDS set LOCATION=REPLACE (LOCATION,'localhost','192.168.65.128');
Borrowing: