<?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: I want to import certain tables from multiple SQL sever databases using sqoop to HDFS. Can someone guide me how to do it? an automated script would do well. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-want-to-import-certain-tables-from-multiple-SQL-sever/m-p/113704#M26086</link>
    <description>&lt;P&gt;Nice solution &lt;A rel="user" href="https://community.cloudera.com/users/177/pminovic.html" nodeid="177"&gt;@Predrag Minovic&lt;/A&gt;. Simple and neat, thanks! +1&lt;/P&gt;</description>
    <pubDate>Fri, 29 Apr 2016 06:51:00 GMT</pubDate>
    <dc:creator>emilysharpe</dc:creator>
    <dc:date>2016-04-29T06:51:00Z</dc:date>
    <item>
      <title>I want to import certain tables from multiple SQL sever databases using sqoop to HDFS. Can someone guide me how to do it? an automated script would do well.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-want-to-import-certain-tables-from-multiple-SQL-sever/m-p/113701#M26083</link>
      <description />
      <pubDate>Mon, 25 Apr 2016 12:09:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-want-to-import-certain-tables-from-multiple-SQL-sever/m-p/113701#M26083</guid>
      <dc:creator>omkarmotoe</dc:creator>
      <dc:date>2016-04-25T12:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: I want to import certain tables from multiple SQL sever databases using sqoop to HDFS. Can someone guide me how to do it? an automated script would do well.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-want-to-import-certain-tables-from-multiple-SQL-sever/m-p/113702#M26084</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/7369/omkarmotoe.html" nodeid="7369"&gt;@omkar pathallapalli&lt;/A&gt;&lt;P&gt;Please refer - &lt;A href="https://community.hortonworks.com/articles/14802/sqoop-importexport-tutorial.html" target="_blank"&gt;https://community.hortonworks.com/articles/14802/sqoop-importexport-tutorial.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2016 12:20:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-want-to-import-certain-tables-from-multiple-SQL-sever/m-p/113702#M26084</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-04-25T12:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: I want to import certain tables from multiple SQL sever databases using sqoop to HDFS. Can someone guide me how to do it? an automated script would do well.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-want-to-import-certain-tables-from-multiple-SQL-sever/m-p/113703#M26085</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/7369/omkarmotoe.html" nodeid="7369"&gt;@omkar pathallapalli&lt;/A&gt;, a single Sqoop command can import only a single table from a given DB server. So, to import multiple tables from multiple servers you need a command, for example a Bash script like this&lt;/P&gt;&lt;PRE&gt;for tbl in $(cat $4); do
sqoop import –-connect "jdbc:sqlserver://${1}:3464;databaseName=${2}" --username ${3} -P --table ${tbl} --target-dir sqimport
done&lt;/PRE&gt;&lt;P&gt;And call it once per DB server providing each DB server FQDN, database name, user-name and a file listing the tables you want to import (one table per line). The script will prompt you for the password. You can modify target-dir and/or add more Sqoop properties including the number of mappers used for import, by default 4.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2016 16:53:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-want-to-import-certain-tables-from-multiple-SQL-sever/m-p/113703#M26085</guid>
      <dc:creator>pminovic</dc:creator>
      <dc:date>2016-04-25T16:53:18Z</dc:date>
    </item>
    <item>
      <title>Re: I want to import certain tables from multiple SQL sever databases using sqoop to HDFS. Can someone guide me how to do it? an automated script would do well.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-want-to-import-certain-tables-from-multiple-SQL-sever/m-p/113704#M26086</link>
      <description>&lt;P&gt;Nice solution &lt;A rel="user" href="https://community.cloudera.com/users/177/pminovic.html" nodeid="177"&gt;@Predrag Minovic&lt;/A&gt;. Simple and neat, thanks! +1&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2016 06:51:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-want-to-import-certain-tables-from-multiple-SQL-sever/m-p/113704#M26086</guid>
      <dc:creator>emilysharpe</dc:creator>
      <dc:date>2016-04-29T06:51:00Z</dc:date>
    </item>
  </channel>
</rss>

