Splunk Search

Splunk Memory error with YARN

aaron_harris
Engager

When running a search in splunk such as 'index=syslog date_hour=12' we get the below error to do with memory configurations, however amendments to the Virtual Index provider's memory settings don't seem to have any affect.

com.splunk.mr.JobStartException: Failed to start MapReduce job. Please consult search.log for more information. Message: [ Failed to start MapReduce job,  name=SPLK_splunk_1464947571.2_0 ] and [ org.apache.hadoop.yarn.exceptions.InvalidResourceRequestException: Invalid resource request, requested memory < ​0, or requested memory > max configured, requestedMemory=1536, maxMemory=512

Indexes.conf configuration file contains below

[provider:test]
vix.command.arg.3 = $SPLUNK_HOME/bin/jars/SplunkMR-hy2.jar
vix.env.HADOOP_HOME = /usr/hdp/current/hadoop-client
vix.env.JAVA_HOME = /usr/lib/jvm/jre-1.8.0
vix.family = hadoop
vix.fs.default.name = hdfs://{{hdfs_namenode_fqdn}}:8020
vix.hadoop.security.authorization = 0
vix.mapreduce.framework.name = yarn
vix.yarn.resourcemanager.address={{hdfs_resourcemanager_fqdn}}:8050
vix.yarn.resourcemanager.scheduler.address={{hdfs_resourcemanager​_fqdn}}:8030
vix.mapred.job.map.memory.mb = 256
vix.mapred.job.reduce.memory.mb = 128​
vix.mapreduce.map.memory.mb=256
vix.mapreduce.reduce.memory.mb=128
vix.output.buckets.max.network.bandwidth = 0
vix.splunk.home.hdfs = /hunk/virt_indexes

[syslog]
vix.input.1.path = /syslog/...
vix.provider = test    
Tags (3)
0 Karma

rdagan_splunk
Splunk Employee
Splunk Employee

Since you are using Yarn, try and change the value of the flag vix.mapreduce.map.memory.mb instead of vix.mapred.job.map.memory.mb
Hadoop version 1 uses mapred and Hadoop version 2 (yarn) uses mapreduce

0 Karma

aaron_harris
Engager

Thanks for the response, have tried adding the following lines to the indexes.conf file but still get the same error when searching in Splunk.

vix.mapreduce.map.memory.mb=256
vix.mapreduce.reduce.memory.mb=128

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Casting Call: Compete in Cyber Games

Lights, Camera, SecOps: Apply to Compete in Cyber Games     Think you have what it takes to beat the clock? ...

Data Management Digest – June 2026

Welcome to the June 2026 edition of Data Management Digest! This month’s update is short and sweet, with a ...

Think Like an Architect: Introducing the Splunk Certified Cybersecurity Defense ...

In cybersecurity, defenders respond to threats. Architects design the systems that stop them.    As ...