<?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: Unable to import data from SQL Server to hive using Sqoop in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-import-data-from-SQL-Server-to-hive-using-Sqoop/m-p/192605#M154673</link>
    <description>&lt;P&gt;Many thanks @&lt;A href="https://community.hortonworks.com/users/3418/jsensharma.html"&gt;Jay Kumar SenSharma&lt;/A&gt; for your help.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I found the problem, the problem was with multiple instances of SQL Server on same port. Configuring the port and other TCP settings has solved it. &lt;/P&gt;</description>
    <pubDate>Fri, 19 Jan 2018 10:12:44 GMT</pubDate>
    <dc:creator>safianjum123</dc:creator>
    <dc:date>2018-01-19T10:12:44Z</dc:date>
    <item>
      <title>Unable to import data from SQL Server to hive using Sqoop</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-import-data-from-SQL-Server-to-hive-using-Sqoop/m-p/192603#M154671</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;I have some databases in SQL Server 2012 Express and I used Sqoop to import them to hive. The process worked fine.&lt;BR /&gt;I had an Attendence databses which is of 40GB .mdf file. I installed SQL Server 2014 Developer Edition to restore that database as SQl Server Express cant go beyond 10GB.&lt;BR /&gt;After restoring the Attendence Database when I try to import it into hive using sqoop i am getting following exception:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;18/01/18 12:25:27 &lt;STRONG&gt;ERROR manager.SqlManager: Error executing statement: com.microsoft.sqlserver.jdbc.SQLServerException: Cannot open database "Attendance" requested by the login. The login failed. ClientConnectionId:882fd1da-cf02-43cc-af47-03025da7400b
com.microsoft.sqlserver.jdbc.SQLServerException: Cannot open database "Attendance" requested by the login. The login failed.&lt;/STRONG&gt; ClientConnectionId:882fd1da-cf02-43cc-af47-03025da7400b
        at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:217)
        at com.microsoft.sqlserver.jdbc.TDSTokenHandler.onEOF(tdsparser.java:279)
        at com.microsoft.sqlserver.jdbc.TDSParser.parse(tdsparser.java:99)
        at com.microsoft.sqlserver.jdbc.SQLServerConnection.sendLogon(SQLServerConnection.java:4346)
        at com.microsoft.sqlserver.jdbc.SQLServerConnection.logon(SQLServerConnection.java:3160)
        at com.microsoft.sqlserver.jdbc.SQLServerConnection.access$100(SQLServerConnection.java:43)
        at org.apache.sqoop.Sqoop.main(Sqoop.java:243)
18/01/18 12:25:27 ERROR tool.ImportTool: &lt;STRONG&gt;Encountered IOException running import job: java.io.IOException: No columns to generate for ClassWriter
        at &lt;/STRONG&gt;org.apache.sqoop.orm.ClassWriter.generate(ClassWriter.java:1659)
        at org.apache.sqoop.tool.CodeGenTool.generateORM(CodeGenTool.java:107)
        at org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:488)
        at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:615)
        at org.apache.sqoop.Sqoop.run(Sqoop.java:147)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
        at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:183)
        at org.apache.sqoop.Sqoop.runTool(Sqoop.java:225)
        at org.apache.sqoop.Sqoop.runTool(Sqoop.java:234)
        at org.apache.sqoop.Sqoop.main(Sqoop.java:243)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Following is my Sqoop Command:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;sqoop import --driver com.microsoft.sqlserver.jdbc.SQLServerDriver --connect "jdbc:sqlserver://192.168.3.122:1433;databaseName=Attendance" --username SA --password 43434asw -m 1 --table dbo.UserUpdates --hive-table staging_attendance.UserUpdates --fields-terminated-by ',' --hive-import  --hive-overwrite --outdir /root/staging_attendance&lt;/P&gt;&lt;P&gt;I have already checked for spelling mistakes, incorrect ip, port, password but thay all are correct.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is this error due to multiple instance of SQL Server or something else, Please provide the solution.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2018 15:44:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-import-data-from-SQL-Server-to-hive-using-Sqoop/m-p/192603#M154671</guid>
      <dc:creator>safianjum123</dc:creator>
      <dc:date>2018-01-18T15:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to import data from SQL Server to hive using Sqoop</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-import-data-from-SQL-Server-to-hive-using-Sqoop/m-p/192604#M154672</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/47217/safianjum123.html" nodeid="47217"&gt;@Safi Ahmed&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you please try the following syntax to pass the username &amp;amp; password as part of the connection URL and try to list the tables in the DB to see if this works?  This is just to validate if the DB is rejecting the credentials or the specific database / table that you are trying to access is causing some issue here.&lt;/P&gt;&lt;P&gt;This is just to see of the mentioned user has access issues on DB "Attendance" ?&lt;/P&gt;&lt;PRE&gt;# sqoop  list-tables  
--driver com.microsoft.sqlserver.jdbc.SQLServerDriver 
--connect "jdbc:sqlserver://xxxxxxxxxxx:1433;databaseName=Attendance;user=SA;password=43434asw" 
&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jan 2018 16:07:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-import-data-from-SQL-Server-to-hive-using-Sqoop/m-p/192604#M154672</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-01-18T16:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to import data from SQL Server to hive using Sqoop</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-import-data-from-SQL-Server-to-hive-using-Sqoop/m-p/192605#M154673</link>
      <description>&lt;P&gt;Many thanks @&lt;A href="https://community.hortonworks.com/users/3418/jsensharma.html"&gt;Jay Kumar SenSharma&lt;/A&gt; for your help.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I found the problem, the problem was with multiple instances of SQL Server on same port. Configuring the port and other TCP settings has solved it. &lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 10:12:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-import-data-from-SQL-Server-to-hive-using-Sqoop/m-p/192605#M154673</guid>
      <dc:creator>safianjum123</dc:creator>
      <dc:date>2018-01-19T10:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to import data from SQL Server to hive using Sqoop</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-import-data-from-SQL-Server-to-hive-using-Sqoop/m-p/323088#M229013</link>
      <description>&lt;P&gt;Can you please help what you meant by "Other TCP settings", we have a similar problem need this to troubleshoot it. Thanks in advance !!&lt;BR /&gt;&lt;BR /&gt;1. Did you change the port from 1433 to something else ? like 14XX&lt;BR /&gt;2. What changes in TCP/IP side had been done ?&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 15:04:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-import-data-from-SQL-Server-to-hive-using-Sqoop/m-p/323088#M229013</guid>
      <dc:creator>Bishal</dc:creator>
      <dc:date>2021-08-24T15:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to import data from SQL Server to hive using Sqoop</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Unable-to-import-data-from-SQL-Server-to-hive-using-Sqoop/m-p/323114#M229027</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/91430"&gt;@Bishal&lt;/a&gt;&amp;nbsp;as this is an older post, you would have a better chance of receiving a resolution by&lt;A href="“https://community.cloudera.com/t5/forums/postpage/board-id/Questions”" target="_blank"&gt; starting a new thread&lt;/A&gt;. This will also be an opportunity to provide details specific to your environment that could aid others in assisting you with a more accurate answer to your question. You can link this thread as a reference in your new post.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 06:30:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Unable-to-import-data-from-SQL-Server-to-hive-using-Sqoop/m-p/323114#M229027</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2021-08-25T06:30:53Z</dc:date>
    </item>
  </channel>
</rss>

