Support Questions

Find answers, ask questions, and share your expertise

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
Explorer

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!