warning: /var/cache/yum/x86_64/7/mysql80-community/packages/mysql-community-common-8.0.28-1.el7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID 3a79bd29: NOKEY Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
The GPG keys listed for the "MySQL 8.0 Community Server" repository are already installed but they are not correct for this package. Check that the correct key URLs are configured for this repository.
Failing package is: mysql-community-common-8.0.28-1.el7.x86_64 GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
具体原因不明确,直接用以下命令绕过GPG验证
1
yum install mysql-community-server --nogpgcheck
登录到MySQL
cat /var/log/mysqld.log
1 2 3 4 5 6 7 8 9 10 11 12
[root@master ~]# cat /var/log/mysqld.log 2022-04-25T07:22:42.969583Z 0 [System] [MY-013169] [Server] /usr/sbin/mysqld (mysqld 8.0.28) initializing of server in progress as process 52213 2022-04-25T07:22:42.987672Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. 2022-04-25T07:22:43.426894Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended. 2022-04-25T07:22:45.853037Z 6 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: Tu9&xtetlynf 2022-04-25T07:22:52.474308Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.28) starting as process 52262 2022-04-25T07:22:52.490859Z 1 [System] [MY-013576] [InnoDB] InnoDB initialization has started. 2022-04-25T07:22:52.673778Z 1 [System] [MY-013577] [InnoDB] InnoDB initialization has ended. 2022-04-25T07:22:53.295166Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed. 2022-04-25T07:22:53.295239Z 0 [System] [MY-013602] [Server] Channel mysql_main configured to support TLS. Encrypted connections are now supported for this channel. 2022-04-25T07:22:53.371308Z 0 [System] [MY-011323] [Server] X Plugin ready for connections. Bind-address: '::' port: 33060, socket: /var/run/mysqld/mysqlx.sock 2022-04-25T07:22:53.371379Z 0 [System] [MY-010931] [Server] /usr/sbin/mysqld: ready for connections. Version: '8.0.28' socket: '/var/lib/mysql/mysql.sock' port: 3306 MySQL Community Server - GPL.
mysql> set global validate_password.policy=0; ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.
hive>SELECT word, count(word) as wordcount >FROM(SELECT explode (split(text, ' ')) as word >FROM words) as tmp >GROUPBY word;
Query ID = root_20220425171959_28a278a7-511b-46c7-bcbd-babc03c6acce Total jobs =1 Launching Job 1outof1 Number of reduce tasks not specified. Estimated from input data size: 1 Inorderto change the average load for a reducer (in bytes): set hive.exec.reducers.bytes.per.reducer=<number> Inorderto limit the maximum number of reducers: set hive.exec.reducers.max=<number> Inordertoset a constant number of reducers: set mapreduce.job.reduces=<number> Starting Job = job_1650876267702_0001, Tracking URL = http://master:8088/proxy/application_1650876267702_0001/ Kill Command =/opt/hadoop-3.1.4/bin/mapred job -kill job_1650876267702_0001 Hadoop job information for Stage-1: number of mappers: 1; number of reducers: 1 2022-04-2517:20:22,861 Stage-1 map =0%, reduce =0% 2022-04-2517:20:39,686 Stage-1 map =100%, reduce =0%, Cumulative CPU 12.0 sec 2022-04-2517:20:51,175 Stage-1 map =100%, reduce =100%, Cumulative CPU 18.24 sec MapReduce Total cumulative CPU time: 18 seconds 240 msec Ended Job = job_1650876267702_0001 MapReduce Jobs Launched: Stage-Stage-1: Map: 1 Reduce: 1 Cumulative CPU: 18.24 sec HDFS Read: 9102 HDFS Write: 223 SUCCESS Total MapReduce CPU Time Spent: 18 seconds 240 msec
OK I 3 MapReduce 1 a 1 am 1 hadoop 1 learn 2 student 1 Time taken: 53.971 seconds, Fetched: 7row(s)