camper42 opened a new issue, #6437:
URL: https://github.com/apache/kyuubi/issues/6437

   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct)
   
   
   ### Search before asking
   
   - [X] I have searched in the 
[issues](https://github.com/apache/kyuubi/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Describe the bug
   
   we use JuiceFS as our HDFS. And have set `fs.jfs.impl` & 
`fs.AbstractFileSystem.jfs.impl` properly.
   
   we set `spark.sql.warehouse.dir="jfs://datalake/hive"`
   
   without `kyuubi.operation.result.saveToFile.dir=jfs://datalake/tmp`, 
everything works fine.
   
   with `kyuubi.operation.result.saveToFile.dir=jfs://datalake/tmp`, Spark 
engine failed with error `java.io.IOException: JuiceFS initialized failed for 
jfs:///`.
   
   Our friends at JuiceFS have discovered that `Paths.get` in 
`getEngineResultSavePath` may cause the problem.
   
   ```scala
   scala> import java.nio.file.Paths
   import java.nio.file.Paths
   
   scala> Paths.get("jfs://datalake/tmp", "test_engine_id").toString
   res0: String = jfs:/datalake/tmp/test_engine_id
   
   scala> Paths.get("hdfs://datalake/tmp", "test_engine_id").toString
   res1: String = hdfs:/datalake/tmp/test_engine_id
   ```
   
   Should this be fixed or saveToFile only support local dir ?
   
   ### Affects Version(s)
   
   1.9.0
   
   ### Kyuubi Server Log Output
   
   _No response_
   
   ### Kyuubi Engine Log Output
   
   ```logtalk
   24/05/30 10:51:41 WARN FileSystem: Failed to initialize fileystem 
jfs:/datalake/tmp/spark-f47b20fb20d44845898adcaa3ae3cb68/8d6fc3b6-eee9-4a66-885f-8cbd8a5365e7:
 java.io.IOException: JuiceFS initialized failed for jfs:///
   ```
   
   
   ### Kyuubi Server Configurations
   
   ```yaml
   kyuubi.operation.result.saveToFile.dir=jfs://datalake/tmp
   ```
   
   
   ### Kyuubi Engine Configurations
   
   _No response_
   
   ### Additional context
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [X] Yes. I would be willing to submit a PR with guidance from the Kyuubi 
community to fix.
   - [ ] No. I cannot submit a PR at this time.


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