Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions flink-cyber/flink-indexing/flink-indexing-hive/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-table-planner_${scala.binary.version}</artifactId>
<version>${flink.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-connector-kafka</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import org.apache.flink.streaming.api.datastream.DataStream;
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;
import org.apache.flink.table.api.FormatDescriptor;
import org.apache.flink.table.api.SqlDialect;
import org.apache.flink.table.api.TableDescriptor;
import org.apache.flink.table.api.bridge.java.StreamTableEnvironment;
import org.apache.flink.table.catalog.hive.HiveCatalog;

Expand All @@ -26,19 +26,14 @@ protected StreamExecutionEnvironment jobReturnValue() {
return null;
}

@Override
protected void setConnectorDialect(StreamTableEnvironment tableEnv) {
tableEnv.getConfig().setSqlDialect(SqlDialect.HIVE);
}

@Override
protected String getTableConnector() {
return "hive";
}

@Override
protected FormatDescriptor getFormatDescriptor() {
return FormatDescriptor.forFormat("parquet").build();
return FormatDescriptor.forFormat("orc").build();
}

@Override
Expand All @@ -52,5 +47,10 @@ protected void registerCatalog(StreamTableEnvironment tableEnv) {
tableEnv.useCatalog(name);
}

@Override
protected TableDescriptor.Builder fillTableOptions(TableDescriptor.Builder builder) {
return super.fillTableOptions(builder)
.option("hive.storage.file-format", "orc");
}

}