转载自:https://www.cnblogs.com/qingyunzong/p/8708057.html
Hive的下载
下载地址:http://mirrors.hust.edu.cn/apache/
选择合适的Hive版本进行下载,进到stable-2文件夹可以看到稳定的2.x的版本是2.3.3
安装
hadoop安装
相关说明链接如下:https://blog.csdn.net/qq_36349200/article/details/79577697
官网下载hadoop链接:https://mirrors.tuna.tsinghua.edu.cn/apache/hadoop/common/stable/
下载完毕,解压如下
配置环境变量, 并配置bin目录。
打开cmd,运行hadooop,发现报错如下:
找到hadoop-env.cmd文件,修改JAVA_HOME目录。
修改后如下,由于Program File 文件之间有空格子,所以用PROGRA~1代替。
set JAVA_HOME=D:\PROGRA~1\Java\jdk1.8.0_161
链接地址:https://blog.csdn.net/qq_24125575/article/details/76186309
重新运行hadoop verion,运行成功。
MySql安装
教程地址:https://www.cnblogs.com/SamWeb/p/7922490.html
卸载服务:https://www.cnblogs.com/xwgli/p/6503184.html
下载地址:https://dev.mysql.com/downloads/file/?id=479669
配置文件myini介绍:https://www.cnblogs.com/cheng2015/p/7685017.html
主要需要命令:
需要配置myini文件,具体步骤如上链接。
安装mysql: mysql install
初始化mysql: mysqld --initialize --console 此时会生成个root密码,需要记住。
启动mysql: net start mysql
停止mysql: net stop mysql
安装mysqld: mysqld install
登陆:mysql -u root -p
登陆后报错: You must reset your password using ALTER USER statement before executing this statement.
解决:alter user user() identified by "123";
Hive安装
下载地址:http://archive.apache.org/dist/hive/stable-2/
解压后,配置环境变量,同上,此处不一一赘述。安装后如下:
HIVE_HOME为D:\apache-hive-2.3.3-bin\apache-hive-2.3.3-bin
Path添加%HIVE_HOME%\bin
因为要使用hive连接mysql。所以需要下载:
mysql-connector-java-5.1.45
https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.45.zip
将解压出来的jar放入hive 的lib中。
然后配置如下:
https://blog.csdn.net/yannqi/article/details/81476079