|
>我们需要设置root @ localhost以使用mysql_native_password身份验证,并设置@rajesh提到的密码:
mysql> alter user root@localhost identified with mysql_native_password by 'password';
Query OK,0 rows affected (0.00 sec)
mysql> flush privileges;
Query OK,0 rows affected (0.00 sec)
mysql> q
Bye
>仍然配置单元为我抛出错误,因为未更新加载的mysql模式.所以不得不做Hive 2.1.1 MetaException(message:Version information not found in metastore. )中提到的一些步骤
cd $HIVE_HOME/scripts/metastore/upgrade/mysql/
mysql -uroot -ppassword
mysql> use metastore;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> source hive-schema-2.3.0.mysql.sql;
>现在,配置单元开始正常.
2019-04-03T08:58:01,442 INFO [main] org.apache.hadoop.hive.metastore.HiveMetaStore - Starting hive metastore on port 9083
2019-04-03T08:58:01,687 INFO [main] org.apache.hadoop.hive.metastore.HiveMetaStore - 0: Opening raw store with implementation class:org.apache.hadoop.hive.metastore.ObjectStore
2019-04-03T08:58:05,535 INFO [main] org.apache.hadoop.hive.metastore.HiveMetaStore - Added admin role in metastore
2019-04-03T08:58:05,546 INFO [main] org.apache.hadoop.hive.metastore.HiveMetaStore - Added public role in metastore
2019-04-03T08:58:05,594 INFO [main] org.apache.hadoop.hive.metastore.HiveMetaStore - No user is added in admin role,since config is empty
2019-04-03T08:58:05,804 INFO [main] org.apache.hadoop.hive.metastore.HiveMetaStore - Starting DB backed MetaStore Server with SetUGI enabled
2019-04-03T08:58:05,814 INFO [main] org.apache.hadoop.hive.metastore.HiveMetaStore - Started the new metaserver on port [9083]...
2019-04-03T08:58:05,815 INFO [main] org.apache.hadoop.hive.metastore.HiveMetaStore - Options.minWorkerThreads = 200
2019-04-03T08:58:05,816 INFO [main] org.apache.hadoop.hive.metastore.HiveMetaStore - Options.maxWorkerThreads = 1000
2019-04-03T08:58:05,816 INFO [main] org.apache.hadoop.hive.metastore.HiveMetaStore - TCP keepalive = true
(编辑:网站开发网_安阳站长网)
【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!
|