sqoop导入数据到hive但是metastore不能连接重新配置的mysql中的metastore
0.修改 /soft/hive/conf/hive-site.xml
<property>
<name>hive.metastore.local</name>
<value>false</value>
<description>controls whether to connect to remote metastore server or open a new metastore server in Hive Client JVM</description>
</property>
<property>
<name>hive.metastore.uris</name>
<value>thrift://s101:9083</value>
<description></description>
</property>
1.删除mysql中存储hive元数据库matestore的库
重新初始化元数据‘
拷贝mysql驱动到hive下
cp ~/mysql-connector-java-5.1.44.jar /soft/hive/lib/
mysql -uroot -pLisida123.
在mysql中创建数据库hive
create database hive;
初始化元数据库
schematool -initSchema -dbType mysql