-
Notifications
You must be signed in to change notification settings - Fork 305
/
oracle2hdfs.json
executable file
·51 lines (51 loc) · 1.37 KB
/
oracle2hdfs.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
"job": {
"content": [
{
"reader": {
"name": "oraclereader",
"parameter": {
"column": [
"*"
],
"connection": {
"jdbcUrl": "jdbc:oracle:thin:@127.0.0.1/stage",
"table": [
"${sdb}.${stable}"
]
},
"password": "password",
"username": "oracle"
}
},
"writer": {
"name": "hdfswriter",
"parameter": {
"column": [],
"compress": "SNAPPY",
"defaultFS": "hdfs:/sandbox",
"fieldDelimiter": "\t",
"fileName": "${stable}",
"fileType": "orc",
"path": "/apps/hive/warehouse/${stable}",
"writeMode": "append"
},
"hadoopConfig": {
"dfs.nameservices": "sandbox",
"dfs.ha.namenodes.sandbox": "nn1,nn2",
"dfs.namenode.rpc-address.sandbox.nn1": "hdp1.sandbox.com:8020",
"dfs.namenode.rpc-address.sandbox.namenode2": "hdp2.sandbox.com:8020",
"dfs.client.failover.proxy.provider.sandbox": "org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider"
}
}
}
],
"setting": {
"speed": {
"channel": 2,
"byte": -1,
"record": -1
}
}
}
}