hadoop - 在 hive 上初始化 Derby 时解析失败
问题描述
我已经配置了 hive-site.xml 文件,并使用
$HIVE_HOME/bin/schematool –initSchema –dbType derby
初始化Derby,报错如下:
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/local/hive/lib/log4j-slf4j-impl-2.10.0.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/local/hadoop/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]
解决方案
尝试输入每个命令而不是复制粘贴。奇怪但通过这样做解决了问题。
推荐阅读
- javascript - 使用 Javascript document.body.className 添加正文类而不是 document.body.setAttribute
- c - 如何构建用户友好的界面以允许检测无效输入?
- python-3.x - 如何将具有对象数据类型的时间纳秒列转换为日期时间?
- javascript - Javascript仅在循环中第一次工作
- javascript - 在用户键入时更改标签中单词的每个字母。我可以使用 JS 或 CSS 来实现吗?
- c# - Microsoft.Win32.TaskScheduler AllTasks 无法正常工作
- java - 使用 Firebase 在 Android Studio 中验证 OTP 时应用程序崩溃
- angular - Angular cloudinary 自动播放具有响应宽度/高度的视频
- c++ - CMake 链接器找不到不以“lib”开头的库
- html - 占 2 行的短文本