Last active
September 24, 2018 14:27
-
-
Save blvp/570a8c0849c77abc87d204f04f1ba0a3 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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