[GitHub] [spark] swamirishi commented on pull request #38377: [SPARK-40901][CORE] Unable to store Spark Driver logs with Absolute Hadoop based URI FS Path

2022-10-31 Thread GitBox


swamirishi commented on PR #38377:
URL: https://github.com/apache/spark/pull/38377#issuecomment-1297930510

   > QQ: Any details for the query 
[above](https://github.com/apache/spark/pull/38377#pullrequestreview-1153485176)
 ?
   
   Currently all of the logs can be only written to the default filesytem 
defined by fs.Defaultfs job config. One wouldn't be able to write the logs to 
other filesystem directly without changing the property as absolute urls are 
not supported. 


-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] [spark] swamirishi commented on pull request #38377: [SPARK-40901][CORE] Unable to store Spark Driver logs with Absolute Hadoop based URI FS Path

2022-11-02 Thread GitBox


swamirishi commented on PR #38377:
URL: https://github.com/apache/spark/pull/38377#issuecomment-1301028102

   > Makes sense ... why not simply `val dfsLogFile = new Path(rootDir, appId + 
DRIVER_LOG_FILE_SUFFIX)` instead btw ? If we do necessarily need the fully 
qualified path, we can use `fileSystem.resolvePath(new Path ...)` instead. I am 
trying to see if I am missing anything here ...
   
   Currently the logs are written based on the current working directory of the 
job when the path is relative. So the output path would go to the home 
directory of the user in the default filesystem instead of the CWD which would 
be the output log directory configured in the job. 


-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] [spark] swamirishi commented on pull request #38377: [SPARK-40901][CORE] Unable to store Spark Driver logs with Absolute Hadoop based URI FS Path

2022-11-03 Thread GitBox


swamirishi commented on PR #38377:
URL: https://github.com/apache/spark/pull/38377#issuecomment-1302754420

   > If we do necessarily need the fully qualified path, we can use 
`fileSystem.resolvePath(new Path ...)` instead.
   
   FileUtils.get().absolutePath() would resolve file path based on the 
System.property("user.dir") in the case of  while fileSystem.resolvePath will 
throw FilenotfoundException


-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] [spark] swamirishi commented on pull request #38377: [SPARK-40901][CORE] Unable to store Spark Driver logs with Absolute Hadoop based URI FS Path

2022-11-04 Thread GitBox


swamirishi commented on PR #38377:
URL: https://github.com/apache/spark/pull/38377#issuecomment-1303865771

   > Two points:
   > 
   > * spark.driver.log.dfsDir is typically expected to be a path to hdfs - so 
resolving it relative to current working directory does not make sense
   > * If `rootDir` is referencing local filesystem, it will get resolved 
relative to local fs by the `fileSystem` for `rootDir`
   
   This can be done using makeQualified API instead of resolvePath.


-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] [spark] swamirishi commented on pull request #38377: [SPARK-40901][CORE] Unable to store Spark Driver logs with Absolute Hadoop based URI FS Path

2022-11-07 Thread GitBox


swamirishi commented on PR #38377:
URL: https://github.com/apache/spark/pull/38377#issuecomment-1306060490

   @dongjoon-hyun @mridulm Any other changes I need to make on this?


-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org



[GitHub] [spark] swamirishi commented on pull request #38377: [SPARK-40901][CORE] Unable to store Spark Driver logs with Absolute Hadoop based URI FS Path

2022-11-10 Thread GitBox


swamirishi commented on PR #38377:
URL: https://github.com/apache/spark/pull/38377#issuecomment-1310773116

   @mridulm when can this be merged?


-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org