A. Pre-Requisite:
I. Hadoop
II. RDBMS (MySQL, Oracle, DB2, etc ...)
III. RDBMS Connector
I have installed MySQL for testing purpose.
Here is the simple way to install MySQL on ubuntu:
1. Launch Terminal
2. sudo apt-get install mysql-server (prompt for password)
3. While installing it will prompt to key in root password for mysql (Not for your system). Key in the password for mysql root user (new password & re-type password)
4. Upon successful installation, check the status using below command:
5. sudo netstat -tap | grep mysql
result should be: tcp 0 0 localhost:mysql *:* LISTEN 10444/mysqld
If it shows above output then your mysql database is ready.
6. Upon installation download the respective connector. In my case I have downloaded mysql-connector-java-5.1.25.jar & added this to CLASSPATH.
B.Sqoop Installation
1. Downlaod Sqoop from http://mirror.sdunix.com/apache/sqoop/1.4.4/sqoop-1.4.4.bin__hadoop-1.0.0.tar.gz (check your hadoop version & download respective version of sqoop, make sure the file name has "bin")
2. Extract Sqoop : tar -xzf sqoop-1.4.4-bin_hadoop-1.0.0.tar.gz (it will extract to a folder sqoop-1.4.4-bin_hadoop-1.0.0)
3. sudo mv sqoop-1.4.4-bin_hadoop-1.0.0/ sqoop
4. sudo mv sqoop/ /usr/hadoop/.
5. cd /usr/hadoop
6. sudo chown -R hduser:hadoop sqoop/
7. cd sqoop
8. cp *.jar $HADOOP_HOME/lib/. (copy sqoop jar files to hadoop lib directory)
9. Set below Env variables (under hduser).
export SQOOP_HOME=/usr/hadoop/SQOOP
export PATH=$SQOOP_HOME/bin:$PATH
(Make sure hadoop is started. To start Hadoop, ssh localhost; start-all.sh)
10. type sqoop at command prompt (it will display type "sqoop help" to get help).
11. Below are sample sqoop statements for importing & exporting data from mysql db to hdfs
a. sqoop import --connect jdbc:mysql://localhost/hadoop_test --username xxxxx --password ******** --table Employee --target-dir /data/emp1 -m 1
b. sqoop import --connect jdbc:mysql://localhost/hadoop_test --username xxxxx --password ******** --table Employee --target-dir /data/emp2/ --split-by deptno;
Import as Avro:
c. sqoop import --connect jdbc:mysql://localhost/hadoop_test --username xxxxx --password ****** --table Employee --target-dir /data/emp3/ --as-avrodatafile -m 1;
d. sqoop export --connect jdbc:mysql://localhost/hadoop_test --table Employee --username xxxxx --password ******** --export-dir /data/emp --input-fields-terminated-by '\t';
** while exporting one should specify the absolute path of the file. In case of Parts, give full path ex: part-00000
b. sqoop import --connect jdbc:mysql://localhost/hadoop_test --username xxxxx --password ******** --table Employee --target-dir /data/emp2/ --split-by deptno;
Import as Avro:
c. sqoop import --connect jdbc:mysql://localhost/hadoop_test --username xxxxx --password ****** --table Employee --target-dir /data/emp3/ --as-avrodatafile -m 1;
d. sqoop export --connect jdbc:mysql://localhost/hadoop_test --table Employee --username xxxxx --password ******** --export-dir /data/emp --input-fields-terminated-by '\t';
** while exporting one should specify the absolute path of the file. In case of Parts, give full path ex: part-00000
(Hadoop Definitive guide has very good & simple example to work on !).
"Sqoop is mainly used to transport data from RDBMS to HDFS & vis-a-vis"
**************** End of Sqoop Installation ******************************
Thanks for Information Oracle Apps Technical is a collection of a bunch of collected applications like accounts payables, purchasing, inventory, accounts receivables, human resources, order management, general ledger and fixed assets, etc which have its own functionality for serving the business
ReplyDeleteOracle Apps Training In Chennai
I was just wondering how I missed this article so far, this is a great piece of content I have ever seen in the entire Internet. Thanks for sharing this worth able information in here and do keep blogging like this.
ReplyDeleteHadoop Training Chennai | Big Data Training in Chennai | Big Data Training Chennai
That's interesting! Can you please share more about it? Thank you.
ReplyDeleteHadoop Certification in Chennai
Thanks for Information...
ReplyDeleteSharePoint training in chennai
Hi All, I am glad to know that my post is really useful for you all. Your comments made me to post more information on BigData.
ReplyDeleteVery true and inspiring article. I strongly believe all your points. I also learnt a lot from your post. Cheers and thank you for the clear path.
ReplyDeleteSoftware testing training in chennai
SEO Training in Chennai
Digital Marketing Course in Chennai
Selenium Training
Selenium Course in Chennai
Selenium Courses in Chennai
ReplyDeleteThis information is impressive. I am inspired with your post writing style & how continuously you describe this topic. Eagerly waiting for your new blog keep doing more.
Franchise For Spoken English Classes
Computer Training Institute Franchise
Best Education Franchise In India
Training Franchise Opportunities In India
Training Franchise Opportunities In India
Language School Franchise English Language School Franchise
Best Education Franchise In India
Franchise For Spoken English Classe
Training Franchise Opportunities In India
The information which you have shared is more informative to us. Thanks for your blog.
ReplyDeletePHP Course
PHP Training Institute
PHP Training Course
PHP Certification Course
Best PHP Training
Thanks first of all for the useful info.the idea in this article is quite different and innovative please update more.
ReplyDeletebest android institute in bangalore
Android courses in Anna Nagar
Android Certification Training in T nagar
Android Training in Sholinganallur
This comment has been removed by the author.
ReplyDeleteI am happy to find this post Very useful for me, as it contains lot of information
ReplyDeleteArticle submission sites
Technology
Awesome Post. Thanks for Sharing. Kepp updating.
ReplyDeletepega course
pega training
pega certification training
pega developer training
Very good blog, thanks for sharing such a wonderful blog with us. Keep sharing such a worthy information to my vision.
ReplyDeleteBlue Prism Training in Chennai
Blue Prism Training Institute in Chennai
Blue Prism Training near me
RPA Training in Chennai
UiPath Training in Chennai
ccna course in Chennai
It is an amazing post. Keep sharing this kind of worthy information.
ReplyDeleteMobile Testing Course in Chennai | Mobile Testing Training in Chennai | Mobile Automation Testing Training in Chennai | Mobile Testing Course in Adyar | Mobile Testing Training in Velachery | Mobile Testing Training in Tambaram
It was really a nice article and I was really impressd by reading this.
ReplyDeleteThank you for such amazing post. Keep up the good work.
Primavera Training in Chennai
Primavera Course in Chennai
Primavera Software Training in Chennai
Best Primavera Training in Chennai
Primavera p6 Training in Chennai
Primavera Coaching in Chennai
Primavera Course
Amazing Post. The content you have shared is awesome. It gives me a great pleasure in reading your article. Your style of writing is very unique. Thanks for posting.
ReplyDeleteEthical Hacking Course in Chennai
Hacking Course in Chennai
Ethical Hacking Training in Chennai
Certified Ethical Hacking Course in Chennai
Ethical Hacking Course
Ethical Hacking Certification
Hacking Course
Learn Ethical Hacking
Do you have any recommendations for newbie blog writers? I’d appreciate it.
ReplyDeletefire and safety course in chennai
It’s always so sweet and also full of a lot of fun for me personally and my office colleagues to search your blog a minimum of thrice in a week to see the new guidance you have got.
ReplyDeleteDotnet Training in Chennai | Dotnet Training course in Chennai
Android Training in Chennai |Best Android Training course in Chennai
CCNA Training in Chennai | CCNA Training course in Chennai
MCSE Training in Chennai | MCSE Training course in Chennai
Embedded Systems Training in Chennai |Embedded Systems Training course in Chennai
Matlab Training in Chennai | Matlab Training course in Chennai
C C++ Training in Chennai | C C++ Training course in Chennai
linux Training in Chennai | NO.1 linux Training in Chennai
Unix Training in Chennai | NO.1 Unix Training in Chennai
Sql Training in Chennai | NO.1 Sql Training in Chennai
It’s great to come across a blog every once in a while that isn’t the same out of date rehashed
ReplyDeletematerial. Fantastic read.
Java Training in Chennai |Best
Java Training in Chennai
C C++ Training
in Chennai |Best C C++ Training Institute in Chennai
Data science Course
Training in Chennai |Best Data Science Training Institute in Chennai
RPA Course
Training in Chennai |Best RPA Training Institute in Chennai
AWS Course Training
in Chennai |Best AWS Training Institute in Chennai
Devops Course Training
in Chennai |Best Devops Training Institute in Chennai
Selenium Course Training in
Chennai |Best Selenium Training Institute in Chennai
Java Course Training in Chennai |
Best Java Training Institute in Chennai
I am really happy with your blog because your article is very unique and powerful for new reader.
ReplyDeleteBig Data Hadoop Training In Chennai | Big Data Hadoop Training In anna nagar | Big Data Hadoop Training In omr | Big Data Hadoop Training In porur | Big Data Hadoop Training In tambaram | Big Data Hadoop Training In velachery
"Great post i must say and thanks for the information. Education is definitely a sticky subject. However, is still among the leading topics of our time. I appreciate your post and look forward to more.
ReplyDeleteDigital Marketing Training Course in Chennai | Digital Marketing Training Course in Anna Nagar | Digital Marketing Training Course in OMR | Digital Marketing Training Course in Porur | Digital Marketing Training Course in Tambaram | Digital Marketing Training Course in Velachery
"
very nice article.Thanks for sharing the post...!
ReplyDeleteCyber Security Training Course in Chennai | Certification | Cyber Security Online Training Course | Ethical Hacking Training Course in Chennai | Certification | Ethical Hacking Online Training Course |
CCNA Training Course in Chennai | Certification | CCNA Online Training Course | RPA Robotic Process Automation Training Course in Chennai | Certification | RPA Training Course Chennai | SEO Training in Chennai | Certification | SEO Online Training Course
Did you want to set your career towards Oracle? Then Infycle is with you to make this into reality. Infycle Technologies gives the combined and best Oracle course in Chennai, which offers various stages of Oracle such as Oracle PL/SQL, Oracle DBA, etc., along with 100% hands-on training guided by professional tutors in the field. Along with that, the mock interviews will be given to the candidates to face the interviews with complete confidence. Apart from all, the candidates will be placed in the top MNC's with an excellent salary package. To get it all, call 7502633633 and make this happen for your happy life.Best Oracle Course in Chennai | Infycle Technologies
ReplyDeletekayseriescortu.com - alacam.org - xescortun.com
ReplyDeleteInfycle Technologies, the No.1 software training institute in Chennai offers the No.1 Selenium course in Chennai, for tech professionals, freshers, and students at the best offers. In addition to the Selenium, other in-demand courses such as Python, Big Data, Oracle, Java, Python, Power BI, Digital Marketing, Cyber Security also will be trained with hands-on practical classes. After the completion of training, the trainees will be sent for placement interviews in the top companies. Call 7504633633 to get more info and a free demo.
ReplyDeletehi thanku somuch this infromation thanku so much
ReplyDeletecs executive
freecseetvideolectures/
Very useful articale. Thanks for sharing this with us. You can also check my website.
ReplyDeleteSim Owner Details Checker