hive 安装
继续上面的文章,安装hive
一、
1、解压 tar -zvxf apache-hive-1.2.1-bin.tar.gz
2、添加环境变量
3、修改 hive-site.xml
hive.exec.scratchdir/tmp/hiveHDFS 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}/ is created, with ${hive.scratch.dir.permission}.hive.exec.local.scratchdir/usr/apache-hive-1.2.2-bin/iotmpLocal scratch space for Hive jobshive.downloaded.resources.dir/usr/apache-hive-1.2.2-bin/iotmpTemporary local directory for added resources in the remote file system.
javax.jdo.option.ConnectionDriverNamecom.mysql.jdbc.DriverDriver class name for a JDBC metastore
hive.conf.hidden.listjavax.jdo.option.ConnectionPassword,hive.server2.keystore.passwordComma separated list of configuration options which should not be read by normal user like passwordsjavax.jdo.option.ConnectionUserNamehiveUsername to use against metastore database
4、增加用户验证
5、启动服务
nohup ./hive --service metastore 2>&1 >> /usr/hive/metastore.log
nohup ./hive --service hiveserver2 2>&1 >> /usr/hive/metastore.log
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
暂时没有评论,来抢沙发吧~