PavelPetukhov commented on issue #2856:
URL: https://github.com/apache/hudi/issues/2856#issuecomment-826758533
Thanks a lot for the reply
I my case I am getting the following error:
1/04/26 13:29:52 WARN prometheus.PushGatewayReporter: Can't push monitoring
information to pushGateway
java.net.UnknownHostException: https
at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:184)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:607)
at sun.net.NetworkClient.doConnect(NetworkClient.java:175)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:463)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:558)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:242)
at sun.net.www.http.HttpClient.New(HttpClient.java:339)
at sun.net.www.http.HttpClient.New(HttpClient.java:357)
at
sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1226)
at
sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1162)
at
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1056)
at
sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:990)
at
io.prometheus.client.exporter.PushGateway.doRequest(PushGateway.java:305)
at
io.prometheus.client.exporter.PushGateway.pushAdd(PushGateway.java:160)
at
org.apache.hudi.metrics.prometheus.PushGatewayReporter.report(PushGatewayReporter.java:72)
at
org.apache.hudi.metrics.prometheus.PushGatewayMetricsReporter.report(PushGatewayMetricsReporter.java:64)
at
org.apache.hudi.metrics.Metrics.reportAndCloseReporter(Metrics.java:64)
at org.apache.hudi.metrics.Metrics.lambda$new$0(Metrics.java:57)
at java.lang.Thread.run(Thread.java:748)
my parameters are
--hoodie-conf hoodie.metrics.on=true
--hoodie-conf hoodie.metrics.reporter.type=PROMETHEUS_PUSHGATEWAY
--hoodie-conf hoodie.metrics.pushgateway.host=https://pushgateway_url.com/
--hoodie-conf hoodie.metrics.pushgateway.port=8081 \
--hoodie-conf hoodie.metrics.pushgateway.job.name=test_job_1 \
--hoodie-conf hoodie.metrics.pushgateway.random.job.name.suffix=false \
--hoodie-conf hoodie.metrics.pushgateway.delete.on.shutdown=false \
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]