Sqoop with MSSQL – unrecognized argument schema

to create new topics or reply. | New User Registration

Tagged: , ,

This topic contains 1 reply, has 1 voice, and was last updated by  Fred LaCrosse 1 year, 6 months ago.

  • Creator
  • #42764

    Fred LaCrosse

    I’ve been able to get Scoop connected to my local SQL Server install to pull data into the Sandbox when I’m using the default SQL schema “dbo”. However I cannot figure out a way to point to non-default schemas. I see in the Sqoop documentation that version 1.4.4 is supposed to be able to connect to MSSQL non-default schemas using the –schema argument but when I try and add that I get the following error: “unrecognized argument schema”. Anyone have any thoughts? I messed around with it all weekend with no luck.

Viewing 1 replies (of 1 total)

You must be to reply to this topic. | Create Account

  • Author
  • #46313

    Fred LaCrosse

    Figured this out. The MS SQL connector extra arguments need to occur at the end of Sqoop command and after an empty —
    So where I was doing
    sqoop import –connect <connectionString> –table <tableName> –schema <schemaName>
    It needed to be
    sqoop import –connect <connectionString> –table <tableName> — –schema <schemaName>

Viewing 1 replies (of 1 total)
Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.