[
https://issues.apache.org/jira/browse/BAHIR-99?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16097675#comment-16097675
]
ASF GitHub Bot commented on BAHIR-99:
-------------------------------------
Github user rmetzger commented on a diff in the pull request:
https://github.com/apache/bahir-flink/pull/17#discussion_r128922017
--- Diff:
flink-connector-kudu/src/test/java/es/accenture/flink/Job/JobBatchSinkTest.java
---
@@ -0,0 +1,158 @@
+package es.accenture.flink.Job;
+
+import es.accenture.flink.Sink.KuduOutputFormat;
+import es.accenture.flink.Sources.KuduInputFormat;
+import es.accenture.flink.Utils.Exceptions.KuduClientException;
+import es.accenture.flink.Utils.Exceptions.KuduTableException;
+import es.accenture.flink.Utils.RowSerializable;
+import es.accenture.flink.Utils.Utils;
+import org.apache.flink.api.common.typeinfo.TypeInformation;
+import org.apache.flink.api.java.DataSet;
+import org.apache.flink.api.java.ExecutionEnvironment;
+import org.apache.kudu.client.KuduClient;
+import org.apache.kudu.client.KuduException;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+public class JobBatchSinkTest {
+
+ /*class vars*/
+ private String KUDU_MASTER;
+ private String TABLE_NAME;
+ private String TABLE_NAME2;
+ private String[] columnNames;
+ private Utils utils;
+ private KuduClient client;
+ private ExecutionEnvironment env;
+ private boolean singleton = true;
+ private DataSet<RowSerializable> input = null;
+ private Integer MODE;
+
+
+ /**
+ * Function to set program's variables
+ * @throws Exception excepcion
+ */
+ @Before
+ public void setUp() throws Exception {
+ KUDU_MASTER = System.getProperty("kuduMaster", "localhost");
+ TABLE_NAME = System.getProperty("tableName", "Table_1");
+ TABLE_NAME2 = System.getProperty("tableName", "Table_2");
+ MODE = KuduOutputFormat.CREATE;
+ columnNames= new String[2];
+ columnNames[0] = "key";
+ columnNames[1] = "value";
+ utils=new Utils("localhost");
+ client = new KuduClient.KuduClientBuilder(KUDU_MASTER).build();
+
+
+ }
--- End diff --
empty lines.
> Kudu connector to read/write from/to Kudu
> -----------------------------------------
>
> Key: BAHIR-99
> URL: https://issues.apache.org/jira/browse/BAHIR-99
> Project: Bahir
> Issue Type: New Feature
> Components: Flink Streaming Connectors
> Affects Versions: Flink-1.0
> Reporter: Rubén Casado
> Assignee: Rubén Casado
> Fix For: Flink-Next
>
>
> Java library to integrate Apache Kudu and Apache Flink. Main goal is to be
> able to read/write data from/to Kudu using the DataSet and DataStream Flink's
> APIs.
> Data flows patterns:
> Batch
> - Kudu -> DataSet<RowSerializable> -> Kudu
> - Kudu -> DataSet<RowSerializable> -> other source
> - Other source -> DataSet<RowSerializable> -> other source
> Stream
> - Other source -> DataStream <RowSerializable> -> Kudu
> Code is available in https://github.com/rubencasado/Flink-Kudu
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)