Full name:

com.cloudera.cdk:cdk-maven-plugin:0.9.1:run-tool

Description:

Run a Hadoop tool on the local machine.

Attributes:

  • Requires a Maven project to be executed.
  • Requires dependency resolution of artifacts in scope: runtime.

Required Parameters

Name Type Since Description
toolClass String - The tool class to run. The specified class must have a standard Java main method.
User property is: cdk.toolClass.

Optional Parameters

Name Type Since Description
addDependenciesToDistributedCache boolean - Whether to add dependencies in the runtime classpath to Hadoop's distributed cache so that they are added to the classpath for MapReduce tasks (via -libjars).
Default value is: true.
User property is: cdk.addDependenciesToDistributedCache.
args String[] - Arguments to pass to the tool, in addition to those generated by addDependenciesToDistributedCache and hadoopConfiguration.
User property is: cdk.args.
hadoopConfiguration Properties - Hadoop configuration properties. WARNING: This configuration setting is not compatible with the factory methods in DatasetRepositories because it does not alter the environment configuration. For example, if using this to modify the environment's "fs.defaultFS" property in the tool that is run by this Mojo, opening a repo by URI will continue to use the environment's default FS. Configuration properties set using this option will only affect the Configuration objects passed by ToolRunner or created by GenericOptionsParser.
User property is: cdk.hadoopConfiguration.

Parameter Details

addDependenciesToDistributedCache:

Whether to add dependencies in the runtime classpath to Hadoop's distributed cache so that they are added to the classpath for MapReduce tasks (via -libjars).
  • Type: boolean
  • Required: No
  • User Property: cdk.addDependenciesToDistributedCache
  • Default: true

args:

Arguments to pass to the tool, in addition to those generated by addDependenciesToDistributedCache and hadoopConfiguration.
  • Type: java.lang.String[]
  • Required: No
  • User Property: cdk.args

hadoopConfiguration:

Hadoop configuration properties. WARNING: This configuration setting is not compatible with the factory methods in DatasetRepositories because it does not alter the environment configuration. For example, if using this to modify the environment's "fs.defaultFS" property in the tool that is run by this Mojo, opening a repo by URI will continue to use the environment's default FS. Configuration properties set using this option will only affect the Configuration objects passed by ToolRunner or created by GenericOptionsParser.
  • Type: java.util.Properties
  • Required: No
  • User Property: cdk.hadoopConfiguration

toolClass:

The tool class to run. The specified class must have a standard Java main method.
  • Type: java.lang.String
  • Required: Yes
  • User Property: cdk.toolClass

Back to top

Version: 0.9.1. Last Published: 2014-01-14.

Reflow Maven skin by Andrius Velykis.