Example of how to avoid the error below when running mlcp tasks in windows
java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries.
at org.apache.hadoop.util.Shell.getQualifiedBinPath(Shell.java:355)
at org.apache.hadoop.util.Shell.getWinUtilsPath(Shell.java:370)
at org.apache.hadoop.util.Shell.<clinit>(Shell.java:363)
at org.apache.hadoop.util.GenericOptionsParser.preProcessForWindows(GenericOptionsParser.java:438)
at org.apache.hadoop.util.GenericOptionsParser.parseGeneralOptions(GenericOptionsParser.java:484)
at org.apache.hadoop.util.GenericOptionsParser.<init>(GenericOptionsParser.java:170)
at org.apache.hadoop.util.GenericOptionsParser.<init>(GenericOptionsParser.java:153)
at com.marklogic.contentpump.ContentPump.runCommand(ContentPump.java:111)
at com.marklogic.contentpump.ContentPump.main(ContentPump.java:74)
- Create a dummy lib\bin\winutils.exe file in your project
- Define the ExtMlcpTask task class in your build.gradle that extends com.marklogic.gradle.task.MlcpTask
- Use the ExtMlcpTask task class when creating your mlcp tasks