It looks like command line tool that you are using to initiate index process, is expecting some name to solr-core with respective command line param. use -help on the command line tool that you are using and check the solr-core-name parameter key, pass that also with some value.
On Tue, Dec 13, 2016 at 5:44 AM, Manan Sheth <manan.sh...@impetus.co.in> wrote: > Hi All, > > > While working on a migration project from Solr 4 to Solr 6, I need to > reindex my data using Solr map reduce Indexer tool in offline mode with > avro data. > > While executing the map reduce indexer tool shipped with solr 6.2.1, it is > throwing error of cannot create core with empty name value. The solr > instances are running fine with new indexed are being added and modified > correctly. Below is the command that was being fired: > > > hadoop --config /etc/hadoop/conf jar > /home/impadmin/solr-6.2.1/dist/solr-map-reduce-*.jar > -D 'mapred.child.java.opts=-Xmx500m' \ > -libjars `echo /home/impadmin/solr6lib/*.jar | sed 's/ /,/g'` > --morphline-file /home/impadmin/app_quotes_morphline_actual.conf \ > --zk-host 172.26.45.71:9984 --output-dir hdfs:// > impetus-i0056.impetus.co.in:8020/user/impadmin/ > MapReduceIndexerTool/output5 \ > --collection app.quotes --log4j src/test/resources/log4j.properties > --verbose \ > "hdfs://impetus-i0056.impetus.co.in:8020/user/impadmin/ > MapReduceIndexerTool/5d63e0f8-afc1-483e-bd3f-d508c885d794-000000" > > > Below is the complete snapshot of error trace: > > > Failed to initialize record writer for org.apache.solr.hadoop. > MapReduceIndexerTool/MorphlineMapper, attempt_1479795440861_0343_r_ > 000000_0 > at org.apache.solr.hadoop.SolrRecordWriter.<init>( > SolrRecordWriter.java:128) > at org.apache.solr.hadoop.SolrOutputFormat.getRecordWriter( > SolrOutputFormat.java:163) > at org.apache.hadoop.mapred.ReduceTask$NewTrackingRecordWriter.<init> > (ReduceTask.java:540) > at org.apache.hadoop.mapred.ReduceTask.runNewReducer( > ReduceTask.java:614) > at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:389) > at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:168) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:422) > at org.apache.hadoop.security.UserGroupInformation.doAs( > UserGroupInformation.java:1709) > at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:162) > Caused by: org.apache.solr.common.SolrException: Cannot create core with > empty name value > at org.apache.solr.core.CoreDescriptor.checkPropertyIsNotEmpty( > CoreDescriptor.java:280) > at org.apache.solr.core.CoreDescriptor.<init>(CoreDescriptor.java:191) > at org.apache.solr.core.CoreContainer.create(CoreContainer.java:754) > at org.apache.solr.core.CoreContainer.create(CoreContainer.java:742) > at org.apache.solr.hadoop.SolrRecordWriter.createEmbeddedSolrServer( > SolrRecordWriter.java:163) > at > org.apache.solr.hadoop.SolrRecordWriter.<init>(SolrRecordWriter.java:121) > ... 9 more > > Additional points to note: > > > * The solrconfig and schema files are copied as is from Solr 4. > * Once collection is deployed, user can perform all operations on the > collection without any issue. > * The indexation process is working fine with the same tool on Solr 4. > > Please help. > > > Thanks, > > Manan Sheth > > ________________________________ > > > > > > > NOTE: This message may contain information that is confidential, > proprietary, privileged or otherwise protected by law. The message is > intended solely for the named addressee. If received in error, please > destroy and notify the sender. Any use of this email is prohibited when > received in error. Impetus does not represent, warrant and/or guarantee, > that the integrity of this communication has been maintained nor that the > communication is free of errors, virus, interception or interference. >