File tree 1 file changed +7
-1
lines changed
src/csharp/Microsoft.Spark/Utils
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ internal static Assembly ResolveAssembly(string assemblyName)
79
79
string simpleAsmName = new AssemblyName ( assemblyName ) . Name ;
80
80
foreach ( string extension in s_extensions )
81
81
{
82
- var assemblyFileName = $ "{ simpleAsmName } { extension } ";
82
+ string assemblyFileName = $ "{ simpleAsmName } { extension } ";
83
83
if ( TryLoadAssembly ( assemblyFileName , ref assembly ) )
84
84
{
85
85
s_assemblyCache [ assemblyName ] = assembly ;
@@ -96,6 +96,12 @@ internal static Assembly ResolveAssembly(string assemblyName)
96
96
/// 1) The working directory
97
97
/// 2) The directory of the application
98
98
/// </summary>
99
+ /// <remarks>
100
+ /// The probing order is important in cases when spark is launched on
101
+ /// YARN. The executors are run inside 'containers' and files that are passed
102
+ /// via 'spark-submit --files' will be pushed to these 'containers'. This path
103
+ /// is the working directory and the 1st probing path that will be checked.
104
+ /// </remarks>
99
105
/// <param name="assemblyFileName">Name of the file that contains the assembly</param>
100
106
/// <param name="assembly">The loaded assembly.</param>
101
107
/// <returns>True if assembly is loaded, false otherwise.</returns>
You can’t perform that action at this time.
0 commit comments