Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fix][E2E] Disable HDFS in CI #25

Merged
merged 2 commits into from
Dec 9, 2024
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
Original file line number Diff line number Diff line change
Expand Up @@ -78,15 +78,15 @@ public List<CatalogTable> getProducedCatalogTables() {
public SourceReader<SeaTunnelRow, MongoSplit> createReader(SourceReader.Context readerContext) {
return new MongodbReader(
readerContext,
crateClientProvider(options),
createClientProvider(options),
createDeserializer(options, catalogTable.getSeaTunnelRowType()),
createMongodbReadOptions(options));
}

@Override
public SourceSplitEnumerator<MongoSplit, ArrayList<MongoSplit>> createEnumerator(
SourceSplitEnumerator.Context<MongoSplit> enumeratorContext) {
MongodbClientProvider clientProvider = crateClientProvider(options);
MongodbClientProvider clientProvider = createClientProvider(options);
return new MongodbSplitEnumerator(
enumeratorContext, clientProvider, createSplitStrategy(options, clientProvider));
}
Expand All @@ -95,15 +95,15 @@ public SourceSplitEnumerator<MongoSplit, ArrayList<MongoSplit>> createEnumerator
public SourceSplitEnumerator<MongoSplit, ArrayList<MongoSplit>> restoreEnumerator(
SourceSplitEnumerator.Context<MongoSplit> enumeratorContext,
ArrayList<MongoSplit> checkpointState) {
MongodbClientProvider clientProvider = crateClientProvider(options);
MongodbClientProvider clientProvider = createClientProvider(options);
return new MongodbSplitEnumerator(
enumeratorContext,
clientProvider,
createSplitStrategy(options, clientProvider),
checkpointState);
}

private MongodbClientProvider crateClientProvider(ReadonlyConfig config) {
private MongodbClientProvider createClientProvider(ReadonlyConfig config) {
return MongodbCollectionProvider.builder()
.connectionString(config.get(MongodbConfig.URI))
.database(config.get(MongodbConfig.DATABASE))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ private void executeJob(TestContainer container, String job1, String job2)
}

@TestTemplate
@Disabled(
"[HDFS/COS/OSS/S3] is not available in CI, if you want to run this test, please set up your own environment in the test case file, hadoop_hive_conf_path_local and ip below}")
public void testFakeSinkHiveOnHDFS(TestContainer container) throws Exception {
executeJob(container, "/fake_to_hive_on_hdfs.conf", "/hive_on_hdfs_to_assert.conf");
}
Expand Down
Loading