我正在按照Cloudera在此页面中提供的教程 - Preparing to Index Data with Cloudera Search。我几乎成功了,但最后当我尝试使用批量mapreducer索引样本数据时,我收到以下错误
java.lang.Exception: org.kitesdk.morphline.api.MorphlineRuntimeException: org.apache.solr.core.SolrResourceNotFoundException: Can't find resource 'solrconfig.xml' in classpath or '/usr/lib/solr/file:/tmp/hadoop-root/mapred/local/1494416503755/0c48826c-2ae0-4549-91a3-88807f5c6153.solr.zip/conf'
at org.apache.hadoop.mapred.LocalJobRunner$Job.runTasks(LocalJobRunner.java:489)
at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:549)
Caused by: org.kitesdk.morphline.api.MorphlineRuntimeException: org.apache.solr.core.SolrResourceNotFoundException: Can't find resource 'solrconfig.xml' in classpath or '/usr/lib/solr/file:/tmp/hadoop-root/mapred/local/1494416503755/0c48826c-2ae0-4549-91a3-88807f5c6153.solr.zip/conf'
at org.kitesdk.morphline.solr.SolrLocator.getIndexSchema(SolrLocator.java:209)
at org.apache.solr.hadoop.morphline.MorphlineMapRunner.<init>(MorphlineMapRunner.java:141)
at org.apache.solr.hadoop.morphline.MorphlineMapper.setup(MorphlineMapper.java:75)
at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:142)
at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:787)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:341)
at org.apache.hadoop.mapred.LocalJobRunner$Job$MapTaskRunnable.run(LocalJobRunner.java:270)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.solr.core.SolrResourceNotFoundException: Can't find resource 'solrconfig.xml' in classpath or '/usr/lib/solr/file:/tmp/hadoop-root/mapred/local/1494416503755/0c48826c-2ae0-4549-91a3-88807f5c6153.solr.zip/conf'
at org.apache.solr.core.SolrResourceLoader.openResource(SolrResourceLoader.java:362)
at org.apache.solr.core.SolrResourceLoader.openConfig(SolrResourceLoader.java:308)
at org.apache.solr.core.Config.<init>(Config.java:117)
at org.apache.solr.core.Config.<init>(Config.java:87)
at org.apache.solr.core.SolrConfig.<init>(SolrConfig.java:167)
at org.kitesdk.morphline.solr.SolrLocator.getIndexSchema(SolrLocator.java:201)
... 11 more
我也试过提供--solr-home-dir
参数(指向conf/solrconfig.xml
)。但它没有用。我运行的最后一个命令是在这个页面中Using MapReduce Batch Indexing with Cloudera Search。
请帮帮我。
谢谢。
答案 0 :(得分:0)
在最终命令中用conf.cloudera.hdfs
替换conf.cloudera.yarn
后,错误消失了。希望它可以帮到某人。