(1)把apache-hive-1.2.1-bin.tar.gz上传到linux的/opt/software目录下

    (2)解压apache-hive-1.2.1-bin.tar.gz到/opt/module/目录下面

    [atguigu@hadoop102 software]$ tar -zxvf apache-hive-1.2.1-bin.tar.gz -C /opt/module/

    (3)修改apache-hive-1.2.1-bin.tar.gz的名称为hive

    [atguigu@hadoop102 module]$ mv apache-hive-1.2.1-bin/ hive

    (4)修改/opt/module/hive/conf目录下的hive-env.sh.template名称为hive-env.sh

    [atguigu@hadoop102 conf]$ mv hive-env.sh.template hive-env.sh

    (5)配置hive-env.sh文件
    (a)配置HADOOP_HOME路径

    export HADOOP_HOME=/opt/module/hadoop-2.7.2

    1. b)配置HIVE_CONF_DIR路径

    export HIVE_CONF_DIR=/opt/module/hive/conf

    (6) 关闭元数据检查(企业开发中不需要关闭)

    [atguigu@hadoop102 conf]$ vim hive-site.xml

    增加如下配置:

    <property>
        <name>hive.metastore.schema.verification</name>
        <value>false</value>
    </property>