Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
The Transporter 4 MySQL
Search
Sagar Nikam
July 11, 2013
Programming
0
52
The Transporter 4 MySQL
import & export to HDFS, Hive, HBase, csv, sql, text, tsv, xml
Sagar Nikam
July 11, 2013
Tweet
Share
More Decks by Sagar Nikam
See All by Sagar Nikam
Who Changed my Password ?
sagarnikam123
1
55
Small Wonders of BioAccumulators
sagarnikam123
2
79
BIM_2010_20-Project Presentation
sagarnikam123
2
35
Toxicology of Modern Medicine
sagarnikam123
1
47
Other Decks in Programming
See All in Programming
R言語の環境構築と基礎 Tokyo.R 112
bob3bob3
0
270
Rubyでたのしむクリエイティブコーディング/Enjoy Creative coding with Ruby
chobishiba
1
180
Anthropic Cookbook のおすすめレシピ
schroneko
7
950
Changed Rules: Architectures with Lightweight Stores
manfredsteyer
PRO
0
240
DMMプラットフォームがTiDB Cloudを採用した背景
pospome
8
4.1k
PHPの次期バージョンはこの時期どうなっているのか - Internalsの開発体制について - PHPカンファレンス小田原
youkidearitai
PRO
1
190
dbtのドメイン分割による データ基盤の改善とDigdagとの連携
sakama
0
310
Code Reviews
bkuhlmann
4
890
SwiftUIで使いやすいToastの作り方 / How to build a Toast system which is easy to use in SwiftUI
lovee
3
140
Ruby Function Composition
bkuhlmann
1
330
PHPはいつから死んでいるかの調査
chiroruxx
1
400
Goのエラースタックトレースの歴史と今後
sonatard
7
1.3k
Featured
See All Featured
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
227
16k
Principles of Awesome APIs and How to Build Them.
keavy
121
16k
Mobile First: as difficult as doing things right
swwweet
216
8.6k
The Success of Rails: Ensuring Growth for the Next 100 Years
eileencodes
30
6k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
9
8.3k
GraphQLの誤解/rethinking-graphql
sonatard
50
9.2k
Java REST API Framework Comparison - PWX 2021
mraible
PRO
18
6.9k
Six Lessons from altMBA
skipperchong
21
3k
Visualization
eitanlees
136
14k
Embracing the Ebb and Flow
colly
80
4.1k
The Mythical Team-Month
searls
216
42k
VelocityConf: Rendering Performance Case Studies
addyosmani
320
23k
Transcript
The Transporter 4 MySQL A visual Guide 4 Importing &
Exporting csv, xml, tsv, text, sql, MySql, HDFS, Hive, HBase
contents • Export 2 csv • Import csv • Exporting
2 sql • Importing sql • Exporting 2 xml • Importing xml • Exporting 2 tsv • Exporting 2 text • Exporting 2 HDFS • Installing Apache Sqoop • exporting 2 HDFS • Importing 2 MySQL • Exporting 2 Hive • Exporting 2 HBase
open MySQL
exporting to CSV
exporting CSV – Problem ?
check Appamor status
AA Status
AA
go to apparmor.d
edit usr.sbin.mysqld
usr.sbin.mysqld
after editing usr.sbin.mysqld
make /tmp/data directory
make /data directory
mounting
reload apparmor
restarting apparmor . . .
exporting .csv
Importing csv
importing .csv – problem ?
importing .csv
edit my.cnf
my.cnf file
after editing my.cnf
importing .csv
exporting sql
view tables
create country table
inserting data into country table
exporting .sql
exported .sql file
Importing sql
importing .sql
exporting xml
exporting .xml
importing xml
importing xml
exporting tsv
exporting .tsv
exported .tsv file
exporting txt
exporting .txt
exported .txt file
exporting to HDFS
installing Apache Sqoop
Apache Sqoop Home Page
Sqoop folder structure
add mysqlJ connector in SqoopHome/lib
export & check version
sqoop help
list databases
make dir in HDFS
check mysql tables
grant permissions
exporting 2 HDFS
exporting completes
Intermediate .java file (mapReduce)
HDFS table
exporting to HDFS
exporting to HDFS
importing to MySQL (4m HDFS)
HDFS table
make MySQL table structure
importing to MySQL
importing completes
imported table
exporting to Hive
check Hive for redundant table
exporting 2 Hive
libthrift version error
export fake HBase_Home
check Hive tables
export to HBase
mysql table
employee table
start HBase daemons
exporting to HBase
exporting completes
all Sqoop queries
finish