当前在线人工客服
天达云-技术
QQ:1324027256
天达云-技术
QQ:1902643386
天达云-售前
QQ:1650874901
天达云-售前
QQ:2207995833
天达云-合作
QQ:1984186903
天达云微信小程序
400-837-6568

hive 安装
更新:HHH   时间:2023-1-7


继续上面的文章,安装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}/<username> 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

返回大数据教程...