Hi, I am trying to get Solr running with HDFS but getting the attached exception in logs when trying to create a collection. I have attached the relevant portions of solrconfig.xml and solr.in.cmd that I have modified. Could anybody point me in the right direction? What might I be doing wrong? Any links would be helpful.
The steps that I am following are as under: 1. Make reqd hdfs changes in solr.in.cmd and solrconfig.xml 2. start solr in cloud mode 3. upload configuration to zookeeper 4. create collection with solr create on the command line Thanks! -- Regards, Prashant.
-------------------------------- Changes in solr.in.cmd -------------------------------- set SOLR_OPTS=%SOLR_OPTS% -Dsolr.directoryFactory=HdfsDirectoryFactory set SOLR_OPTS=%SOLR_OPTS% -Dsolr.lock.type=hdfs set SOLR_OPTS=%SOLR_OPTS% -Dsolr.hdfs.home=hdfs://hn1-pjhado.tvbhpqtgh3judk1e5ihrx2k21d.tx.internal.cloudapp.net:8020/user/solr-data ------------------------------------------------------------------------------------------------ -------------------------------- Changes in solrconfig.xml -------------------------------- <directoryFactory name="DirectoryFactory" class="solr.HdfsDirectoryFactory"> <str name="solr.hdfs.home">hdfs://hn1-pjhado.tvbhpqtgh3judk1e5ihrx2k21d.tx.internal.cloudapp.net:8020/user/solr-data</str> <str name="solr.hdfs.confdir">/etc/hadoop/conf</str> <bool name="solr.hdfs.blockcache.enabled">true</bool> <int name="solr.hdfs.blockcache.slab.count">1</int> <bool name="solr.hdfs.blockcache.direct.memory.allocation">true</bool> <int name="solr.hdfs.blockcache.blocksperbank">16384</int> <bool name="solr.hdfs.blockcache.read.enabled">true</bool> <bool name="solr.hdfs.nrtcachingdirectory.enable">true</bool> <int name="solr.hdfs.nrtcachingdirectory.maxmergesizemb">16</int> <int name="solr.hdfs.nrtcachingdirectory.maxcachedmb">192</int> </directoryFactory> ------------------------------------------------------------------------------------------------