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
59
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
62
Small Wonders of BioAccumulators
sagarnikam123
2
85
BIM_2010_20-Project Presentation
sagarnikam123
2
45
Toxicology of Modern Medicine
sagarnikam123
1
54
Other Decks in Programming
See All in Programming
ML.NETで始める機械学習
ymd65536
0
250
AIプログラミング雑キャッチアップ
yuheinakasaka
20
5.3k
Expoによるアプリ開発の現在地とReact Server Componentsが切り開く未来
yukukotani
2
250
はじめての Go * WASM * OCR
sgash708
1
120
Jakarta EE meets AI
ivargrimstad
0
690
Webフレームワークとともに利用するWeb components / JSConf.jp おかわり
spring_raining
1
140
推しメソッドsource_locationのしくみを探る - はじめてRubyのコードを読んでみた
nobu09
2
360
Datadog DBMでなにができる? JDDUG Meetup#7
nealle
0
160
AIレビュー導入によるCIツールとの共存と最適化
kamo26sima
1
960
SwiftUI Viewの責務分離
elmetal
PRO
2
280
From the Wild into the Clouds - Laravel Meetup Talk
neverything
0
190
5分で理解する SOLID 原則 #phpcon_nagoya
shogogg
1
420
Featured
See All Featured
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
11
550
The Pragmatic Product Professional
lauravandoore
32
6.4k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
49
2.3k
GraphQLの誤解/rethinking-graphql
sonatard
69
10k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
7
660
GitHub's CSS Performance
jonrohan
1030
460k
Fireside Chat
paigeccino
35
3.2k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
29
1.1k
A Modern Web Designer's Workflow
chriscoyier
693
190k
Building Applications with DynamoDB
mza
93
6.2k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
4
440
The Invisible Side of Design
smashingmag
299
50k
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