Created on 11-30-2016 07:05 PM - edited 08-19-2019 02:21 AM
I am trying to install a basic instance of Atlas with embedded HBase and Solr.
I am following the installation guide: http://atlas.incubator.apache.org/InstallationSteps.html
In the section titled: Configuring SOLR as the Indexing Backend for the Graph Repository
I have Solr running in cloud mode with 1 node, sharding = 1 and replication =1 and a collection
Based on the tutorial I ran the following command:
$SOLR_BIN/solr create -c vertex_index -d SOLR_CONF -shards #numShards -replicationFactor #replicationFactor
With ~numshards = 1 and replicationFactor =1, when I ran the command I got the following error.
How to resolve this, any help will be highly appreciated.
Thanking you in anticipation.
Created 11-30-2016 10:33 PM
Your SOLR_CONF is pointing to the wrong directory. The directory you pointed to contains all of Solr including Jars, etc. You need to point to a directory that contains your conf directory. I'm short on time so I can't look for it now, but I it should be a directory with the file solrconfig.xml and schema.xml. Let me know if that helps or if you need more info.
Created 11-30-2016 10:33 PM
Your SOLR_CONF is pointing to the wrong directory. The directory you pointed to contains all of Solr including Jars, etc. You need to point to a directory that contains your conf directory. I'm short on time so I can't look for it now, but I it should be a directory with the file solrconfig.xml and schema.xml. Let me know if that helps or if you need more info.
Created 12-01-2016 04:51 PM
@Bilal Arshad - This should work. Here is what I did. Build:
export MAVEN_OPTS="-Xmx1536m -XX:MaxPermSize=512m" && mvn clean install
I did not care about packaging above (mvn clean package -Pdist,external-hbase-solr ) but it should still work the same.
Now find the config files:
$ find . -name schema.xml ./distro/src/conf/solr/schema.xml ./distro/target/conf/solr/schema.xml $ ls ./distro/src/conf/solr/ currency.xml lang protwords.txt schema.xml solrconfig.xml stopwords.txt synonyms.txt
Now create the collection:
$ solr create -c testAtlas -d /home/me/atlas/distro/target/conf/solr -shards 1 -replicationFactor 1 -p 8984 Connecting to ZooKeeper at localhost:9984 Uploading
/home/me/atlas/distro/target/conf/solr for config testAtlas to ZooKeeper at localhost:9984
Creating new collection 'testAtlas' using command: http://HOSTNAME:8984/solr/admin/collections?action=CREATE&name=testAtlas&numShards=1&replicationFact... { "responseHeader":{ "status":0, "QTime":2691}, "success":{"":{ "responseHeader":{ "status":0, "QTime":2505}, "core":"testAtlas_shard1_replica1"}}}Created 12-01-2016 05:16 PM
@Bilal Arshad - It looks like your ..../solr-5.5.1/conf directory does not contain all of the config files. Make sure it contains solrconfig.xml along with schema.xml and the other config files for Solr. If that is not the case, then I suppose there could be a file/directory permission issue.
You should have all of these files in your conf directory:
├── currency.xml ├── lang │ └── stopwords_en.txt ├── protwords.txt ├── schema.xml ├── solrconfig.xml ├── stopwords.txt └── synonyms.txt
Created on 12-01-2016 05:22 PM - edited 08-19-2019 02:21 AM
Thank you for the description.The above mentioned files already seem to be in the conf directory.
Created 12-01-2016 06:15 PM
@Bilal Arshad Oh, I think I see the problem. Zookeeper already has some data under this configuration. Notice that it says, "re-using existing configuration directory vertex_index". That is probably from your earlier failed attempt when it failed on the jar file (binary files are not allowed). You have three options (maybe more), in this preferred order:
Leave the bad files in Zookeeper and use a different configName --- Add -n vertext_index2 to your command. This creates a new directory for configs. By default the configName is the same as your collection.
Created 12-02-2016 04:51 PM
@james.jones I tried option number 2 and it did work. Thank you for your guidance and support! 🙂
Created on 12-01-2016 01:18 PM - edited 08-19-2019 02:21 AM
@james.jones thank you for the correction. I tried pointing it to the directory you suggested but it gave me the following error: