Search code examples
sqlhadoophiveodbchortonworks-data-platform

How to load SQL data into the Hortonworks?


I have Installed Hortonworks SandBox in my pc. also tried with a CSV file and its getting in a table structerd manner its OK (Hive + Hadoop), nw I want to migrate my current SQL Databse into Sandbox (MS SQL 2008 r2).How I will do this? Also want to connect to my project (VS 2010 C#).

Is it possible to connect through ODBC?

I Heard sqoop is using for transferring data from SQL to Hadoop so how I can do this migration with sqoop?


Solution

  • You could write your own job to migrate the data. But Sqoop would be more convenient. To do that you have to download Sqoop and the appropriate connector, Microsoft SQL Server Connector for Apache Hadoop in your case. You can download it from here.Please go through the Sqoop user guide. It contains all the information in proper detail.

    And Hive does support ODBC. You can find more on this at this page.