How to run `google/fhir-data-pipes/pipelines/batch` uber JAR in Google Cloud Functions locally?
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 35/100
Direzione di ricerca
Iniziare con l’entry point pipelines/batch com.google.fhir.analytics.FhirEtl e il comando java-function-invoker mostrato nell’issue. Verificare come questo target viene esposto a Google Cloud Functions, come vengono configurati gli argomenti e se le invocazioni parallele supportano valori diversi; documentare i passaggi supportati per l’invocazione e la configurazione locali.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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?
- Lingua principale
- Java
- Stelle
- 154
- Fork
- 63
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di GoogleCloudPlatform/functions-framework-java
-
enhancement P2
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 65/100
-
enhancement
GoogleCloudPlatform/functions-framework-java#375 · 1 commento · 1 reazione · 1 assegnatario ·
-
enhancement P2
Difficoltà 5/5 Più di una settimana Idoneità per principianti 30/100
GoogleCloudPlatform/functions-framework-java#372 · 1 commento ·
-
enhancement P3
GoogleCloudPlatform/functions-framework-java#261 · 1 assegnatario ·
-
Consider supporting JEP 445 Apertaenhancement P3
GoogleCloudPlatform/functions-framework-java#209 · 1 assegnatario ·
Tutte le issue di GoogleCloudPlatform/functions-framework-java
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
infinispan/infinispan#18150 ·
-
area/frontend
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
-
untriaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100