Skip to content

Commit 31a1ae9

Browse files
add parent pom.xml
1 parent 5d79ce1 commit 31a1ae9

File tree

13 files changed

+166
-36
lines changed

13 files changed

+166
-36
lines changed

.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Created by .ignore support plugin (hsz.mobi)
2+
.gitignore
3+
.idea/
4+
.metadata/
5+
RemoteSystemsTempFiles/
6+
elasticsearch/src/test/
7+
elasticsearch5/src/main/source/
8+
file/src/test/
9+
hdfs/.idea/.name
10+
hdfs/.idea/compiler.xml
11+
hdfs/.idea/copyright/
12+
hdfs/.idea/encodings.xml
13+
hdfs/.idea/libraries/
14+
hdfs/.idea/misc.xml
15+
hdfs/.idea/modules.xml
16+
hdfs/.idea/thriftCompiler.xml
17+
hdfs/.idea/workspace.xml
18+
hdfs/src/test/
19+
kafka/src/test/
20+
netty/src/test/
21+
odps/src/test/
22+
performance/src/test/
23+
stdout/src/test/

elasticsearch/pom.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
4-
4+
<parent>
5+
<groupId>com.dtstack.jlogstash</groupId>
6+
<artifactId>output.plugin</artifactId>
7+
<version>1.0.0</version>
8+
<relativePath>../pom.xml</relativePath>
9+
</parent>
510
<groupId>com.dtstack.jlogstash</groupId>
611
<artifactId>output.elasticsearch</artifactId>
712
<version>1.0.0</version>

elasticsearch5/pom.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
4-
4+
<parent>
5+
<groupId>com.dtstack.jlogstash</groupId>
6+
<artifactId>output.plugin</artifactId>
7+
<version>1.0.0</version>
8+
<relativePath>../pom.xml</relativePath>
9+
</parent>
510
<groupId>com.dtstack.jlogstash</groupId>
611
<artifactId>output.elasticsearch5</artifactId>
712
<version>1.0.0</version>

file/pom.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
4-
4+
<parent>
5+
<groupId>com.dtstack.jlogstash</groupId>
6+
<artifactId>output.plugin</artifactId>
7+
<version>1.0.0</version>
8+
<relativePath>../pom.xml</relativePath>
9+
</parent>
510
<groupId>com.dtstack.jlogstash</groupId>
611
<artifactId>output.file</artifactId>
712
<version>1.0.0</version>

hdfs/.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hdfs/pom.xml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
4-
5-
<groupId>com.dtstack.output</groupId>
6-
<artifactId>hdfs</artifactId>
4+
<parent>
5+
<groupId>com.dtstack.jlogstash</groupId>
6+
<artifactId>output.plugin</artifactId>
7+
<version>1.0.0</version>
8+
<relativePath>../pom.xml</relativePath>
9+
</parent>
10+
<groupId>com.dtstack.jlogstash</groupId>
11+
<artifactId>output.hdfs</artifactId>
712
<version>1.0.0</version>
813
<packaging>jar</packaging>
914

hdfs/src/main/java/com/dtstack/jlogstash/outputs/Hdfs.java

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -238,27 +238,27 @@ public static void main(String[] args) throws Exception{
238238
List<String> sche = Lists.newArrayList("table:varchar","op_type:varchar","op_ts:varchar","current_ts:varchar","pos:varchar","before:varchar","after:varchar");
239239
Hdfs.schema = sche;
240240

241-
for(int i =0;i<1;i++){
242-
new Thread(new Runnable(){
243-
244-
@Override
245-
public void run() {
246-
// TODO Auto-generated method stub
247-
248-
Hdfs hdfs = new Hdfs(Maps.newConcurrentMap());
249-
hdfs.prepare();
250-
for(int i=0;i<100000;i++){
251-
Map<String,Object> event = Maps.newConcurrentMap();
252-
event.put("table", "TEST.T");
253-
event.put("op_type", "U");
254-
event.put("op_ts", "2017-09-05 09:47:45.040103");
255-
event.put("current_ts", "2017-09-05T17:47:52.868000");
256-
event.put("before", "{\"ID\":12,\"NAME\":\"dsasasdas\"}");
257-
event.put("after", "{\"ID\":12,\"NAME\":\"1234455\"}");
258-
hdfs.emit(event);
259-
}
260-
}
261-
}).start();
262-
}
241+
// for(int i =0;i<1;i++){
242+
// new Thread(new Runnable(){
243+
//
244+
// @Override
245+
// public void run() {
246+
// // TODO Auto-generated method stub
247+
//
248+
// Hdfs hdfs = new Hdfs(Maps.newConcurrentMap());
249+
// hdfs.prepare();
250+
// for(int i=0;i<100000;i++){
251+
// Map<String,Object> event = Maps.newConcurrentMap();
252+
// event.put("table", "TEST.T");
253+
// event.put("op_type", "U");
254+
// event.put("op_ts", "2017-09-05 09:47:45.040103");
255+
// event.put("current_ts", "2017-09-05T17:47:52.868000");
256+
// event.put("before", "{\"ID\":12,\"NAME\":\"dsasasdas\"}");
257+
// event.put("after", "{\"ID\":12,\"NAME\":\"1234455\"}");
258+
// hdfs.emit(event);
259+
// }
260+
// }
261+
// }).start();
262+
// }
263263
}
264264
}

kafka/pom.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
4-
4+
<parent>
5+
<groupId>com.dtstack.jlogstash</groupId>
6+
<artifactId>output.plugin</artifactId>
7+
<version>1.0.0</version>
8+
<relativePath>../pom.xml</relativePath>
9+
</parent>
510
<groupId>com.dtstack.jlogstash</groupId>
611
<artifactId>output.kafka</artifactId>
712
<version>1.0.0</version>

netty/pom.xml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
4-
4+
<parent>
5+
<groupId>com.dtstack.jlogstash</groupId>
6+
<artifactId>output.plugin</artifactId>
7+
<version>1.0.0</version>
8+
<relativePath>../pom.xml</relativePath>
9+
</parent>
510
<groupId>com.dtstack.jlogstash</groupId>
611
<artifactId>output.netty</artifactId>
712
<version>1.0.1</version>

odps/pom.xml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
33
<modelVersion>4.0.0</modelVersion>
4-
5-
<groupId>com.dtstack.jlogstash.outputs</groupId>
6-
<artifactId>outodps</artifactId>
4+
<parent>
5+
<groupId>com.dtstack.jlogstash</groupId>
6+
<artifactId>output.plugin</artifactId>
7+
<version>1.0.0</version>
8+
<relativePath>../pom.xml</relativePath>
9+
</parent>
10+
<groupId>com.dtstack.jlogstash</groupId>
11+
<artifactId>output.odps</artifactId>
712
<version>1.0.0</version>
813
<packaging>jar</packaging>
9-
<name>outodps</name>
14+
<name>odps</name>
1015
<url>http://maven.apache.org</url>
1116

1217
<properties>

0 commit comments

Comments
 (0)