sqoop:oracle import to hdfs

  1. spool 方式导出成文本,上传hadoop服务器
    然后进行load data

  2. sqoop import
    –connect jdbc:oracle:thin:@oracle:1521:orac
    –username chen
    –password chen
    -m 1
    –table TEST

连接方式:
–connect jdbc:oracle:thin:@OracleServer:OraclePort:OracleSID

–connect jdbc:oracle:thin:@//OracleServer:OraclePort/OracleService

–connect jdbc:oracle:thin:@TNSName
参数解释:
Parameter / Component Description
jdbc:oracle:thin :The Data Connector for Oracle and Hadoop requires the connection string starts with jdbc:oracle.
The Data Connector for Oracle and Hadoop has been tested with the thin driver however it should work equally well with other drivers such as OCI.
OracleServer: The host name of the Oracle server.
OraclePort: The port to connect to the Oracle server.
OracleSID: The Oracle instance.
OracleService: The Oracle Service.
TNSName: The TNS name for the entry describing the connection to the Oracle server

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值