Changes between Version 1 and Version 2 of jazz/13-12-21


Ignore:
Timestamp:
Dec 21, 2013, 2:07:57 PM (11 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • jazz/13-12-21

    v1 v2  
    33== Sqoop ==
    44
    5  * 準備 MySQL 資料庫
     5 * 建立 MySQL 測試資料庫
    66{{{
    77mysql> use test;
     
    3131|  2 | World |
    3232+----+-------+
    33 2 rows in set (0.01 sec)
     332 rows in set (0.01 sec)資料庫名
    3434}}}
     35 * 建立測試帳號
    3536{{{
    3637mysql> GRANT SELECT,INSERT,UPDATE ON 資料庫名.* TO user@host IDENTIFIED BY '密碼';
     38mysql> FLUSH PRIVILEGES;
    3739}}}
     40 * 執行 Sqoop 連到 MySQL 匯入資料的測試
     41{{{
     42jazz@master ~ $ sqoop import --connect jdbc:mysql://sql.3du.me/test --table mysql_data --username sqoop -P
     43}}}