hive安装教程,
1.解压到目标目录中:tar -zxvf apache-hive-0.13.1-bin.tar.gz -C /opt/modules
2.将conf中的hive-env.sh.template改名为hive-env.sh
3.编辑hive-env.sh:vim hive-env.sh
设置目录环境变量:
4.创建目录并设置权限(在hadoop目录下)
$bin/hdfs dfs -mkdir /tmp
$bin/hdfs dfs -mkdir /user/hive/warehouse
设置执行权限:
$bin/hdfs dfs -chmod g+x /tmp
$bin/hdfs dfs -chmod g+x /user/hive/warehouse
5.执行hive(在hive目录下)
本站文章为和通数据库网友分享或者投稿,欢迎任何形式的转载,但请务必注明出处.
同时文章内容如有侵犯了您的权益,请联系QQ:970679559,我们会在尽快处理。