Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Solr: create -c tweets -d tweet_configs -s 1 -rf 1. What is the purpose of this line of code?

avatar
Expert Contributor

I've been following the tutorial : http://hortonworks.com/hadoop-tutorial/how-to-refine-and-visualize-sentiment-data/

I came across a sentence that said " Add a collection called tweets” using create -c tweets -d tweet_configs -s 1 -rf 1.

What does -c , -d mean?

Thanks,

Keerthana

1 ACCEPTED SOLUTION
4 REPLIES 4

avatar
Master Mentor

avatar
Master Mentor

@keerthana gajarajakumar

-c-collection <name>For linkconfig: name of the collection.
-d-confdir <path>For upconfig: a directory of configuration files. For downconfig: the destination of files pulled from Zookeeper

avatar
Expert Contributor

Thanks Neeraj.

avatar
New Member

Hi

I'm also having difficulties with this command - when i try to create a collection called 'tweets' i get Specified configuration directory tweet_configs not found!

[solr@sandbox dashboards]$ /opt/lucidworks-hdpsearch/solr/bin/solr create -c tweets -d tweet_configs -s 1 -rf 1 -p 8983

Specified configuration directory tweet_configs not found!

Please help.

Thanks!