1 Sqoop列出所有表
下面的命令用于列出MySQL数据库服务器employees数据库下的所有的表:https://www.cndba.cn/dave/article/3310https://www.cndba.cn/dave/article/3310
https://www.cndba.cn/dave/article/3310https://www.cndba.cn/dave/article/3310https://www.cndba.cn/dave/article/3310https://www.cndba.cn/dave/article/3310https://www.cndba.cn/dave/article/3310https://www.cndba.cn/dave/article/3310
[dave@www.cndba.cn data]$ sqoop list-tables --connect jdbc:mysql://192.168.56.2:3306/employees --username root --password root
Warning: /home/hadoop/sqoop/../hbase does not exist! HBase imports will fail.
Please set $HBASE_HOME to the root of your HBase installation.
Warning: /home/hadoop/sqoop/../hcatalog does not exist! HCatalog jobs will fail.
Please set $HCAT_HOME to the root of your HCatalog installation.
Warning: /home/hadoop/sqoop/../accumulo does not exist! Accumulo imports will fail.
Please set $ACCUM