您的位置 首页 java

Hive安装配置

镜像下载、 域名解析 、时间同步请点击

前提条件:

1、 安装好hadoop2.7.3伪分布式环境( Linux 环境);

2、安装好MySQL5.7(推荐使用) (Windows环境) ,允许mysql远程连接

3、并新建一个名为 hive 的数据库

安装步骤:

1、官网下载hive安装文件,下载地址:mirrors.aliyun.com/ apache /hive/

 hadoop2.x需要下载hive-2.x.x,下载版本:apache-hive-2.3.6-bin.tar.gz  

2、将hive安装文件上传到Linux系统中~/soft目录下,解压:

tar -zxvf apache-hive-2.3.6-bin.tar.gz

创建软连接:ln -s apache-hive-2.3.6-bin hive

配置环境变量:vi ~/.bashrc

使配置生效:

配置hive-site.xml

注意:

 1.  javax .jdo.option.ConnectionURL属性值的192.168.1.11为Windows的IP地址,请注意修改!

2. javax.jdo.option.ConnectionUserName值的 root 为数据库的用户名,注意修改!

3. javax.jdo.option.ConnectionPassword的值数据库的密码,注意修改!  

将MySQL驱动文件拷贝到hive安装目录的lib下

下载MySQL驱动文件:

将驱动文件上传到Linux,hive/lib目录下

初始化MySQL:schematool -dbType mysql -initSchema

看到”schemaTool completed”为正确完成初始化:

在启动hive之前,先启动 hadoop :start-all.sh

启动hive:hive

本文转自:

文章来源:智云一二三科技

文章标题:Hive安装配置

文章地址:https://www.zhihuclub.com/199527.shtml

关于作者: 智云科技

热门文章

评论已关闭

4条评论

  1. Proper calcium absorption also depends on zinc, and a deficiency prevents full absorption of calcium A, B, C, D, F, M, J, I Scale bars represent 25 Ојm in A, B, C, D, F, M, 35 Ојm in J, and 200 Ојm in I

  2. However, due to small number of RCTs, included in this meta analysis, they suggested further investigation should be done on the basis of high quality RCTs of longer duration It s important to follow up with semen analyses and doctor office visits to evaluate the effectiveness of the medication

  3. Early results from the study showed that extended therapy with Femara reduced the risk of cancer recurrence, and women in the placebo group were offered Femara

网站地图