New Contributor
Posts: 5
Registered: ‎08-23-2017
Accepted Solution

How to set job name with MapReduceIndexerTool



I'm trying to set a name for indexing jobs launched with

HADOOP_OPTS="" hadoop --config /etc/hadoop/conf.cloudera.yarn \
  jar /opt/cloudera/parcels/CDH/lib/solr/contrib/mr/search-mr-*-job.jar \
  org.apache.solr.hadoop.MapReduceIndexerTool \
  -D morphlineVariable.ZK_HOST=myZKHost:2181/solr \
  -D morphlineVariable.COLLECTION=myCollection \
  -D \
  -D \
  -D \
  -D mapreduce.reduce.memory.mb=8192 \
  --output-dir hdfs://myHdfsHost:8020/tmp/my/data \
  --morphline-file morphlines/myMorphline.conf \
  --log4j \
  --go-live \
  --collection myCollection \
  --zk-host myZKHost:2181/solr \


Actual name is "org.apache.solr.hadoop.MapReduceIndexerTool/MorphlineMapper" but I'd like to change it.

I already tried setting -D but it does not change.

Posts: 1,903
Kudos: 435
Solutions: 307
Registered: ‎07-31-2013

Re: How to set job name with MapReduceIndexerTool

Currently the MapReduceIndexerTool appears to hardcode the job names, so it does not appear configurable: (and other such setJobName calls in the driver).