Oracle 导入到 hdfs配置文件
时间: 2023-12-05 15:49:23 浏览: 88
3、通过datax同步oracle相关-oracle到hdfs
你可以使用DataX来将Oracle数据导入到HDFS。下面是一个示例的配置文件,你可以根据自己的需求进行修改:
```json
{
"job": {
"setting": {
"speed": {
"channel": "3"
}
},
"content": [
{
"reader": {
"name": "oraclereader",
"parameter": {
"username": "your_username",
"password": "your_password",
"connection": [
{
"querySql": [
"SELECT * FROM your_table"
],
"jdbcUrl": [
"jdbc:oracle:thin:@your_host:your_port:your_service"
]
}
]
}
},
"writer": {
"name": "hdfswriter",
"parameter": {
"defaultFS": "hdfs://your_namenode:your_port",
"fileType": "orc",
阅读全文