zhongjingxiong commented on a change in pull request #35278:
URL: https://github.com/apache/spark/pull/35278#discussion_r790167824



##########
File path: core/src/main/scala/org/apache/spark/util/Utils.scala
##########
@@ -595,7 +593,7 @@ private[spark] object Utils extends Logging {
     if (lowerSrc.endsWith(".jar")) {
       RunJar.unJar(source, dest, RunJar.MATCH_ANY)
     } else if (lowerSrc.endsWith(".zip")) {
-      FileUtil.unZip(source, dest)
+      unZip(source.getAbsoluteFile, dest)

Review comment:
       The existing zip decompression method can not retain the original 
permission information of the file, but can only retain the read-write 
permission, so the user's zip file has no execution permission after 
decompression. The current example is that there is no python or python3 
command after decompression.




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