mirror of
https://github.com/alibaba/DataX.git
synced 2025-05-02 19:50:29 +08:00
tdengine writer rebuild
This commit is contained in:
parent
57d82f0636
commit
b55d26dca7
@ -68,21 +68,6 @@
|
|||||||
<version>0.0.1-SNAPSHOT</version>
|
<version>0.0.1-SNAPSHOT</version>
|
||||||
<scope>test</scope>
|
<scope>test</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
|
||||||
<groupId>mysql</groupId>
|
|
||||||
<artifactId>mysql-connector-java</artifactId>
|
|
||||||
<version>5.1.49</version>
|
|
||||||
<scope>test</scope>
|
|
||||||
</dependency>
|
|
||||||
<!-- 添加 dm8 jdbc jar 包依赖-->
|
|
||||||
<dependency>
|
|
||||||
<groupId>com.dameng</groupId>
|
|
||||||
<artifactId>dm-jdbc</artifactId>
|
|
||||||
<version>1.8</version>
|
|
||||||
<scope>system</scope>
|
|
||||||
<systemPath>${project.basedir}/src/test/resources/DmJdbcDriver18.jar
|
|
||||||
</systemPath>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
@ -2,6 +2,7 @@ package com.alibaba.datax.plugin.writer.tdenginewriter;
|
|||||||
|
|
||||||
import com.alibaba.datax.core.Engine;
|
import com.alibaba.datax.core.Engine;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import java.sql.*;
|
import java.sql.*;
|
||||||
@ -9,6 +10,7 @@ import java.text.SimpleDateFormat;
|
|||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
|
@Ignore
|
||||||
public class DM2TDengineTest {
|
public class DM2TDengineTest {
|
||||||
|
|
||||||
private String host1 = "192.168.0.72";
|
private String host1 = "192.168.0.72";
|
||||||
|
@ -6,10 +6,7 @@ import com.alibaba.datax.common.element.Record;
|
|||||||
import com.alibaba.datax.common.element.StringColumn;
|
import com.alibaba.datax.common.element.StringColumn;
|
||||||
import com.alibaba.datax.common.util.Configuration;
|
import com.alibaba.datax.common.util.Configuration;
|
||||||
import com.alibaba.datax.core.transport.record.DefaultRecord;
|
import com.alibaba.datax.core.transport.record.DefaultRecord;
|
||||||
import org.junit.AfterClass;
|
import org.junit.*;
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.BeforeClass;
|
|
||||||
import org.junit.Test;
|
|
||||||
|
|
||||||
import java.sql.Connection;
|
import java.sql.Connection;
|
||||||
import java.sql.DriverManager;
|
import java.sql.DriverManager;
|
||||||
@ -20,6 +17,7 @@ import java.util.Map;
|
|||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
import java.util.stream.IntStream;
|
import java.util.stream.IntStream;
|
||||||
|
|
||||||
|
@Ignore
|
||||||
public class DefaultDataHandlerTest {
|
public class DefaultDataHandlerTest {
|
||||||
|
|
||||||
private static final String host = "192.168.1.93";
|
private static final String host = "192.168.1.93";
|
||||||
|
@ -2,12 +2,14 @@ package com.alibaba.datax.plugin.writer.tdenginewriter;
|
|||||||
|
|
||||||
import com.alibaba.datax.core.Engine;
|
import com.alibaba.datax.core.Engine;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import java.sql.*;
|
import java.sql.*;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
|
@Ignore
|
||||||
public class Mysql2TDengineTest {
|
public class Mysql2TDengineTest {
|
||||||
|
|
||||||
private static final String host1 = "192.168.56.105";
|
private static final String host1 = "192.168.56.105";
|
||||||
|
@ -2,10 +2,12 @@ package com.alibaba.datax.plugin.writer.tdenginewriter;
|
|||||||
|
|
||||||
import com.alibaba.datax.core.Engine;
|
import com.alibaba.datax.core.Engine;
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import java.sql.*;
|
import java.sql.*;
|
||||||
|
|
||||||
|
@Ignore
|
||||||
public class Opentsdb2TDengineTest {
|
public class Opentsdb2TDengineTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
@ -1,10 +1,6 @@
|
|||||||
package com.alibaba.datax.plugin.writer.tdenginewriter;
|
package com.alibaba.datax.plugin.writer.tdenginewriter;
|
||||||
|
|
||||||
import com.alibaba.fastjson.util.TypeUtils;
|
import org.junit.*;
|
||||||
import org.junit.AfterClass;
|
|
||||||
import org.junit.Assert;
|
|
||||||
import org.junit.BeforeClass;
|
|
||||||
import org.junit.Test;
|
|
||||||
|
|
||||||
import java.sql.Connection;
|
import java.sql.Connection;
|
||||||
import java.sql.DriverManager;
|
import java.sql.DriverManager;
|
||||||
@ -14,6 +10,7 @@ import java.util.Arrays;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
@Ignore
|
||||||
public class SchemaManagerTest {
|
public class SchemaManagerTest {
|
||||||
|
|
||||||
private static Connection conn;
|
private static Connection conn;
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
package com.alibaba.datax.plugin.writer.tdenginewriter;
|
package com.alibaba.datax.plugin.writer.tdenginewriter;
|
||||||
|
|
||||||
import com.alibaba.datax.core.Engine;
|
import com.alibaba.datax.core.Engine;
|
||||||
import org.junit.Before;
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import java.sql.Connection;
|
import java.sql.Connection;
|
||||||
@ -9,6 +9,7 @@ import java.sql.DriverManager;
|
|||||||
import java.sql.SQLException;
|
import java.sql.SQLException;
|
||||||
import java.sql.Statement;
|
import java.sql.Statement;
|
||||||
|
|
||||||
|
@Ignore
|
||||||
public class Stream2TDengineTest {
|
public class Stream2TDengineTest {
|
||||||
|
|
||||||
private String host2 = "192.168.56.105";
|
private String host2 = "192.168.56.105";
|
||||||
|
@ -2,12 +2,14 @@ package com.alibaba.datax.plugin.writer.tdenginewriter;
|
|||||||
|
|
||||||
import com.alibaba.datax.core.Engine;
|
import com.alibaba.datax.core.Engine;
|
||||||
import org.junit.Before;
|
import org.junit.Before;
|
||||||
|
import org.junit.Ignore;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
import java.sql.*;
|
import java.sql.*;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
|
|
||||||
|
@Ignore
|
||||||
public class TDengine2TDengineTest {
|
public class TDengine2TDengineTest {
|
||||||
|
|
||||||
private static final String host1 = "192.168.56.105";
|
private static final String host1 = "192.168.56.105";
|
||||||
|
Loading…
Reference in New Issue
Block a user