Problem parsing dependency 21 of dbus.cpp.bin:arm64=5,0,1-4
时间: 2024-04-20 13:22:57 浏览: 18
这个错误信息表明在解析 `dbus.cpp.bin:arm64` 的依赖项时出现问题。依赖项的语法通常遵循 `<package>:<architecture>=<version>` 的格式。
根据错误信息,它指出 `dbus.cpp.bin` 在 `arm64` 架构上的依赖版本范围应为 `5.0.1` 到 `4`。然而,这个范围是不合法的,因为版本范围应该是从低版本到高版本。
可能的解决方案是检查相关的依赖项规范,确保版本范围正确并按照从低到高的顺序排列。如果您无法解决问题,请提供更多的上下文和相关信息,以便我能够更好地帮助您。
相关问题
[root@server1 sqoop]# bin/sqoop import \ > --connect jdbc:mysql://192.168.88.132:3306/meta_erp_data \ > --username root \ > --password 666666 \ > --table dim_car_time \ > --hive-import \ > --hive-database ods \ > --hive-table ods_dim_car_time_s99 \ > --query "select id,mdate from dim_car_time where \$CONDITIONS" and id=1 \ > --hive-overwrite \ > --fields-terminated-by "\t" \ > -m 1 2023-05-25 18:44:48,085 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6-cdh5.14.2 2023-05-25 18:44:48,286 WARN tool.BaseSqoopTool: Setting your password on the command-line is insecure. Consider using -P instead. 2023-05-25 18:44:48,287 ERROR tool.BaseSqoopTool: Error parsing arguments for import: 2023-05-25 18:44:48,287 ERROR tool.BaseSqoopTool: Unrecognized argument: and 2023-05-25 18:44:48,287 ERROR tool.BaseSqoopTool: Unrecognized argument: id=1 2023-05-25 18:44:48,287 ERROR tool.BaseSqoopTool: Unrecognized argument: --hive-overwrite 2023-05-25 18:44:48,287 ERROR tool.BaseSqoopTool: Unrecognized argument: --fields-terminated-by 2023-05-25 18:44:48,287 ERROR tool.BaseSqoopTool: Unrecognized argument: \t 2023-05-25 18:44:48,287 ERROR tool.BaseSqoopTool: Unrecognized argument: -m 2023-05-25 18:44:48,287 ERROR tool.BaseSqoopTool: Unrecognized argument: 1
你的 Sqoop 命令中有一些语法错误,导致无法正确解析参数。具体来说,你在 --query 参数中使用了 and 和 id=1,这两个是不合法的参数。同时,你也没有正确设置 --fields-terminated-by 参数,应该使用 \t 而非 "\t"。最后,-m 参数后应该跟一个数字,表示并发导入的数量。以下是修改后的命令:
```
bin/sqoop import \
--connect jdbc:mysql://192.168.88.132:3306/meta_erp_data \
--username root \
--password 666666 \
--table dim_car_time \
--hive-import \
--hive-database ods \
--hive-table ods_dim_car_time_s99 \
--query "select id,mdate from dim_car_time where \$CONDITIONS and id=1" \
--hive-overwrite \
--fields-terminated-by '\t' \
-m 1
```
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 ';'
```
请注意,这只是一个示例命令,具体的命令语法和参数可能因您的具体情况而有所不同。如果您不确定如何操作,请咨询有经验的管理员或参考相关文档。