标签:print findjar jar object 查看 oca unit out --
package com.jason object FIndjar { def main(args: Array[String]): Unit = { val pd = classOf[org.apache.hadoop.mapreduce.TaskID].getProtectionDomain println("===="*30) val cs = pd.getCodeSource System.out.println(cs.getLocation) } } ------------------------------ file:/C:/notos/software/spark/spark-2.1.0-bin-hadoop2.6/jars/hadoop-mapreduce-client-core-2.6.4.jar
标签:print findjar jar object 查看 oca unit out --
原文地址:https://www.cnblogs.com/jason-dong/p/9653001.html