<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Sqoop with sql server driver, eval and list-tables are working fine , but import failing with below error, in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-with-sql-server-driver-eval-and-list-tables-are/m-p/163697#M53609</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/195/vranganathan.html" nodeid="195"&gt;@Venkat Ranganathan&lt;/A&gt;&lt;P&gt;Even my opnion is same , eval picking the kerberos from the local host. But how to resolve for import?&lt;/P&gt;</description>
    <pubDate>Thu, 09 Feb 2017 18:07:29 GMT</pubDate>
    <dc:creator>rajsyrus</dc:creator>
    <dc:date>2017-02-09T18:07:29Z</dc:date>
    <item>
      <title>Sqoop with sql server driver, eval and list-tables are working fine , but import failing with below error,</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-with-sql-server-driver-eval-and-list-tables-are/m-p/163693#M53605</link>
      <description>&lt;P&gt;Query: sqoop import --connect "jdbc:sqlserver://XXXXXXXXXXXXXXXXXXXXXXX;instance=XXXX;database=XXXXX;ServerSpn=MSSQLSvc/XXXX@realm;integratedSecurity=true;authenticationScheme=JavaKerberos" --table  DATA_TABLE  --target-dir /tmp/111 --split-by AR_ID -m 1 -- --schema dbo&lt;/P&gt;&lt;P&gt;INFO mapreduce.Job:  map 0% reduce 0%
17/02/07 11:30:52 INFO mapreduce.Job: Task Id : attempt_1486380022013_0343_m_000000_0, Status : FAILED&lt;/P&gt;&lt;P&gt;Error: java.lang.RuntimeException: java.lang.RuntimeException: com.microsoft.sqlserver.jdbc.SQLServerException: Integrated authentication failed. ClientConnectionId:9b11416e-fdd5-4cb4-93e9-4c6e20401cd8
        at org.apache.sqoop.mapreduce.db.DBInputFormat.setConf(DBInputFormat.java:167)
        at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:76)
        at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:136)
        at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:749)
        at org.apache.hadoop.mapred.MapTask.run(MapTask.java:341)
        at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:168)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:422)
        at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1724)
        at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:162)
Caused by: java.lang.RuntimeException: com.microsoft.sqlserver.jdbc.SQLServerException: Integrated authentication failed. ClientConnectionId:9b11416e-fdd5-4cb4-93e9-4c6e20401cd8
        at org.apache.sqoop.mapreduce.db.DBInputFormat.getConnection(DBInputFormat.java:220)
        at org.apache.sqoop.mapreduce.db.DBInputFormat.setConf(DBInputFormat.java:165)
        ... 9 more
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Integrated authentication failed. ClientConnectionId:9b11416e-fdd5-4cb4-93e9-4c6e20401cd8
        at com.microsoft.sqlserver.jdbc.SQLServerConnection.terminate(SQLServerConnection.java:1748)
        at com.microsoft.sqlserver.jdbc.KerbAuthentication.intAuthInit(KerbAuthentication.java:175)
        at com.microsoft.sqlserver.jdbc.KerbAuthentication.GenerateClientContext(KerbAuthentication.java:278)
        at com.microsoft.sqlserver.jdbc.SQLServerConnection.sendLogon(SQLServerConnection.java:2860)
        at com.microsoft.sqlserver.jdbc.SQLServerConnection.logon(SQLServerConnection.java:2360)
        at com.microsoft.sqlserver.jdbc.SQLServerConnection.access$100(SQLServerConnection.java:43)
        at com.microsoft.sqlserver.jdbc.SQLServerConnection$LogonCommand.doExecute(SQLServerConnection.java:2346)
        at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:6276)
        at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:1793)
        at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:1404)
        at com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:1068)
        at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectInternal(SQLServerConnection.java:904)
        at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:451)
        at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:1014)
        at java.sql.DriverManager.getConnection(DriverManager.java:664)
        at java.sql.DriverManager.getConnection(DriverManager.java:270)
        at org.apache.sqoop.mapreduce.db.DBConfiguration.getConnection(DBConfiguration.java:300)
        at org.apache.sqoop.mapreduce.db.DBInputFormat.getConnection(DBInputFormat.java:213)
        ... 10 more
Caused by: java.security.PrivilegedActionException: GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:422)
        at com.microsoft.sqlserver.jdbc.KerbAuthentication.getClientCredential(KerbAuthentication.java:198)
        at com.microsoft.sqlserver.jdbc.KerbAuthentication.intAuthInit(KerbAuthentication.java:149)
        ... 26 more
Caused by: GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)
        at sun.security.jgss.krb5.Krb5InitCredential.getInstance(Krb5InitCredential.java:147)
        at sun.security.jgss.krb5.Krb5MechFactory.getCredentialElement(Krb5MechFactory.java:122)
        at sun.security.jgss.GSSManagerImpl.getCredentialElement(GSSManagerImpl.java:193)
        at sun.security.jgss.GSSCredentialImpl.add(GSSCredentialImpl.java:427)
        at sun.security.jgss.GSSCredentialImpl.&amp;lt;init&amp;gt;(GSSCredentialImpl.java:62)
        at sun.security.jgss.GSSManagerImpl.createCredential(GSSManagerImpl.java:154)
        at com.microsoft.sqlserver.jdbc.KerbAuthentication$1.run(KerbAuthentication.java:188)
        at com.microsoft.sqlserver.jdbc.KerbAuthentication$1.run(KerbAuthentication.java:186)
        ... 30 more
Container killed by the ApplicationMaster.
Container killed on request. Exit code is 143
Container exited with a non-zero exit code 143&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 18:39:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-with-sql-server-driver-eval-and-list-tables-are/m-p/163693#M53605</guid>
      <dc:creator>rajsyrus</dc:creator>
      <dc:date>2017-02-07T18:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop with sql server driver, eval and list-tables are working fine , but import failing with below error,</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-with-sql-server-driver-eval-and-list-tables-are/m-p/163694#M53606</link>
      <description>&lt;P&gt;Are you using sqljdbc42.jar or jtds.jar for the driver ? Also, is sqoop eval working with integratedSecurity option or you are passing user id &amp;amp; password ?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 23:58:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-with-sql-server-driver-eval-and-list-tables-are/m-p/163694#M53606</guid>
      <dc:creator>anatva</dc:creator>
      <dc:date>2017-02-07T23:58:50Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop with sql server driver, eval and list-tables are working fine , but import failing with below error,</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-with-sql-server-driver-eval-and-list-tables-are/m-p/163695#M53607</link>
      <description>&lt;P&gt;&amp;gt; IntegratedSecurity=true;&lt;/P&gt;&lt;P&gt;This is not supported - your eval etc will work because they are done from the local java process but there is no kerberos credential context in the container when the mappers run to do the import work&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 02:16:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-with-sql-server-driver-eval-and-list-tables-are/m-p/163695#M53607</guid>
      <dc:creator>vranganathan</dc:creator>
      <dc:date>2017-02-09T02:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop with sql server driver, eval and list-tables are working fine , but import failing with below error,</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-with-sql-server-driver-eval-and-list-tables-are/m-p/163696#M53608</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/15604/anatva.html" nodeid="15604"&gt;@anatva&lt;/A&gt; &lt;/P&gt;&lt;P&gt;yes i am using sqljdbc42.jar. and i tried with both sql and jtds.jar driver class. sqoop eval working fine with integratedSecurity and userid &amp;amp; password too.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 18:03:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-with-sql-server-driver-eval-and-list-tables-are/m-p/163696#M53608</guid>
      <dc:creator>rajsyrus</dc:creator>
      <dc:date>2017-02-09T18:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop with sql server driver, eval and list-tables are working fine , but import failing with below error,</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-with-sql-server-driver-eval-and-list-tables-are/m-p/163697#M53609</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/195/vranganathan.html" nodeid="195"&gt;@Venkat Ranganathan&lt;/A&gt;&lt;P&gt;Even my opnion is same , eval picking the kerberos from the local host. But how to resolve for import?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2017 18:07:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-with-sql-server-driver-eval-and-list-tables-are/m-p/163697#M53609</guid>
      <dc:creator>rajsyrus</dc:creator>
      <dc:date>2017-02-09T18:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop with sql server driver, eval and list-tables are working fine , but import failing with below error,</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-with-sql-server-driver-eval-and-list-tables-are/m-p/163698#M53610</link>
      <description>&lt;P&gt;Are these relevant:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/52137/sqlserver-sqoop-import-integrated-security-kerbero.html" target="_blank"&gt;https://community.hortonworks.com/questions/52137/sqlserver-sqoop-import-integrated-security-kerbero.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/7433/how-to-impot-job-on-sqoop-from-sql-server-connecti.html" target="_blank"&gt;https://community.hortonworks.com/questions/7433/how-to-impot-job-on-sqoop-from-sql-server-connecti.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 02:48:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-with-sql-server-driver-eval-and-list-tables-are/m-p/163698#M53610</guid>
      <dc:creator>bandalora</dc:creator>
      <dc:date>2017-02-10T02:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop with sql server driver, eval and list-tables are working fine , but import failing with below error,</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-with-sql-server-driver-eval-and-list-tables-are/m-p/163699#M53611</link>
      <description>&lt;P&gt;Finaly i resolved the issue...!!!&lt;/P&gt;&lt;P&gt;Sqoop SQL Server data import to HDFS worked with manual parametric the authentication(using windows credential) with added parameter on the SQL Server JDBC driver, as integrated security is not supported by the SQL driver as of now due to the Kerberos authentication(Delegated tokens distributed over cluster while running MR job).&lt;/P&gt;&lt;P&gt;So we need to pass the windows authentication with password and with the integrated security disabled mode to import the data to the system. As normal SQL server driver does not support, so I had used the jtds.jar and the different driver class to pull the data to the Hadoop Lake.&lt;/P&gt;&lt;P&gt;Sample Command I tried on the server as follows,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sqoop import --table Table1 --connect "jdbc:jtds:sqlserver://&amp;lt;Hostname&amp;gt;:&amp;lt;Port&amp;gt;;useNTLMv2=true;domain=&amp;lt;WindowsDomainName&amp;gt;;databaseName=XXXXXXXXXXXXX" \&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;--connection-manager org.apache.sqoop.manager.SQLServerManager --driver net.sourceforge.jtds.jdbc.Driver --username XXXXX --password 'XXXXXXX' \&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;--verbose --target-dir /tmp/33 -m 1 -- --schema dbo&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Feb 2017 16:40:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-with-sql-server-driver-eval-and-list-tables-are/m-p/163699#M53611</guid>
      <dc:creator>rajsyrus</dc:creator>
      <dc:date>2017-02-10T16:40:58Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop with sql server driver, eval and list-tables are working fine , but import failing with below error,</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-with-sql-server-driver-eval-and-list-tables-are/m-p/317332#M53612</link>
      <description>&lt;P&gt;Sqoop AD authentication has been resolved using jTDS driver.&lt;/P&gt;</description>
      <pubDate>Sat, 29 May 2021 21:39:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-with-sql-server-driver-eval-and-list-tables-are/m-p/317332#M53612</guid>
      <dc:creator>balucr</dc:creator>
      <dc:date>2021-05-29T21:39:25Z</dc:date>
    </item>
  </channel>
</rss>

