Hi Erick Thanks for your reponse. In fact ,I create an core by send the Http request with parameters above instead of set the configuration files.
http://10.7.23.125:8080/solr/admin/cores?action=CREATE&name=testcore8_1&shard=shard13&collection.configName=myconf&schema=schema.xml&config=solrconfig3.xml&collection=collection1&dataDir=/soData/& instanceDir=heihei The core was actully created with the path which I have post above: ---------------------------------------------------------------------------------------------------------------------------------------- drwxr-xr-x - hadoop supergroup 0 2013-08-20 18:05 /solrdata/collection1/core_node16 drwxr-xr-x - hadoop supergroup 0 2013-08-20 18:05 /solrdata/collection1/core_node16/soData drwxr-xr-x - hadoop supergroup 0 2013-08-20 18:07 /solrdata/collection1/core_node16/soData/index ---------------------------------------------------------------------------------------------------------------------------------------- Sorry for that I do not make clear. Back to the point,the created core has an instanceDir -core_node16- that is not same with -heihei- which I defined through the URL. Also ,I try to define the instanceDir in the core.properties configuration file, It does not work either. Anyone has encountered this werid problem? Regards 2013/8/20 Erick Erickson <erickerick...@gmail.com> > _How_ does it "not work"? You've given us no information to go on. > > Please review: > http://wiki.apache.org/solr/UsingMailingLists > > At a guess, does your heihei directory exist and does it have > the proper configuration files? > > Best > Erick > > > On Tue, Aug 20, 2013 at 6:38 AM, YouPeng Yang <yypvsxf19870...@gmail.com > >wrote: > > > Hi All > > > > With the Solr-4.4 ,I try the Hdfs and SolrCloud. > > I create a SolrCloud core with hdfs using : > > > > > > > http://10.7.23.125:8080/solr/admin/cores?action=CREATE&name=testcore8_1&shard=shard13&collection.configName=myconf&schema=schema.xml&config=solrconfig3.xml&collection=collection1&dataDir=/soData/ > > > > Checking the Hdfs ,I find the created path: > > drwxr-xr-x - hadoop supergroup 0 2013-08-20 18:05 > > /solrdata/collection1/core_node16 > > drwxr-xr-x - hadoop supergroup 0 2013-08-20 18:05 > > /solrdata/collection1/core_node16/soData > > drwxr-xr-x - hadoop supergroup 0 2013-08-20 18:07 > > /solrdata/collection1/core_node16/soData/index > > > > > > > > > > Can i define the instanceDir by myself ,rather than using the default > > instanceDir? > > > > Also I have try the command: > > > > > http://10.7.23.125:8080/solr/admin/cores?action=CREATE&name=testcore8_1&shard=shard13&collection.configName=myconf&schema=schema.xml&config=solrconfig3.xml&collection=collection1&dataDir=/soData/& > > instanceDir=heihei > > However, It does not work... > > > > > > Regards > > > > Thankyou > > >