代码之家  ›  专栏  ›  技术社区  ›  Pedro Alves

Sqoop-syntaxterror-Boundary查询-“SQL语法错误”

  •  -1
  • Pedro Alves  · 技术社区  · 6 年前

    sqoop import --connect jdbc:mysql://localhost:3306/retail_db --username retail_dba --password cloudera --table order_items --boundary-query "SELECT 1,10 FROM order_items WHERE $CONDITIONS" --split-by order_id --hive-import --hive-home /user/cloudera/hive --hive-table default.order_items2 --create-hive-table
    

    Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
    

    谢谢

    1 回复  |  直到 6 年前
        1
  •  1
  •   Harika Krishna    6 年前

    无需在where子句中指定$CONDITIONS

    推荐文章