The Hortonworks Community Connection is now live. A completely rebuilt Q&A forum, Knowledge Base, Code Hub and more, backed by the experts in the industry.

You will be redirected here in 10 seconds. If your are not redirected, click here to visit the new site.

The legacy Hortonworks Forum is now closed. You can view a read-only version of the former site by clicking here. The site will be taken offline on January 31,2016

Sqoop Forum

Sqoop Issue: Import table from MSSQL (using windows authentication) to Hive

  • #30007
    Chiew Yea Kuek
    Participant

    Hi All,

    I need helps from you guys as currently I am having issue in importing the table from MSSQL into Hive using Sqoop. The sqoop command I used was “sqoop import –connect ‘jdbc:sqlserver://172.16.105.12\MSSQL2008R2;database=TestDW;integratedSecurity=true;’ –table customer -m 1 –hive-import”. However, I got the below exception:

    WARNING: Failed to load the sqljdbc_auth.dll cause : no sqljdbc_auth in java.library.path
    13/07/22 17:49:21 ERROR manager.SqlManager: Error executing statement: com.microsoft.sqlserver.jdbc.SQLServerException: This driver is not configured for integrated authentication. ClientConnectionId:fab8ea67-c7e8-4601-9400-eedd21ac573e
    com.microsoft.sqlserver.jdbc.SQLServerException: This driver is not configured for integrated authentication. ClientConnectionId:fab8ea67-c7e8-4601-9400-eedd21ac573e
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.terminate(SQLServerConnection.java:1667)
    at com.microsoft.sqlserver.jdbc.AuthenticationJNI.(AuthenticationJNI.java:60)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.logon(SQLServerConnection.java:2229)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.access$000(SQLServerConnection.java:41)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection$LogonCommand.doExecute(SQLServerConnection.java:2220)
    at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:5696)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:1715)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:1326)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:991)
    at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:827)
    at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:1012)

    I am having issue when using windows authentication, do anyone of you have any clue on the above exception? Where can i set the java.library.path? For your information, I had set the path in Unix environment to include sqljdbc_auth.dll and I had copied sqljdbc_auth.dll to java jre bin folder, but it still hit the same error.

    Appreciate your help. Thanks.

    Regards,
    CYea

  • Author
    Replies
  • #33706
    Yi Zhang
    Moderator

    Hi Chiew,

    Can you run ‘sqoop import ‘ without the ‘–hive-import’ option to see if data can be imported into HDFS first?
    or try ‘sqoop hive-create-table’ to see if table can be created? This way we can isolate it down to which step in hive-import it breaks.

    Thanks,
    Yi

The topic ‘Sqoop Issue: Import table from MSSQL (using windows authentication) to Hive’ is closed to new replies.

Support from the Experts

A HDP Support Subscription connects you experts with deep experience running Apache Hadoop in production, at-scale on the most demanding workloads.

Enterprise Support »

Become HDP Certified

Real world training designed by the core architects of Hadoop. Scenario-based training courses are available in-classroom or online from anywhere in the world

Training »

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.