helenyugithub commented on issue #25505: [SPARK-28776][ML] SparkML Writer gets 
hadoop conf from session state
URL: https://github.com/apache/spark/pull/25505#issuecomment-523007466
 
 
   Hi @srowen 
   I believe the general convention is to use the session state's hadoop conf 
(see 
https://github.com/apache/spark/blob/39577a27a0b58fd75b41d24b10012447748b7ee9/examples/src/main/scala/org/apache/spark/examples/DFSReadWriteTest.scala#L115)
 . This also prevents correctness issues when multiple spark sessions are 
sharing the same context and they want to have their own hadoop conf (for 
example, that contains an authentication key that shouldn't be shared across 
users)

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to