我正在尝试将mysql导入到配置单元中,但以下查询没有发生这种情况
:
sqoop import --connect jdbc:mysql://localhost/cars --username root --query 'Select carnum,carname from carsinfo where $CONDITIONS' --hive-import --hive-table exams.examresults --target-dir /hive_table1_data --m 1
汇入我的讯息时出现错误
我真的不明白我在做什么错。我花了几个小时。但是似乎没有任何作用。
谢谢 !!
最佳答案
您好像忘记了指定端口。
试试这个:'jdbc:mysql:// localhost:3306 / cars'当然,这假设您正在默认端口上运行mysql。
关于hadoop - 无法使用Sqoop导入配置单元,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/38000433/