liujp opened a new issue, #7017:
URL: https://github.com/apache/incubator-gluten/issues/7017

   ### Backend
   
   VL (Velox)
   
   ### Bug description
   
   when using `--conf spark.gluten.loadLibFromJar=true` to load native 
libraries from the jar, you need to set the parameters 
   ` --conf spark.driver.extraClassPath=${GLUTEN_JAR}:${JNI_JAR} ` and `--conf 
spark.executor.extraClassPath=${GLUTEN_JAR}:${JNI_JAR} ` to add the ${JNI_JAR} 
to the extraClassPath. So, each node should have the path ${JIN_JAR}.
   
   if using `--jars ${JNI_PATH}` it can cause error in native library loading;
   <img width="1633" alt="image" 
src="https://github.com/user-attachments/assets/81bec0e6-4d9c-4876-9a49-dbaf5cd44687";>
   
   the code throw an exception is:  
   
https://github.com/apache/incubator-gluten/blob/main/gluten-core/src/main/java/org/apache/gluten/vectorized/JniLibLoader.java#L214
   
   the reason for not found the native library may be that, in 
https://github.com/apache/incubator-gluten/blob/main/gluten-core/src/main/java/org/apache/gluten/vectorized/JniLibLoader.java#L212,
 the class Loader is the ` sun.misc.Launcher$AppClassLoader` but using  `--jars 
` the loader is the loader in spark `MutableURLClassLoader`
   
   ### Spark version
   
   None
   
   ### Spark configurations
   
   _No response_
   
   ### System information
   
   _No response_
   
   ### Relevant logs
   
   _No response_


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to