Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sqoop import \
- --connect jdbc:mysql://localhost/source_database_name \ (This is the path to access the Source DB using JDBC Driver)
- --username <username> \ (Source Database Username)
- --password <password> \ (Source Database password)
- --database source_database_name \ (The database name will become folder name in target HDFS )
- --table Source_table_name \ (This will store the files in .gz compression which is default)
- --hive-import \ (This will import the data imported in HDFS as Hive table automatically)
- -m 4
Add Comment
Please, Sign In to add comment