Changes between Version 1 and Version 2 of jazz/13-12-21
- Timestamp:
- Dec 21, 2013, 2:07:57 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
jazz/13-12-21
v1 v2 3 3 == Sqoop == 4 4 5 * 準備 MySQL資料庫5 * 建立 MySQL 測試資料庫 6 6 {{{ 7 7 mysql> use test; … … 31 31 | 2 | World | 32 32 +----+-------+ 33 2 rows in set (0.01 sec) 33 2 rows in set (0.01 sec)資料庫名 34 34 }}} 35 * 建立測試帳號 35 36 {{{ 36 37 mysql> GRANT SELECT,INSERT,UPDATE ON 資料庫名.* TO user@host IDENTIFIED BY '密碼'; 38 mysql> FLUSH PRIVILEGES; 37 39 }}} 40 * 執行 Sqoop 連到 MySQL 匯入資料的測試 41 {{{ 42 jazz@master ~ $ sqoop import --connect jdbc:mysql://sql.3du.me/test --table mysql_data --username sqoop -P 43 }}}