Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Naman Nigam namannigam-zz

🎯
Focusing
View GitHub Profile
View gist:492dc626d35cf7a069934b127373df70
@400000005f75e50221cdbd6c [01 Oct 2020 19:47:28] ERROR jobs.ServerJob - Error in job for server: Server [host=gap-usl-spark-worker-1309500, port=22223, url=service:jmx:rmi:///jndi/rmi://gap-usl-spark-worker-1309500:22223/jmxrmi, cronExpression=null, numQueryThreads=1]
@400000005f75e50221cdd0f4 java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: gap-usl-spark-worker-1309500; nested exception is:
@400000005f75e50221ce78ec java.net.ConnectException: Connection refused]
@400000005f75e50221ce80bc at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:369)
@400000005f75e50221ce84a4 at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:270)
@400000005f75e50221cea3e4 at com.googlecode.jmxtrans.util.JmxUtils.getServerConnection(JmxUtils.java:291)
@400000005f75e50221cea7cc at com.googlecode.jmxtrans.util.JmxConnectionFactory.makeObject(JmxConnectionFactory
View maven compiler logs
[DEBUG] Configuring mojo 'org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile' with basic configurator -->
[DEBUG] (f) basedir = /Users/naman.nigam/Desktop/namannigam/forty-bits-of-java
[DEBUG] (f) buildDirectory = /Users/naman.nigam/Desktop/namannigam/forty-bits-of-java/target
[DEBUG] (f) compilePath = [/Users/naman.nigam/Desktop/namannigam/forty-bits-of-java/target/classes, /Users/naman.nigam/.m2/repository/org/projectlombok/lombok/1.18.10/lombok-1.18.10.jar, /Users/naman.nigam/.m2/repository/org/mapstruct/mapstruct-processor/1.3.1.Final/mapstruct-processor-1.3.1.Final.jar, /Users/naman.nigam/.m2/repository/org/mongodb/mongo-java-driver/3.10.0/mongo-java-driver-3.10.0.jar, /Users/naman.nigam/.m2/repository/org/openjdk/jol/jol-core/0.10/jol-core-0.10.jar, /Users/naman.nigam/.m2/repository/org/hdrhistogram/HdrHistogram/2.1.12/HdrHistogram-2.1.12.jar]
....
[DEBUG] Classpath:
[DEBUG] /Users/naman.nigam/Desktop/namannigam/forty-bits-of-java/target/classes
[DEBUG] /Users/naman.nigam/.m2/repositor
View Benchmarking Splitter Vs Java split
# JMH version: 1.22
# VM version: JDK 1.8.0_211, Java HotSpot(TM) 64-Bit Server VM, 25.211-b12
# VM invoker: /Library/Java/JavaVirtualMachines/jdk1.8.0_211.jdk/Contents/Home/jre/bin/java
# VM options: <none>
# Warmup: 5 iterations, 10 s each
# Measurement: 25 iterations, 2 s each, 1000 calls per op
# Timeout: 10 min per iteration
# Threads: 1 thread, will synchronize iterations
# Benchmark mode: Throughput, ops/time
# Benchmark: com.flipkart.engage.SplitterBenchmark.guavaSplitter
View gist:20fbaad435e84dd3260b7a01a337b0c2
timestamp=2017-11-30 17:31:27.801|logId=|url=|class=c.f.p.r.i.h.HystrixMetricsStreamServlet|thread=Jetty-Listener-9002|msg=Failed to write. Will stop polling.
java.io.IOException: Broken pipe
at sun.nio.ch.FileDispatcherImpl.write0(Native Method) ~[?:1.8.0_60]
at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47) ~[?:1.8.0_60]
at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:93) ~[?:1.8.0_60]
at sun.nio.ch.IOUtil.write(IOUtil.java:51) ~[?:1.8.0_60]
at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:471) ~[?:1.8.0_60]
at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:270) ~[org.eclipse.jetty.jetty-io-9.4.1.v20170120.jar:9.4.1.v20170120]
at org.eclipse.jetty.io.WriteFlusher.flush(WriteFlusher.java:429) ~[org.eclipse.jetty.jetty-io-9.4.1.v20170120.jar:9.4.1.v20170120]
at org.eclipse.jetty.io.WriteFlusher.completeWrite(WriteFlusher.java:384) ~[org.eclipse.jetty.jetty-io-9.4.1.v20170120.jar:9.4.1.v20170120]