prashantwason commented on code in PR #8724:
URL: https://github.com/apache/hudi/pull/8724#discussion_r1203473413


##########
hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/client/common/HoodieSparkEngineContext.java:
##########
@@ -214,4 +214,17 @@ public List<Integer> 
removeCachedDataIds(HoodieDataCacheKey cacheKey) {
       return removed == null ? Collections.emptyList() : removed;
     }
   }
+
+  @Override
+  public Map<String, String> getInfo() {
+    Map<String, String> info = new HashMap<>();
+    info.put("spark.user", javaSparkContext.sparkUser());
+    info.put("spark.master", javaSparkContext.master());
+    info.put("spark.application", javaSparkContext.appName());
+    info.put("spark.version", javaSparkContext.version());
+    info.put("spark.defaultParallelism", 
String.valueOf(javaSparkContext.defaultParallelism()));
+    info.put("spark.defaultMinPartitions", 
String.valueOf(javaSparkContext.defaultMinPartitions()));
+    info.put("spark.executor.instances", 
String.valueOf(javaSparkContext.getConf().get("spark.executor.instances")));
+    return info;

Review Comment:
   Simply easier to add the entire hoodie config (without schema). 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to