<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Solr create collection error in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-create-collection-error/m-p/153873#M28763</link>
    <description>&lt;A rel="user" href="https://community.cloudera.com/users/2273/saurabhmcakiet.html" nodeid="2273"&gt;@Saurabh Kumar&lt;/A&gt;&lt;P&gt;Looks from the error that the configuration file -"solrconfig.xml" is not properly configured for  schema -"data_driven_schema_configs".&lt;/P&gt;&lt;P&gt;Try to see if the "solrconfig.xml" is properly configured. If you need help, then, please upload the "solrconfig.xml" which you are presently using.&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jul 2016 03:01:28 GMT</pubDate>
    <dc:creator>PARTOMIA</dc:creator>
    <dc:date>2016-07-18T03:01:28Z</dc:date>
    <item>
      <title>Solr create collection error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-create-collection-error/m-p/153869#M28759</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;when I try to create collection on Solr, it fails with this message;&lt;/P&gt;&lt;PRE&gt;Error CREATEing SolrCore 'solrCollection_shard2_replica2': Unable to create core [solrCollection_shard2_replica2] Caused by: Element type \"directoryFactory\" must be followed by either attribute specifications, \"&amp;gt;\" or \"/&amp;gt;\"."}}&lt;/PRE&gt;&lt;P&gt;I run this command;&lt;/P&gt;&lt;PRE&gt;solr create -c solrCollection -d data_driven_schema_configs -n solrConfigs -s 2 -rf 2&lt;/PRE&gt;&lt;P&gt;My config of /opt/lucidworks-hdpsearch/solr/server/solr/configsets/data_driven_schema_configs/conf/solrconfig.xml is;&lt;/P&gt;&lt;PRE&gt;&amp;lt;directoryFactory name="DirectoryFactory" class="solr.HdfsDirectoryFactory"&amp;gt;
&amp;lt;str name="solr.hdfs.home"&amp;gt;hdfs://myhdfshome:8020/user/solr&amp;lt;/str&amp;gt;
&amp;lt;str name="solr.hdfs.confdir"&amp;gt;/etc/hadoop/conf&amp;lt;/str&amp;gt;
&amp;lt;bool name="solr.hdfs.blockcache.enabled"&amp;gt;true&amp;lt;/bool&amp;gt;
&amp;lt;int name="solr.hdfs.blockcache.slab.count"&amp;gt;1&amp;lt;/int&amp;gt;
&amp;lt;bool name="solr.hdfs.blockcache.direct.memory.allocation"&amp;gt;true&amp;lt;/bool&amp;gt;
&amp;lt;int name="solr.hdfs.blockcache.blocksperbank"&amp;gt;16384&amp;lt;/int&amp;gt;
&amp;lt;bool name="solr.hdfs.blockcache.read.enabled"&amp;gt;true&amp;lt;/bool&amp;gt;
&amp;lt;bool name="solr.hdfs.nrtcachingdirectory.enable"&amp;gt;true&amp;lt;/bool&amp;gt;
&amp;lt;int name="solr.hdfs.nrtcachingdirectory.maxmergesizemb"&amp;gt;16&amp;lt;/int&amp;gt;
&amp;lt;int name="solr.hdfs.nrtcachingdirectory.maxcachedmb"&amp;gt;192&amp;lt;/int&amp;gt;
&amp;lt;/directoryFactory&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 May 2016 15:57:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-create-collection-error/m-p/153869#M28759</guid>
      <dc:creator>mustafakemal_ma</dc:creator>
      <dc:date>2016-05-18T15:57:44Z</dc:date>
    </item>
    <item>
      <title>Re: Solr create collection error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-create-collection-error/m-p/153870#M28760</link>
      <description>&lt;P&gt;Hi Mayuk,&lt;/P&gt;&lt;P&gt;The error message is meaningless to me because it evokes that the config file should be changed and you should correct the xml. However, when I tried your command purely, I got the same error and decided to correct the command instead of config file.&lt;/P&gt;&lt;P&gt;1) As you get error message from solr I believe you are under correct "bin"  directory.&lt;/P&gt;&lt;P&gt;# &amp;lt;SOLR_HOME&amp;gt;/bin/solr  ...&lt;/P&gt;&lt;P&gt;2) A little bit confused here, the question is where do you keep your config files? Let's say you keep your config files under "&amp;lt;DirOfConfigurations&amp;gt;/data_driven_schema_configs/". (May be it is "/opt/lucidworks-hdpsearch/solr/server/solr/configsets/data_driven_schema_configs/" for your setup)&lt;/P&gt;&lt;P&gt;# &amp;lt;SOLR_HOME&amp;gt;/bin/solr -c solrCollection -d /&amp;lt;DirOfConfigurations&amp;gt;/data_driven_schema_configs/ -n solrConfigs -s 2 -rf 2&lt;/P&gt;&lt;P&gt;I wish it would be helpful.&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 14:29:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-create-collection-error/m-p/153870#M28760</guid>
      <dc:creator>ikanatli</dc:creator>
      <dc:date>2016-05-23T14:29:54Z</dc:date>
    </item>
    <item>
      <title>Re: Solr create collection error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-create-collection-error/m-p/153871#M28761</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 23 May 2016 14:56:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-create-collection-error/m-p/153871#M28761</guid>
      <dc:creator>mustafakemal_ma</dc:creator>
      <dc:date>2016-05-23T14:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Solr create collection error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-create-collection-error/m-p/153872#M28762</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/10638/ikanatli.html" nodeid="10638"&gt;@ilker danyal kanatlı&lt;/A&gt; I am also getting following error, Can you please help me .&lt;/P&gt;&lt;P&gt;[solr@m1 solr]$ bin/solr create -c SolrCollection -d /opt/lucidworks-hdpsearch/solr/server/solr/configsets/data_driven_schema_configs -n mySolrConfigs -s 2 -rf 2&lt;/P&gt;&lt;P&gt;Connecting to ZooKeeper at m1.hdp22:2181,m2.hdp22:2181,w1.hdp22:2181&lt;/P&gt;&lt;P&gt;Re-using existing configuration directory mySolrConfigs&lt;/P&gt;&lt;P&gt;Creating new collection 'SolrCollection' using command:&lt;/P&gt;&lt;P&gt;&lt;A href="http://192.168.56.41:8983/solr/admin/collections?action=CREATE&amp;amp;name=SolrCollection&amp;amp;numShards=2&amp;amp;replicationFactor=2&amp;amp;maxShardsPerNode=4&amp;amp;collection.configName=mySolrConfigs" target="_blank"&gt;http://192.168.56.41:8983/solr/admin/collections?action=CREATE&amp;amp;name=SolrCollection&amp;amp;numShards=2&amp;amp;replicationFactor=2&amp;amp;maxShardsPerNode=4&amp;amp;collection.configName=mySolrConfigs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;  "responseHeader":{&lt;/P&gt;&lt;P&gt;    "status":0,&lt;/P&gt;&lt;P&gt;    "QTime":1365},&lt;/P&gt;&lt;P&gt;  "failure":{"":"org.apache.solr.client.solrj.impl.HttpSolrClient$RemoteSolrException:Error from server at &lt;A href="http://192.168.56.41:8983/solr:" target="_blank"&gt;http://192.168.56.41:8983/solr:&lt;/A&gt; Error CREATEing SolrCore 'SolrCollection_shard1_replica2': Unable to create core [SolrCollection_shard1_replica2] Caused by: Open quote is expected for attribute \"{1}\" associated with an  element type  \"name\"."}}&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 19:33:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-create-collection-error/m-p/153872#M28762</guid>
      <dc:creator>SK1</dc:creator>
      <dc:date>2016-07-15T19:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Solr create collection error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-create-collection-error/m-p/153873#M28763</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2273/saurabhmcakiet.html" nodeid="2273"&gt;@Saurabh Kumar&lt;/A&gt;&lt;P&gt;Looks from the error that the configuration file -"solrconfig.xml" is not properly configured for  schema -"data_driven_schema_configs".&lt;/P&gt;&lt;P&gt;Try to see if the "solrconfig.xml" is properly configured. If you need help, then, please upload the "solrconfig.xml" which you are presently using.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jul 2016 03:01:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-create-collection-error/m-p/153873#M28763</guid>
      <dc:creator>PARTOMIA</dc:creator>
      <dc:date>2016-07-18T03:01:28Z</dc:date>
    </item>
    <item>
      <title>Re: Solr create collection error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-create-collection-error/m-p/153874#M28764</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/331/rsingh.html" nodeid="331"&gt;@Ravi&lt;/A&gt;&lt;P&gt;I have uploaded my solrconfig.xml. &lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 17:56:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-create-collection-error/m-p/153874#M28764</guid>
      <dc:creator>SK1</dc:creator>
      <dc:date>2016-07-19T17:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: Solr create collection error</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-create-collection-error/m-p/153875#M28765</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/2273/saurabhmcakiet.html"&gt;@Saurabh Kumar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Sorry for late reply, i was in a vacation. I agree what Ravi says. If solrconfig.xml(I have not dig into it yet.) has properly configured then you may look following...&lt;/P&gt;&lt;P&gt;Copy all lines of the solrconfig.xml to an empty notepad and replace all " with ” or vice versa.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2016 20:17:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-create-collection-error/m-p/153875#M28765</guid>
      <dc:creator>ikanatli</dc:creator>
      <dc:date>2016-07-27T20:17:44Z</dc:date>
    </item>
  </channel>
</rss>

