我已经在Hortonworks的HDP Sandbox映像中安装了Apache Kylin。之后,我将Apache Kylin连接到我们的Microsoft SQL数据仓库,并且当我尝试构建多维数据集时,该过程失败了。
19/06/25 15:35:54 INFO sqoop.Sqoop: Running Sqoop version: 1.4.7.3.0.1.0-187
19/06/25 15:35:54 WARN tool.BaseSqoopTool: Setting your password on the command-line is insecure. Consider using -P instead.
19/06/25 15:35:54 WARN sqoop.ConnFactory: Parameter --driver is set to an explicit driver however appropriate connection manager is not being set (via --connection-manager). Sqoop is going to fall back to org.apache.sqoop.manager.GenericJdbcManager. Please specify explicitly which connection manager should be used next time.
19/06/25 15:35:54 INFO manager.SqlManager: Using default fetchSize of 1000
19/06/25 15:35:54 INFO tool.CodeGenTool: Beginning code generation
19/06/25 15:35:55 INFO manager.SqlManager: Executing SQL statement: SELECT `V_FACTTRANSACTION_CUBE`.`CUSTOMERFK` as `V_FACTTRANSACTION_CUBE_CUSTOMERFK`
...
19/06/25 15:35:55 ERROR manager.SqlManager: Error executing statement: com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near '`'.
com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near '`'.
似乎Sqoop通过使用“`”而不是常规引号错误地生成了查询。有什么方法可以配置Sqoop以使用正确的语法?
答案 0 :(得分:0)
使用Sqoop 2并使所有SQL查询变为大写。这是Kylin中的一个已知问题。