Hadoop 如何在hive-site.xml中映射配置单元仓库路径?

Hadoop 如何在hive-site.xml中映射配置单元仓库路径?,hadoop,hive,Hadoop,Hive,我是ubuntu新手,我正在尝试在我的系统上安装Hive3.0.0。 我正在网上学习一个教程,我遇到了这个命令 hdfs dfs -mkdir -p /user/hive/warehouse hdfs dfs -mkdir /tmp 此命令用于存储元数据。但我在文件系统中找不到这些 所以我的问题是,这个命令是什么意思? 以及如何在hive site.xml上映射元数据? 以下是我的教程中的hive-site.xml <?xml version="1.0" encoding="UTF-8"

我是ubuntu新手,我正在尝试在我的系统上安装Hive3.0.0。 我正在网上学习一个教程,我遇到了这个命令

hdfs dfs -mkdir -p /user/hive/warehouse
hdfs dfs -mkdir /tmp
此命令用于存储元数据。但我在文件系统中找不到这些

所以我的问题是,这个命令是什么意思? 以及如何在hive site.xml上映射元数据?

以下是我的教程中的hive-site.xml

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml-stylesheet type="text/xsl" href="confguration.xsl"?><!--
Licensed to the Apache Software Foundation (ASF) under one or more
contri utor license agreements. See the NOTICE fle distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this fle to You under the Apache License, Version 2.0
(the "License"); you may not use this fle except in compliance with
the License. You may o tain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required y applicable law or agreed to in writing, software-->




<confguration>
<property>
<name>javax.jdo.option.ConnectionURL</name>
<value>jdbc:mysql://localhost/metastore?createDatabaseIfNotExist=true</value>
<description>
JDBC connect string for a JDBC metastore.
To use SSL to encrypt/authenticate the connection, provide database-specifc SSL fag in
the connection URL.
For example, jdbc:postgresql://myhost/d ?ssl=true for postgres database.
</description>
</property>
<property>
<name>javax.jdo.option.ConnectionDriverName</name>

<value>com.mysql.jdbc.Driver</value>
<description>Driver class name for a JDBC metastore</description>
</property>
<property>
<name>javax.jdo.option.ConnectionUserName</name>
<value>hiveuser</value>
<description>Username to use against metastore database</description>
</property>

<property>
<name>javax.jdo.option.ConnectionPassword</name>
<value>password@123</value>
<description>password to use against metastore database</description>
</property>
<property>
<name>datanucleus.autoCreateSchema</name>
<value>true</value>
</property>
<property>
<name>datanucleus.fxedDatastore</name>


<value>true</value>
</property>
<property>
<name>datanucleus.autoCreateTables</name>
<value>True</value>
</property>
</confguration>

javax.jdo.option.ConnectionURL
jdbc:mysql://localhost/metastore?createDatabaseIfNotExist=true
JDBC元存储的JDBC连接字符串。
要使用SSL加密/验证连接,请在中提供数据库特定的SSL fag
连接URL。
例如,jdbc:postgresql://myhost/d ?对于postgres数据库,ssl=true。
javax.jdo.option.ConnectionDriverName
com.mysql.jdbc.Driver
JDBC元存储的驱动程序类名
javax.jdo.option.ConnectionUserName
蜂巢用户
用于元存储数据库的用户名
javax.jdo.option.ConnectionPassword
password@123
针对metastore数据库使用的密码
datanucleus.autoCreateSchema
真的
datanucleus.fxedDatastore
真的
datanucleus.autoCreateTables
真的
**我正在使用mysql存储元数据。请解释必要的变更(如有)

提前感谢!!! **

此命令用于存储元数据

不完全是。这是HDFS上的配置单元仓库目录。这是原始数据存在的地方,而不是元数据——元数据完全在Mysql中

HDFS由Hive所需的Hadoop客户端库的core-site.xml配置,而不是Hive-site.xml文件

但我在文件系统中找不到这些

可能是因为这些是HDFS路径,而不是本地文件系统上的位置

这个命令是什么意思


要创建存储配置单元进程使用的数据所需的默认仓库和临时暂存目录

除了配置单元配置之外,hadoop配置(如hdfs site.xml、warn-site.xml等)中需要对mysql映射进行哪些更改?@cricket\u 007这些文件都不关心mysql,只有配置单元