This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :'Problem 1 | |
| #Connect to the MySQL database on the itversity labs using sqoop and import all of the data from the orders table into HDFS | |
| Output Requirements | |
| #Place the customer files in the HDFS directory | |
| #/user/yourusername/problem1/solution/ | |
| #Replace yourusername with your OS user name | |
| #Use a text format with comma as the columnar delimiter | |
| #Load every order record completely' | |
| sqoop import \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- coding: utf-8 -*- | |
| """ | |
| LICENSE: BSD (same as pandas) | |
| example use of pandas with oracle mysql postgresql sqlite | |
| - updated 9/18/2012 with better column name handling; couple of bug fixes. | |
| - used ~20 times for various ETL jobs. Mostly MySQL, but some Oracle. | |
| to do: | |
| save/restore index (how to check table existence? just do select count(*)?), | |
| finish odbc, |