Skip to content

Instantly share code, notes, and snippets.

@blvp
Last active September 24, 2018 14:27
Show Gist options
  • Select an option

  • Save blvp/570a8c0849c77abc87d204f04f1ba0a3 to your computer and use it in GitHub Desktop.

Select an option

Save blvp/570a8c0849c77abc87d204f04f1ba0a3 to your computer and use it in GitHub Desktop.
import java.lang.*;
import java.lang.reflect.*;
public class TestJava {
public static void main(String... args) throws Throwable {
org.apache.spark.util.Utils$ instance = org.apache.spark.util.Utils$.MODULE$;
Method method = instance.getClass().getDeclaredMethod("findLocalInetAddress");
method.setAccessible(true);
System.out.println(method.invoke(instance));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment