sqoop - 为什么我收到已保存的 Sqoop 作业的 Table Not Found 错误?
问题描述
我正在使用 AWS EMR。当我执行保存的 sqoop 作业时,我收到以下错误:
Warning: /usr/lib/sqoop/../accumulo does not exist! Accumulo imports will fail.
Please set $ACCUMULO_HOME to the root of your Accumulo installation.
19/03/12 22:36:21 INFO sqoop.Sqoop: Running Sqoop version: 1.4.7
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/usr/lib/hadoop/lib/slf4j-log4j12-
1.7.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/usr/lib/hive/lib/log4j-slf4j-impl-
2.6.2.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.slf4j.impl.Log4jLoggerFactory]
19/03/12 22:36:21 DEBUG tool.JobTool: Enabled debug logging.
19/03/12 22:36:22 DEBUG hsqldb.HsqldbJobStorage: Checking for table:
SQOOP_ROOT
19/03/12 22:36:22 DEBUG hsqldb.HsqldbJobStorage: Found table:
SQOOP_ROOT
19/03/12 22:36:22 DEBUG hsqldb.HsqldbJobStorage: Looking up property
sqoop.hsqldb.job.storage.version for version null
19/03/12 22:36:22 DEBUG hsqldb.HsqldbJobStorage: => 0
19/03/12 22:36:22 DEBUG hsqldb.HsqldbJobStorage: Looking up property
sqoop.hsqldb.job.info.table for version 0
19/03/12 22:36:22 DEBUG hsqldb.HsqldbJobStorage: => SQOOP_SESSIONS
19/03/12 22:36:22 DEBUG hsqldb.HsqldbJobStorage: Checking for table: SQOOP_SESSIONS
19/03/12 22:36:22 DEBUG hsqldb.HsqldbJobStorage: Found table:
SQOOP_SESSIONS
19/03/12 22:36:22 DEBUG hsqldb.HsqldbJobStorage: Restoring job: myJob0
19/03/12 22:36:22 DEBUG hsqldb.HsqldbJobStorage: Job: myJob0; Getting
properties with class schema
19/03/12 22:36:22 DEBUG hsqldb.HsqldbJobStorage: Job: myJob0; Getting
properties with class SqoopOptions
19/03/12 22:36:22 DEBUG hsqldb.HsqldbJobStorage: Job: myJob0; Getting
properties with class config
19/03/12 22:36:22 DEBUG hsqldb.HsqldbJobStorage: System property set:
0
19/03/12 22:36:22 DEBUG hsqldb.HsqldbJobStorage: Stored property set:
0
19/03/12 22:36:22 DEBUG util.SqoopJsonUtil: Passed mapJsonStr ::null
to parse
--table or --query is required for import. (Or use sqoop import-all-
tables.)
Try --help for usage instructions.
19/03/12 22:36:22 DEBUG hsqldb.HsqldbJobStorage: Flushing current
transaction
19/03/12 22:36:22 DEBUG hsqldb.HsqldbJobStorage: Closing connection
注意:当我在不创建 sqoop 作业的情况下执行此命令时,它可以正常工作。因此,我不可能错过表名或任何语法错误。
当我检查保存的 sqoop 作业时,我发现db.table name
Sqoop Metastore 中缺少该作业。
请向我建议如何解决此问题。
提前致谢。
解决方案
推荐阅读
- r - 我想根据另一列的特征将同一列的几行放在一行中。关于如何在 R 中做到这一点的任何建议?
- java - 使用反斜杠和其他特殊字符解析 json 响应
- java - 如何将另一个元素作为列表插入 TreeMap 值
- php - 计算日期间隔中的分钟 AM 分钟 PHP 中的 PM 分钟
- python - 有没有办法对角切片 x,y 数组?
- javascript - 在反应中将数据从一页传递到另一页
- flutter - 我无法将 function_tree 导入到我的 pubspec.yaml(flutter)
- javascript - 这个数组映射箭头函数有更短的版本吗?
- .net - Visual Studio 2013 发布先决条件对话框缺少 .NET Framework 4.8
- matplotlib - 是否允许使用 matplotlib 在空白图形上绘制 matplotlib.patches.Rectangle?