I'm trying to run SOLR with HDFS
 in solrconfig.xml I've written 

<directoryFactory name="DirectoryFactory" class="solr.HdfsDirectoryFactory">
          <str name="solr.hdfs.home">hdfs://<PATH_TO_NAMENODE>/solr</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> 

But, when I'm trying to create collection, I get 
"Caused by: com.google.protobuf.InvalidProtocolBufferException: Protocol
message end-group tag did not match expected tag." 

tcpdump shows, that server answers with "Bad request", I've tried to set
path to datanode instead of namenode, but got the same result.
What am I doing wrong?

P.S. I've found, that the problem can be cause of different protobuf.jar,
I've changed that jar (and hadoop-*.jar for comparability) in my SOLR libs,
but the problem didn't change.




--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-HDFS-settings-tp4165873.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to