中文解释argument -t/--train: Boolean value expected.
时间: 2024-04-01 22:33:49 浏览: 89
这个错误提示信息表示你为"-t"或"--train"选项提供的参数不是一个有效的布尔值。布尔值只能是"True"或者"False"。请确保你为"-t"或"--train"选项提供了一个有效的布尔值。例如,如果你想把值设为"True",你应该使用"-t True"或"--train True"。如果你想把值设为"False",你应该使用"-t False"或"--train False"。
相关问题
delete-target-dir --num-mappers 1 --hive-import --hive-database news --hive-table news 23/06/08 11:25:52 INFO sqoop.Sqoop: Running Sqoop version: 1.4.7 23/06/08 11:25:53 WARN tool.BaseSqoopTool: Setting your password on the command-line is insecure. Consider using -P instead. 23/06/08 11:25:53 ERROR tool.BaseSqoopTool: Error parsing arguments for import: 23/06/08 11:25:53 ERROR tool.BaseSqoopTool: Unrecognized argument: –table 23/06/08 11:25:53 ERROR tool.BaseSqoopTool: Unrecognized argument: news 23/06/08 11:25:53 ERROR tool.BaseSqoopTool: Unrecognized argument: --fields-terminated-by 23/06/08 11:25:53 ERROR tool.BaseSqoopTool: Unrecognized argument: ; 23/06/08 11:25:53 ERROR tool.BaseSqoopTool: Unrecognized argument: --delete-target-dir 23/06/08 11:25:53 ERROR tool.BaseSqoopTool: Unrecognized argument: --num-mappers 23/06/08 11:25:53 ERROR tool.BaseSqoopTool: Unrecognized argument: 1 23/06/08 11:25:53 ERROR tool.BaseSqoopTool: Unrecognized argument: --hive-import 23/06/08 11:25:53 ERROR tool.BaseSqoopTool: Unrecognized argument: --hive-database 23/06/08 11:25:53 ERROR tool.BaseSqoopTool: Unrecognized argument: news 23/06/08 11:25:53 ERROR tool.BaseSqoopTool: Unrecognized argument: --hive-table 23/06/08 11:25:53 ERROR tool.BaseSqoopTool: Unrecognized argument: news
这个错误提示显示Sqoop无法解析您提供的导入参数。具体来说,Sqoop无法识别“-table”,“-fields-terminated-by”,“-delete-target-dir”,“-num-mappers”,“-hive-import”,“-hive-database”和“-hive-table”这些参数。
请检查您的命令语法是否正确,并确保使用正确的参数名称和格式。根据错误提示,您可能需要:
1. 将“-”字符改为正确的“-”字符,因为错误提示中显示的字符可能是不正确的。
2. 在每个参数名称前添加两个“-”字符,以便Sqoop可以正确识别参数。
3. 确保使用正确的参数名称和格式。例如,“-table”应该是“--table”,“-fields-terminated-by”应该是“--fields-terminated-by”。
例如,如果您要导入一个名为“news”的表格,并将字段分隔符设置为分号“;”,可以使用以下命令:
```
sqoop import --delete-target-dir --num-mappers 1 --hive-import --hive-database news --hive-table news --fields-terminated-by ';'
```
请注意,这只是一个示例命令,具体的命令语法和参数可能因您的具体情况而有所不同。如果您不确定如何操作,请咨询有经验的管理员或参考相关文档。
Please set $HCAT_HOME to the root of your HCatalog installation. Warning: /home/yyl/soft/sqoop/../accumulo does not exist! Accumulo imports will fail. Please set $ACCUMULO_HOME to the root of your Accumulo installation. Warning: /home/yyl/soft/zookeeper does not exist! Accumulo imports will fail. Please set $ZOOKEEPER_HOME to the root of your Zookeeper installation. 23/06/12 11:39:43 INFO sqoop.Sqoop: Running Sqoop version: 1.4.7 23/06/12 11:39:43 ERROR tool.BaseSqoopTool: Error parsing arguments for import: 23/06/12 11:39:43 ERROR tool.BaseSqoopTool: Unrecognized argument: -p 23/06/12 11:39:43 ERROR tool.BaseSqoopTool: Unrecognized argument: --table 23/06/12 11:39:43 ERROR tool.BaseSqoopTool: Unrecognized argument: EMP 23/06/12 11:39:43 ERROR tool.BaseSqoopTool: Unrecognized argument: -target-dir 23/06/12 11:39:43 ERROR tool.BaseSqoopTool: Unrecognized argument: /user/yyl/zhangsan 23/06/12 11:39:43 ERROR tool.BaseSqoopTool: Unrecognized argument: -m 23/06/12 11:39:43 ERROR tool.BaseSqoopTool: Unrecognized argument: 1
这是一段 Sqoop 的错误信息,提示你在执行 Sqoop 导入数据的过程中出现了问题。具体来说,可能有以下几个问题:
1. 需要设置 HCatalog、Accumulo 和 Zookeeper 的环境变量,否则会导致一些功能无法正常使用。
2. Sqoop 命令行参数有误,包括了一些未识别的参数,例如 -p、--table、-target-dir 和 -m。你需要检查这些参数是否正确,并按照正确的格式进行设置。
建议你仔细阅读错误信息,并根据错误提示逐一排查问题,以便解决 Sqoop 导入数据的问题。
阅读全文
相关推荐















