可以使用下麵的代碼片段DBR細節HC集群
打印(“hadoopVersion:”+ sc._gateway.jvm.org.apache.hadoop.util.VersionInfo.getVersion())打印(“baseVersion:”+ sc._gateway.jvm.org.apache.spark.BuildInfo.sparkBranch())打印(“baseSha”+ sc._gateway.jvm.org.apache.spark.BuildInfo.apacheBase())打印(“dbrSha:”+ sc._gateway.jvm.org.apache.spark.BuildInfo.gitHash ())
可以使用下麵的代碼片段DBR細節HC集群
打印(“hadoopVersion:”+ sc._gateway.jvm.org.apache.hadoop.util.VersionInfo.getVersion())打印(“baseVersion:”+ sc._gateway.jvm.org.apache.spark.BuildInfo.sparkBranch())打印(“baseSha”+ sc._gateway.jvm.org.apache.spark.BuildInfo.apacheBase())打印(“dbrSha:”+ sc._gateway.jvm.org.apache.spark.BuildInfo.gitHash ())