识别jar是否含有某个类

识别某个目录下面的所有jar

ls *.jar | while read jarfile; do
    echo "$jarfile"
    jar -tf $jarfile | grep "JobConf"
done

具体某个jar

jar -tf spark-fi-plugin_2.11-2.4.5-hw-ei-310012.jar | grep AdvancedTableMapping

你可能感兴趣的:(jar,java,大数据)