All Apps and Add-ons
Highlighted

Error in 'SearchParser': Hadoop Ops App

New Member

Hi,

We are getting this error after installing "Hadoop ops" app.

Error in 'SearchParser': Could not find macro 'hadoopmrsummarytable' that takes 0 arguments. Expecting stanza name 'hadoopmrsummarytable'.
Error in 'SearchParser': Could not find macro 'hadooptasksummarytable' that takes 0 arguments. Expecting stanza name 'hadooptasksummarytable'.
Error in 'SearchParser': Could not find macro 'hadoopjobsummarytable' that takes 0 arguments. Expecting stanza name 'hadoopjobsummarytable'.

We had installed splunkforhadoopops & SplunkTAhadoopops in /opt/splunk/etc/apps

We had added /opt/splunk/etc/apps/splunkforhadoopops/local/inputs.conf with the help of inputs.conf.cdh3.example.

Edited /opt/splunk/etc/apps/SplunkTAhadoopops/default/eventgen.conf with correct and splunk port and password.

But still we are getting the error.

Any thoughts?

Thanks

0 Karma
Highlighted

Re: Error in 'SearchParser': Hadoop Ops App

Splunk Employee
Splunk Employee

Sorry that you are having trouble. Can you provide some more information?

0 Karma
Highlighted

Re: Error in 'SearchParser': Hadoop Ops App

New Member

Splunk: 5.0.3
splunkapphadoopops-1.1.1-158225
Hadoop: Cloudera CDH3u1
OS: Ubuntu 32 bit. Is there any issues when we use 32 bit OS?

0 Karma
Highlighted

Re: Error in 'SearchParser': Hadoop Ops App

Splunk Employee
Splunk Employee

Can you paste the related parts from '/opt/splunk/etc/apps/SA-HadoopOps/default/macros.conf'?

0 Karma
Highlighted

Re: Error in 'SearchParser': Hadoop Ops App

New Member

Hi lyuanlai,

Thank you for your quick responses.

Now we are getting different error.

"Lookup table 'hadoophost2maxcpu' is empty.
No matching fields exist
Lookup table 'hadoop
host2mapred' is empty.
No matching fields exist"

0 Karma
Highlighted

Re: Error in 'SearchParser': Hadoop Ops App

Splunk Employee
Splunk Employee

a quickfix worth trying is running this search query in 'HadoopOps'->'Search'

"|savedsearch _generatelookuphadoophost2hdfs"

You should see a message like "Results written to file '/opt/splunk/etc/apps/SA-HadoopOps/lookups/hadoop_host2hdfs.csv'". If this works, same trick for host2mapred:

"|savedsearch _generatelookuphadoophost2mapred"

View solution in original post

Highlighted

Re: Error in 'SearchParser': Hadoop Ops App

New Member

saved search "_generatelookuphadoophost2hdfs" gives a msg "Results written to file '/opt/splunk/etc/apps/SA-HadoopOps/lookups/hadoop_host2hdfs.csv'"

But saved search "_generatelookuphadoophost2mapred" results:
"No results. Created empty file 'hadoop_host2mapred'
No matching fields exist"

0 Karma
Highlighted

Re: Error in 'SearchParser': Hadoop Ops App

Splunk Employee
Splunk Employee

Run this search (enclose with backquotes, this is a macro):
"hadoop_mapred_config"

Do you see any results?

0 Karma
Highlighted

Re: Error in 'SearchParser': Hadoop Ops App

New Member

There is no results

0 Karma
Highlighted

Re: Error in 'SearchParser': Hadoop Ops App

Splunk Employee
Splunk Employee

check if mapred-site.xml is being monitored, if not, add it then re-run the savedsearch

0 Karma