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

+23
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

+6-1
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

+6-1
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

+6-1
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

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

hdfs/pom.xml

+8-3
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

+22-22
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

+6-1
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

+6-1
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

+9-4
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>

performance/pom.xml

+6-1
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.performance</artifactId>
712
<version>1.0.0</version>

pom.xml

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<modelVersion>4.0.0</modelVersion>
6+
<groupId>com.dtstack.jlogstash</groupId>
7+
<artifactId>output.plugin</artifactId>
8+
<packaging>pom</packaging>
9+
<version>1.0.0</version>
10+
11+
<modules>
12+
<module>elasticsearch</module>
13+
<module>elasticsearch5</module>
14+
<module>file</module>
15+
<module>hdfs</module>
16+
<module>kafka</module>
17+
<module>netty</module>
18+
<module>odps</module>
19+
<module>performance</module>
20+
<module>stdout</module>
21+
</modules>
22+
23+
<properties>
24+
<scala.binary.version>2.10</scala.binary.version>
25+
<flink.version>1.4.0</flink.version>
26+
<dev.path>${basedir}/dev</dev.path>
27+
</properties>
28+
29+
<build>
30+
<plugins>
31+
<plugin>
32+
<groupId>org.apache.maven.plugins</groupId>
33+
<artifactId>maven-compiler-plugin</artifactId>
34+
<configuration>
35+
<source>1.8</source>
36+
<target>1.8</target>
37+
</configuration>
38+
</plugin>
39+
40+
<plugin>
41+
<groupId>org.apache.maven.plugins</groupId>
42+
<artifactId>maven-source-plugin</artifactId>
43+
<executions>
44+
<execution>
45+
<id>attach-sources</id>
46+
<goals>
47+
<goal>jar</goal>
48+
</goals>
49+
</execution>
50+
</executions>
51+
</plugin>
52+
</plugins>
53+
54+
</build>
55+
56+
</project>

stdout/pom.xml

+6-1
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.stdout</artifactId>
712
<version>1.0.0</version>

0 commit comments

Comments
 (0)