Hi just configured HDFS + Solr  when am starting solr am getting error
message like this 

ERROR org.apache.solr.core.CoreContainer  – Unable to create core:
collection1
org.apache.solr.common.SolrException: Problem creating directory:
hdfs://127.0.0.1:10001/home/hadoop/hadoop-datastore/tmp/dfs/solr
        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:834)
        at org.apache.solr.core.SolrCore.<init>(SolrCore.java:625)
        at
org.apache.solr.core.CoreContainer.createFromLocal(CoreContainer.java:557)
        at org.apache.solr.core.CoreContainer.create(CoreContainer.java:592)
        at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:271)
        at org.apache.solr.core.CoreContainer$1.call(CoreContainer.java:263)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at 
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
        at java.lang.Thread.run(Thread.java:722)


And this is my solrconfig.xml 

<directoryFactory name="DirectoryFactory" class="solr.HdfsDirectoryFactory">
          <str
name="solr.hdfs.home">hdfs://127.0.0.1:10001/home/hadoop/hadoop-datastore/tmp/dfs/solr</str>
          <str name="solr.hdfs.confdir">/home/hadoop/hadoop-1.2.1/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.blockcache.write.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>

Am trying to start solr with this command please let me know what need to be
changed


java -Dsolr.directoryFactory=HdfsDirectoryFactory -Dsolr.lock.type=hdfs
-Dsolr.hdfs.home=/home/hadoop/hadoop-1.2.1
-Dsolr.hdfs.confdir=/home/hadoop/hadoop-1.2.1/conf
-Dsolr.data.dir=hdfs://127.0.0.1:10001/home/hadoop/hadoop-datastore/tmp/dfs/solr
-Dsolr.updatelog=hdfs://127.0.0.1:10001/home/hadoop/hadoop-datastore/tmp/dfs/solrlog
-jar start.jar


Can you please help me to start this 

Thanks 
Kiran 

 



--
View this message in context: 
http://lucene.472066.n3.nabble.com/save-Solr-4-4-0-data-on-hadoop-2-2-0-tp4106551p4114064.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to