forked from simonambridge/DataStaxDay
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a3753b6
commit aa05de3
Showing
3 changed files
with
19 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
#Simple script to create solr cores and reload/index with the right XML's | ||
if [ $# -eq 0 ] | ||
then | ||
echo "No arguments supplied" | ||
echo "./create_core.sh <name of your keyspace>" | ||
exit 1 | ||
fi | ||
|
||
#add the path to dsetool if dsetool is not in your path | ||
echo 'Creating Solr cores...' | ||
dsetool create_core amazon.metadata schema=schema_metadata.xml solrconfig=solr_config_metadata.xml reindex=true | ||
dsetool create_core amazon.rank schema=schema_rank.xml solrconfig=solr_config_rank.xml reindex=true | ||
dsetool create_core amazon.clicks schema=schema_clicks.xml solrconfig=solr_config_clicks.xml reindex=true | ||
dsetool create_core $1.metadata schema=schema_metadata.xml solrconfig=solr_config_metadata.xml reindex=true | ||
dsetool create_core $1.rank schema=schema_rank.xml solrconfig=solr_config_rank.xml reindex=true | ||
dsetool create_core $1.clicks schema=schema_clicks.xml solrconfig=solr_config_clicks.xml reindex=true | ||
echo 'finished creating Solr cores!' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
if [ $# -eq 0 ] | ||
then | ||
echo "No arguments supplied" | ||
echo "./create_database <name of your keyspace>" | ||
exit 1 | ||
fi | ||
python ./solr_dataloader.py $1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters