Database Reference
In-Depth Information
To supply additional configuration options to your job, you need to pass them as trailing arguments on the
command line, after a double-hyphen:
MRRunner -dll MyDll -class MyClass -- extraArg1 extraArg2
These additional arguments are provided to your job via a context object that is available to all methods on
HadoopJob<> .
When you develop a project using the .NET SDK, the MRRunner utility will be automatically deployed in a folder
called MRLib in your project directory, as illustrated in Figure 5-7 . It is basically a Windows executable (.exe) file.
Figure 5-7. MRRunner.exe utility
You can launch a command prompt and run the MRRunner.exe with appropriate arguments. Specify the
HadoopClient.dll from the project's bin\debug folder as in the following example:
E:\HadoopClient\HadoopClient\MRLib>MRRunner -dll "E:\HadoopClient\HadoopClient\bin\Debug\
HadoopClient.dll"
in case you are using a release build for your project, you will find the HadoopClient.dll file in your project's
bin\release folder. You also need to change the project output type to Class library to generate the HadoopClient.dll
from the project ➤ properties menu.
Note
On successful completion of the job, you will see output similar to Listing 5-15.
Listing 5-15. MRRunner output
Output folder exists.. deleting.
File dependencies to include with job:
[Auto-detected] C :\windows\Microsoft.Net\assembly\GAC_MSIL\PresentationFramework\
v4.0_4.0.0.0__31bf3856ad364e35\PresentationFramework.dll
[Auto-detected] C:\windows\Microsoft.Net\assembly\GAC_32\PresentationCore\
 
 
Search WWH ::




Custom Search