hive0.13.1 中的 hive-site.xml 路径 [英] hive-site.xml path in hive0.13.1

查看:420
本文介绍了hive0.13.1 中的 hive-site.xml 路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是新手.我想知道 hive-0.13.1 版本中的 hive-site.xmlhive-default.xml 文件位置.>

我已经从以下位置下载了 hive0.13.1-bin 版本.http://apache.mirrors.pair.com/hive/hive-0.13.1/

提取然后配置hive环境变量.
我能够运行命令(创建表、显示、加载数据、查询表..).

但是在conf(/hive/hive-0.13-1/conf)目录下,我没有看到hive-site.xmlhive-default.xml 文件.

这些文件在hive-0.13.1版本中的位置?

解决方案

按照步骤操作

1) 解压文件夹

2) 转到/apache-hive-0.13.1-bin/conf 并复制 hive-default.xml.template ,它看起来像 hive-default.xml (copy).template.

3) 将 hive-default.xml (copy).template 重命名为 hive-site.xml.

4) 将 hive-env.sh.template 的副本复制到 hive-env.sh.

加入 hive-env.sh

导出 HADOOP_HEAPSIZE=1024# 设置 HADOOP_HOME 指向特定的 hadoop 安装目录导出 HADOOP_HOME=/home/user17/BigData/hadoop#蜂巢导出 HIVE_HOME=/home/user17/BigData/hive# Hive 配置目录可以通过以下方式控制:导出 HIVE_CONF_DIR=$HIVE_HOME/conf

5) 在 .bashrc 文件中导出 hadoop 和 hive 路径

export HADOOP_HOME=/home/user17/BigData/hadoop导出路径=$PATH:$HADOOP_HOME/bin导出 HIVE_HOME=/home/user17/BigData/hive出口路径=$PATH:$HIVE_HOME/bin

开始你的hadoop

start-all.sh

享受你的hive.根据你的系统在export命令中给出hadoop和hive路径.如果不行请告诉我.

I'm a newbie. I would like to know the hive-site.xml and hive-default.xml files locations in hive-0.13.1 version.

I have downloaded hive0.13.1-bin version from the below location. http://apache.mirrors.pair.com/hive/hive-0.13.1/

Extracted and then configured hive environment variables.
I'm able to run the commands(create table, show, load data, query table..).

But in the conf(/hive/hive-0.13-1/conf) directory, I do not see hive-site.xml and hive-default.xml files.

Where these files are located in hive-0.13.1 version?

解决方案

follow the steps

1) Extract folder

2)go to /apache-hive-0.13.1-bin/conf and make a copy of hive-default.xml.template , it looks like hive-default.xml (copy).template.

3) Rename hive-default.xml (copy).template to hive-site.xml.

4) Make a copy of hive-env.sh.template to hive-env.sh.

add in hive-env.sh

export HADOOP_HEAPSIZE=1024
# Set HADOOP_HOME to point to a specific hadoop install directory
export HADOOP_HOME=/home/user17/BigData/hadoop

#hive 
export HIVE_HOME=/home/user17/BigData/hive
# Hive Configuration Directory can be controlled by:
export HIVE_CONF_DIR=$HIVE_HOME/conf

5) export hadoop and hive path in .bashrc file

export HADOOP_HOME=/home/user17/BigData/hadoop
export PATH=$PATH:$HADOOP_HOME/bin

export HIVE_HOME=/home/user17/BigData/hive
export PATH=$PATH:$HIVE_HOME/bin

start your hadoop by

start-all.sh

enjoy with your hive.Give the hadoop and hive path in export command according to your system.let me know if not work.

这篇关于hive0.13.1 中的 hive-site.xml 路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆