forked from google/fhir-data-pipes
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add ability to switch off/on creation of parquet dwh
- Loading branch information
Showing
12 changed files
with
194 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# | ||
# Copyright 2020-2022 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
|
||
# See `pipelines/controller/config/application.yaml` for full documentation | ||
# of these options. | ||
# This config is meant to be used by `compose-controller-spark-sql.yaml`. | ||
fhirdata: | ||
# 172.17.0.1 is an example docker network interface ip address; | ||
# `hapi-server` is another docker example where a container with that name is | ||
# running on the same docker network. | ||
# fhirServerUrl: "http://172.17.0.1:8091/fhir" | ||
# fhirServerUrl: "http://hapi-server:8080/fhir" | ||
dbConfig: "config/hapi-postgres-config_local.json" | ||
dwhRootPrefix: "/dwh/controller_DWH" | ||
#Whether to create a Parquet DWH or not | ||
createParquetDwh: false | ||
incrementalSchedule: "0 0 * * * *" | ||
purgeSchedule: "0 30 * * * *" | ||
numOfDwhSnapshotsToRetain: 2 | ||
# There is no Questionnaire in our test FHIR server, but it is added to | ||
# prevent regression of https://github.com/google/fhir-data-pipes/issues/785. | ||
# TODO: add resource table creation to e2e tests. | ||
resourceList: "Patient,Encounter,Observation,Questionnaire,Condition,Practitioner,Location,Organization,DiagnosticReport,Immunization,MedicationRequest,PractitionerRole,Procedure" | ||
numThreads: 1 | ||
autoGenerateFlinkConfiguration: true | ||
createHiveResourceTables: false | ||
#thriftserverHiveConfig: "config/thriftserver-hive-config_local.json" | ||
#hiveResourceViewsDir: "config/views" | ||
# structureDefinitionsPath: "config/profile-definitions" | ||
structureDefinitionsPath: "classpath:/r4-us-core-definitions" | ||
fhirVersion: "R4" | ||
rowGroupSizeForParquetFiles: 33554432 # 32mb | ||
#viewDefinitionsDir: "config/views" | ||
#sinkDbConfigPath: "config/hapi-postgres-config_local_views.json" | ||
sinkFhirServerUrl: "http://sink-server:8080/fhir" | ||
#sinkUserName: "hapi" | ||
#sinkPassword: "hapi123" | ||
recursiveDepth: 1 | ||
|
||
# Enable spring boot actuator end points, use "*" to expose all endpoints, or a comma-separated | ||
# list to expose selected ones | ||
management: | ||
endpoints: | ||
web: | ||
exposure: | ||
include: health,info,metrics,prometheus,pipeline-metrics |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Copyright 2023 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
# To use this config, FLINK_CONF_DIR env. var should be set to the parent dir. | ||
|
||
# This is needed to prevent an "Insufficient number of network buffers" | ||
# exceptions when running the merger on large input with many workers. | ||
taskmanager.memory.network.max: 256mb | ||
|
||
# This is needed to be able to process large resources, otherwise in JDBC | ||
# mode we may get the following exception: | ||
# "The record exceeds the maximum size of a sort buffer ..." | ||
taskmanager.memory.managed.size: 256mb | ||
|
||
# This is to make pipeline.run() non-blocking with FlinkRunner; unfortunately | ||
# this is overwritten in `local` mode: https://stackoverflow.com/a/74416240 | ||
execution.attached: false | ||
|
||
# This is required to track the pipeline metrics when FlinkRunner is used. | ||
execution.job-listeners: com.google.fhir.analytics.metrics.FlinkJobListener |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"jdbcDriverClass": "org.postgresql.Driver", | ||
"databaseService" : "postgresql", | ||
"databaseHostName" : "hapi-fhir-db", | ||
"databasePort" : "5432", | ||
"databaseUser" : "admin", | ||
"databasePassword" : "admin", | ||
"databaseName" : "hapi" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters