./sqoop help
codegen Generate code to interact with database records
create-hive-table Import a table definition into Hive
eval Evaluate a SQL statement and display the results
export Export an HDFS directory to a database table
help List available commands
import Import a table from a database to HDFS
import-all-tables Import tables from a database to HDFS
import-mainframe Import datasets from a mainframe server to HDFS
job Work with saved jobs
list-databases能够访问的数据库 List available databases on a server
list-tables List available tables in a database
merge Merge results of incremental imports
metastore Run a standalone Sqoop metastore
version Display version information
./sqoop list-databases
–connect jdbc:mysql://localhost:3306
–username root
–password root \
查看具体命令帮助
必须安装MySQL安装
Common arguments:
–connect Specify JDBC connect
strin