hive 安装

来源:互联网 发布:国外无限制视频软件 编辑:程序博客网 时间:2024/06/05 05:28

继续上面的文章,安装hive

一、

1、解压 tar -zvxf apache-hive-1.2.1-bin.tar.gz

2、添加环境变量

3、修改 hive-site.xml

<property>
    <name>hive.exec.scratchdir</name>
    <value>/tmp/hive</value>
    <description>HDFS root scratch dir for Hive jobs which gets created with write all (733) permission. For each connecting user, an HDFS scratch dir: ${hive.exec.scratchdir}/&lt;username&gt; is created, with ${hive.scratch.dir.permission}.</description>
  </property>
  <property>
    <name>hive.exec.local.scratchdir</name>
    <value>/usr/apache-hive-1.2.2-bin/iotmp</value>
    <description>Local scratch space for Hive jobs</description>
  </property>
  <property>
    <name>hive.downloaded.resources.dir</name>
    <value>/usr/apache-hive-1.2.2-bin/iotmp</value>
    <description>Temporary local directory for added resources in the remote file system.</description>
  </property>

<property>
    <name>javax.jdo.option.ConnectionDriverName</name>
    <value>com.mysql.jdbc.Driver</value>
    <description>Driver class name for a JDBC metastore</description>
  </property>

<property>

 <property>
    <name>hive.conf.hidden.list</name>
    <value>javax.jdo.option.ConnectionPassword,hive.server2.keystore.password</value>
    <description>Comma separated list of configuration options which should not be read by normal user like passwords</description>
  </property>
    <name>javax.jdo.option.ConnectionUserName</name>
    <value>hive</value>
    <description>Username to use against metastore database</description>
  </property>


4、增加用户验证

5、启动服务

nohup ./hive --service metastore 2>&1 >> /usr/hive/metastore.log

nohup ./hive --service hiveserver2 2>&1 >> /usr/hive/metastore.log


原创粉丝点击