sqoop1.99.3操作,导入数据全纪录
2016-08-27 17:44
465 查看
sqoop的1.99.7版本有问题,请千万不要用
需求:将hive数据库中的TBLS表导出到HDFS之上;
Creating connection for connector with id 1
Please fill following values to create new connection object
Name: TBLS_IMPORT_DEMO
Connection configuration
JDBC Driver Class: com.mysql.jdbc.Driver
JDBC Connection String: jdbc:mysql://127.0.0.1:3306/hive
Username: root
Password: ****
JDBC Connection Properties:
There are currently 0 values in the map:
entry#
Security related configuration options
Max connections: 10
New connection was successfully created with validation status FINE and persistent id 10
结果遇到了一个问题就是始终提醒找不到对应的驱动
就是下面的这个死提示哈
Connection configuration Warning message: Can't connect to the database with given credentials: No suitable driver found for jdbc:mysql://127.0.0.1:3306/forError message: Can't load specified driver
最后在将mysql-connector-java-5.1.39-bin.jar放到sqoop的lib目录、server/lib目录、还有/opt/sqoop-1.99.3/server/webapps/sqoop/WEB-INF/lib目录下
重启服务
终于连接上了
New connection was successfully created with validation status FINE and persistent id 1
是不是折磨人的有木有
需求:将hive数据库中的TBLS表导出到HDFS之上;
$SQOOP2_HOME/bin/sqoop.sh client
sqoop:000> set server --host 127.0.0.1 --port 12000 --webapp sqoop创建connection:sqoop:000> create connection --cid 1
Creating connection for connector with id 1
Please fill following values to create new connection object
Name: TBLS_IMPORT_DEMO
Connection configuration
JDBC Driver Class: com.mysql.jdbc.Driver
JDBC Connection String: jdbc:mysql://127.0.0.1:3306/hive
Username: root
Password: ****
JDBC Connection Properties:
There are currently 0 values in the map:
entry#
Security related configuration options
Max connections: 10
New connection was successfully created with validation status FINE and persistent id 10
结果遇到了一个问题就是始终提醒找不到对应的驱动
就是下面的这个死提示哈
Connection configuration Warning message: Can't connect to the database with given credentials: No suitable driver found for jdbc:mysql://127.0.0.1:3306/forError message: Can't load specified driver
最后在将mysql-connector-java-5.1.39-bin.jar放到sqoop的lib目录、server/lib目录、还有/opt/sqoop-1.99.3/server/webapps/sqoop/WEB-INF/lib目录下
重启服务
终于连接上了
New connection was successfully created with validation status FINE and persistent id 1
是不是折磨人的有木有
相关文章推荐
- 【甘道夫】Sqoop1.99.3基础操作--导入Oracle的数据到HDFS
- 【甘道夫】Sqoop1.99.3基础操作--导入Oracle的数据到HDFS
- sqoop简单操作-从mysql导入导出数据
- HBase Shell 操作命令&&使用Sqoop将数据导入HBase
- apache sqoop1.99.3+hadoop2.5.2+mysql5.0.7环境构筑以及数据导入导出
- sqoop简单操作-从mysql导入导出数据
- java操作txt或xls文件批量导入数据
- C#操作Excel数据导入(不安装EXCEL的情况)
- Linux环境中Oracle数据导入与导出备份创建用户操作
- Linux环境中Oracle数据导入与导出备份创建用户操作
- oracle基本操作语法(建表空间,建用户,授权,数据导入导出)
- 利用SQL Server的DTS操作EXCEL、Access等数据表的导入导出
- [转载]利用SQL Server的DTS操作EXCEL、Access等数据表的导入导出
- [导入]Silverlight 2 (beta1)数据操作(2)——使用ASP.NET Web Service进行数据CRUD操作(下)
- SQL本地分布式操作远程数据库,可用于实现导入,导出等数据操作功能
- 利用SQL Server的DTS操作EXCEL、Access等数据表的导入导出
- [导入]Silverlight 2 (beta1)数据操作(1)——使用ASP.NET Web Service进行数据CRUD操作(上)
- oracle数据的导入和导出操作
- Java操作Excel(三)将Excel中的数据批量的导入数据库
- 转Asp操作DTS进行代参数的数据导入导出