How to run `google/fhir-data-pipes/pipelines/batch` uber JAR in Google Cloud Functions locally?
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Bắt đầu với entry point pipelines/batch com.google.fhir.analytics.FhirEtl và lệnh java-function-invoker được hiển thị trong issue. Kiểm tra cách target này được expose cho Google Cloud Functions, cách cấu hình các đối số và liệu các lần gọi song song có hỗ trợ các giá trị khác nhau hay không; ghi lại các bước gọi và cấu hình cục bộ được hỗ trợ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
I tried the following command after building the uber JAR of google/fhir-data-pipes/pipelines/batch:
java -jar java-function-invoker-1.3.1.jar \
--classpath /d/SourceCodes/google/fhir-data-pipes/pipelines/batch/target/batch-bundled.jar \
--target com.google.fhir.analytics.FhirEtl
and here is the error logs:
2023-11-23 16:19:50.971:INFO::main: Logging initialized @96ms to org.eclipse.jetty.util.log.StdErrLog
Exception in thread "main" java.lang.RuntimeException: Could not determine function signature type from target com.google.fhir.analytics.FhirEtl. Either this should be a class implementing one of the interfaces in com.google.cloud.functions, or the environment variable FUNCTION_SIGNATURE_TYPE should be set to "http" or "event".
at com.google.cloud.functions.invoker.runner.Invoker.servletForDeducedSignatureType(Invoker.java:393)
at com.google.cloud.functions.invoker.runner.Invoker.startServer(Invoker.java:298)
at com.google.cloud.functions.invoker.runner.Invoker.startServer(Invoker.java:244)
at com.google.cloud.functions.invoker.runner.Invoker.main(Invoker.java:127)
Also, how to pass arguments to the uber JAR of the function in question? For example, if running the uber JAR directly, we can do it like this:
PATH_TO_THE_UBER_JAR=/d/SourceCodes/google/fhir-data-pipes/pipelines/batch/target/batch-bundled.jar && \
java -jar ${PATH_TO_THE_UBER_JAR} \
--fhirServerUrl=http://fhir-server-bkkbn:8092/fhir \
--resourceList=Patient,Practitioner \
--fhirSinkPath=http://fhir-server-central:8098/fhir
More advanced, can we use Google Cloud Functions parallelism and supply different arguments values?
- Ngôn ngữ chính
- Java
- Star
- 155
- Fork
- 64
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của GoogleCloudPlatform/functions-framework-java
-
enhancement P2
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
-
Incompatible conversion from Pub/Sub emulator to CloudEvent for `CloudEventsFunction`Có thể làm lại được @taeold đã nhận 214 ngày trước và không có pull request nào đang mở. Đang mởenhancement
GoogleCloudPlatform/functions-framework-java#375 · 1 bình luận · 1 reaction · 1 người được giao ·
-
enhancement P2
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
GoogleCloudPlatform/functions-framework-java#372 · 1 bình luận ·
-
Add support for auto-reload in run goal of function-maven-pluginCó thể làm lại được @janell-chen đã nhận 1002 ngày trước và không có pull request nào đang mở. Đang mởenhancement P3
GoogleCloudPlatform/functions-framework-java#261 · 1 người được giao ·
-
Consider supporting JEP 445Có thể làm lại được @janell-chen đã nhận 1214 ngày trước và không có pull request nào đang mở. Đang mởenhancement P3
GoogleCloudPlatform/functions-framework-java#209 · 1 người được giao ·
Tất cả issue của GoogleCloudPlatform/functions-framework-java
Issue tương tự
-
cbor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
FasterXML/jackson-dataformats-binary#844 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
improvement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
apache/iceberg#18351 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
repowise-dev/repowise#2945 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Interpolating settings.xml can lead to malformed XML when variable value contains double-hyphenĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
apache/maven#13321 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
liquid-java/liquidjava#321 ·
Maintainer thường phản hồi trong vòng 2 ngày