hive0.13.1中的hive-site.xml路径 [英] hive-site.xml path in hive0.13.1
问题描述
hive-site.xml
和 hive-default.xml
文件位置c> hive-0.13.1 版本。 我已经下载了 hive0.13.1-bin
版本从下面的位置。
http://apache.mirrors.pair.com/hive /hive-0.13.1/
提取并配置配置单元环境变量。
我可以运行命令(创建表,显示,加载数据,查询表)。
。
但是在 conf(/hive/hive-0.13-1/conf)
目录中,我没有看到 hive-site。 xml
和 hive-default.xml
文件。
这些文件位于 hive-0.13.1
版本中
<1>解压缩文件夹
/apache-hive-0.13.1-bin/conf并复制hive-default.xml.template,它看起来像hive-default.xml(复制).template。
$ b $ 3)将hive-default.xml(复制).template重命名为hive-site.xml。
$ b
4)复制hive-env.sh .template to hive-env.sh。
add in hive-env.sh
export HADOOP_HEAPSIZE = 1024
#将HADOOP_HOME设置为指向特定的hadoop安装目录
export HADOOP_HOME = / home / user17 / BigData / hadoop
#hive
export HIVE_HOME = / home / user17 / BigData / hive
#Hive配置目录可以通过以下方式控制:
export HIVE_CONF_DIR = $ HIVE_HOME / conf
<5>在.bashrc文件中导出hadoop和hive路径
export HADOOP_HOME = / home / us er17 / BigData / hadoop
export PATH = $ PATH:$ HADOOP_HOME / bin
$ b $ export HIVE_HOME = / home / user17 / BigData / hive $ b $ export PATH = $ PATH:$ HIVE_HOME / bin
通过
启动您的hadoop start-all.sh
享受您的蜂房。 hadoop和hive路径在出口命令根据您的system.let我知道如果不工作。
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屋!