簡體   English   中英

hive0.13.1中的hive-site.xml路徑

[英]hive-site.xml path in hive0.13.1

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

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

提取並配置hive環境變量。
我能夠運行命令(create table, show, load data, query table..)

但是在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中添加

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路徑

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

start-all.sh

與您的蜂巢一起享受。根據您的系統,在導出命令中給出hadoop和蜂巢路徑。我知道如果不工作。

您在conf目錄中找不到hive-site.xml文件。 你應該成功。 hive-site.xml看起來像這樣:

<?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中搜索有關hive元數據的一些概念。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM