Search code examples
hadoopsolrsolrcloud

Storing Index file in HDFS- Solr


I'm configuring Solr to store index data file in HDFS.

bin/solr start -e cloud -c -Dsolr.directoryFactory=HdfsDirectoryFactory -Dsolr.lock.type=hdfs -Dsolr.hdfs.home=hdfs://localhost:50070/solr

when I tried to open solr's url and I got error as "SolrCore Initialization Failures", Problem creating directory.

Screenshot of error.For reference


Solution

  • The port used seems wrong hdfs://localhost:50070/solr

    Try hdfs://localhost:8020/solr you can see the hdfs port in your core-site.xml.