我正尝试使用sqoop中的--query
选项从SQL Server导入数据。我关心的是,我们如何声明在SQL Server中使用--query使用哪个模式。SQOOP - 在SQL Server中使用SCHEMA查询
我的脚本:
sqoop \
--options-file sqoop/aw_mssql.cfg \
--query "select BusinessEntityId, LoginID, cast(OrganizationNode as string) from Employee where \$CONDITIONS" \
--hive-table employees \
--hive-database mssql \
-- --schema=HumanResources
仍然会产生一个错误
Invalid object name 'Employee'
也试过
--connect "jdbc:sqlserver://192.168.1.17;database=AdventureWorks;schema=HumanResources"
但也失败了。
嗨,我的关注是源表EMPLOYEE是在架构HumanResources下的AdventureWorks数据库。我如何声明脚本使用HumanResources模式作为源。感谢 – askdk
然后在--query参数尝试使用'HumanResources.Employee' – Souvik
已经尝试过但失败。 – askdk