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
60
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
66
Small Wonders of BioAccumulators
sagarnikam123
2
86
BIM_2010_20-Project Presentation
sagarnikam123
2
46
Toxicology of Modern Medicine
sagarnikam123
1
55
Other Decks in Programming
See All in Programming
フロントエンドのmonorepo化と責務分離のリアーキテクト
kajitack
2
110
新世界の理解
koriym
0
140
Portapad紹介プレゼンテーション
gotoumakakeru
1
130
あなたとJIT, 今すぐアセンブ ル
sisshiki1969
1
690
JetBrainsのAI機能の紹介 #jjug
yusuke
0
200
DockerからECSへ 〜 AWSの海に出る前に知っておきたいこと 〜
ota1022
5
1.3k
新しいモバイルアプリ勉強会(仮)について
uetyo
1
260
レガシープロジェクトで最大限AIの恩恵を受けられるようClaude Codeを利用する
tk1351
2
140
物語を動かす行動"量" #エンジニアニメ
konifar
14
5.2k
LLMは麻雀を知らなすぎるから俺が教育してやる
po3rin
3
2.1k
あまり知られていない MCP 仕様たち / MCP specifications that aren’t widely known
ktr_0731
0
270
kiroでゲームを作ってみた
iriikeita
0
170
Featured
See All Featured
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.4k
CSS Pre-Processors: Stylus, Less & Sass
bermonpainter
358
30k
Large-scale JavaScript Application Architecture
addyosmani
512
110k
Bash Introduction
62gerente
614
210k
Rebuilding a faster, lazier Slack
samanthasiow
83
9.1k
Practical Orchestrator
shlominoach
190
11k
The Cult of Friendly URLs
andyhume
79
6.5k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3k
Product Roadmaps are Hard
iamctodd
PRO
54
11k
We Have a Design System, Now What?
morganepeng
53
7.7k
Mobile First: as difficult as doing things right
swwweet
223
9.9k
Sharpening the Axe: The Primacy of Toolmaking
bcantrill
44
2.4k
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