Sqoop Commands - Latest
Sqoop Commands - Latest
Sqoop Commands - Latest
-------
create database college;
use college;
show tables;
describe student_master;
INSERT INTO fy
(student_id, result)
VALUES
(1, 81.90);
INSERT INTO fy
(student_id, result)
VALUES
(2, 78.90);
LIST DATABASES
-------------
[hduser@ubuntu ~]$ sqoop list-databases --connect jdbc:mysql://127.0.0.1 --username
root --password '';
LIST TABLES in a database
--------------------------
[hduser@ubuntu ~]$ sqoop list-tables --connect jdbc:mysql://localhost/college
--username root --password '';
WITH QUERY
----------------------------------------------------
sqoop import --connect jdbc:mysql://localhost/college --username root --password ''
--query 'select * from student_master where $CONDITIONS and student_id=2' --target-
dir /iiht/query1 -m 1;
$ hbase shell
hbase > scan 'college'