首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >hive0.13.1中的hive-site.xml路径

hive0.13.1中的hive-site.xml路径
EN

Stack Overflow用户
提问于 2014-12-02 07:55:19
回答 2查看 26.1K关注 0票数 7

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

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

提取并配置配置单元环境变量。

我可以运行命令(create table, show, load data, query table..)

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

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

EN

回答 2

Stack Overflow用户

回答已采纳

发布于 2014-12-02 12:16:44

请按照以下步骤操作

1)解压缩文件夹

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

3)将hive-default.xml (复制).template重命名为hive-site.xml。

4)将hive-env.sh.template复制到hive-env.sh。

添加hive-env.sh

代码语言:javascript
复制
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)导出.bashrc文件中的hadoop和hive路径

代码语言:javascript
复制
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

通过以下方式启动hadoop

代码语言:javascript
复制
start-all.sh

根据您的system.let me know if not work,在导出命令中使用您的hive.Give享受hadoop和hive路径。

票数 11
EN

Stack Overflow用户

发布于 2014-12-02 12:39:49

在conf目录中找不到hive-site.xml文件。你应该成功的。和hive-site.xml看起来像这样:

代码语言:javascript
复制
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!--
   Licensed to the Apache Software Foundation (ASF) under one or more
   contributor license agreements.  See the NOTICE file distributed with
   this work for additional information regarding copyright ownership.
   The ASF licenses this file to You under the Apache License, Version 2.0
   (the "License"); you may not use this file except in compliance with
   the License.  You may obtain a copy of the License at

       http://www.apache.org/licenses/LICENSE-2.0

   Unless required by applicable law or agreed to in writing, software
   distributed under the License is distributed on an "AS IS" BASIS,
   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   See the License for the specific language governing permissions and
   limitations under the License.
-->

<configuration>

    <property>
        <name>javax.jdo.option.ConnectionURL</name>
        <value>jdbc:mysql://localhost/metastore?createDatabaseIfNotExist=true</value>
        <description>the URL of the MySQL database</description>
    </property>

    <property>
        <name>javax.jdo.option.ConnectionDriverName</name>
        <value>com.mysql.jdbc.Driver</value>
    </property>

    <property>
        <name>javax.jdo.option.ConnectionUserName</name>
        <value>root</value>
    </property>

    <property>
        <name>javax.jdo.option.ConnectionPassword</name>
        <value>root</value>
    </property>
<property>
  <name>hive.hwi.listen.host</name>
  <value>0.0.0.0</value>
</property>
<property>
  <name>hive.hwi.listen.port</name>
  <value>9999</value>
</property>
<property>
  <name>hive.hwi.war.file</name>
  <value>lib/hive-hwi-0.12.0.war</value>
</property>
<!--
<property>
  <name>hive.metastore.local</name>
  <value>true</value>
</property>
-->
</configuration>

并在mysql中搜索有关蜂窝元数据的一些概念。

票数 8
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/27239568

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档