Hive 安装配置单元类路径包含多个SLF4J绑定

Hive 安装配置单元类路径包含多个SLF4J绑定,hive,Hive,我正试图在Ubuntu20.04上安装hive,但在启动$hive_HOME/bin/schematool–initSchema–dbtypederby时,会出现以下错误 SLF4J: Found binding in [jar:file:/home/hadoop/apache-hive-3.1.2-bin/lib/log4j-slf4j-impl-2.10.0.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding

我正试图在Ubuntu20.04上安装hive,但在启动$hive_HOME/bin/schematool–initSchema–dbtypederby时,会出现以下错误

SLF4J: Found binding in [jar:file:/home/hadoop/apache-hive-3.1.2-bin/lib/log4j-slf4j-impl-2.10.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.apache.logging.slf4j.Log4jLoggerFactory]
HiveSchemaTool:Parsing failed.  Reason: Missing required option: [-help print this message, -alterCatalog Alter a catalog, requires --catalogLocation and/or --catalogDescription parameter as well, -initSchemaTo Schema initialization to a version, -upgradeSchemaFrom Schema upgrade from a version, -moveDatabase Move a database between catalogs.  Argument is the database name. Requires --fromCatalog and --toCatalog parameters as well, -moveTable Move a table to a different database.  Argument is the table name. Requires --fromCatalog, --toCatalog, --fromDatabase, and --toDatabase  parameters as well., -initSchema Schema initialization, -createCatalog Create a catalog, requires --catalogLocation parameter as well, -upgradeSchema Schema upgrade, -info Show config and schema details, -validate Validate the database]
usage: schemaTool
 -alterCatalog <arg>                Alter a catalog, requires
                                    --catalogLocation and/or
                                    --catalogDescription parameter as well
 -catalogDescription <arg>          Description of new catalog
 -catalogLocation <arg>             Location of new catalog, required when
                                    adding a catalog
 -createCatalog <arg>               Create a catalog, requires
                                    --catalogLocation parameter as well
 -dbOpts <databaseOpts>             Backend DB specific options
 -dbType <databaseType>             Metastore database type
 -driver <driver>                   driver name for connection
 -dryRun                            list SQL scripts (no execute)
 -fromCatalog <arg>                 Catalog a moving database or table is
                                    coming from.  This is required if you
                                    are moving a database or table.
 -fromDatabase <arg>                Database a moving table is coming
                                    from.  This is required if you are
     
SLF4J:在[jar:file:/home/hadoop/apache-hive-3.1.2-bin/lib/log4j-SLF4J-impl-2.10.0.jar!/org/SLF4J/impl/StaticLoggerBinder.class]中找到绑定
SLF4J:在[jar:file:/usr/local/hadoop/share/hadoop/common/lib/SLF4J-log4j12-1.7.25.jar!/org/SLF4J/impl/StaticLoggerBinder.class]中找到绑定
SLF4J:参见http://www.slf4j.org/codes.html#multiple_bindings 我需要一个解释。
SLF4J:实际绑定的类型为[org.apache.logging.SLF4J.Log4jLoggerFactory]
HiveSchemaTool:分析失败。原因:缺少必需的选项:[-帮助打印此消息,-alterCatalog Alter a catalog,requires--catalogLocation和/或--catalogDescription参数,-initSchemaTo架构初始化为版本,-upgradeSchemaFrom架构从版本升级,-moveDatabase在目录之间移动数据库。参数是数据库名称。requires--fromCatalog和--toCatalog参数,-moveTable将表移动到其他数据库。参数是表名。需要--fromCatalog,-toCatalog,-fromDatabase和--toDatabase参数。,-initSchema架构初始化,-createCatalog创建目录,还需要--catalogLocation参数,-upgradeSchema架构升级,-info Show config和schema详细信息,-验证数据库]
用法:schemaTool
-更改目录更改目录,需要
--目录位置和/或
--catalogDescription参数也是如此
-catalogDescription新目录的说明
-目录位置新目录的位置,需要时
添加目录
-createCatalog创建一个目录,需要
--catalogLocation参数也是如此
-dbOpts后端数据库特定选项
-dbType元存储数据库类型
-连接的驱动程序名称
-干运行列表SQL脚本(无执行)
-fromCatalog正在移动数据库或表
来自。如果您需要,这是必需的
正在移动数据库或表。
-来自数据库的移动表即将出现
来自。如果您是

有什么想法吗?

我只是颠倒了参数,它就起作用了
schematool-dbType derby-initSchema

这是我的hive-site.xml配置jdbc:derby:;databaseName=metastore_db;create=true jdbc连接字符串,用于jdbc元存储。要使用SSL加密/验证连接,请在>中提供特定于数据库的SSL标志,例如jdbc:postgresql://myhost/db?ssl=true 博士后database.hive.metastore.dbaccess.ssl.properties谢谢!这对我也有用!