Cloudera CDH/CDP 및 Hadoop EcoSystem, Semantic IoT등의 개발/운영 기술을 정리합니다. gooper@gooper.com로 문의 주세요.
아래에서 example/solr-webapp/WEB-INF/lib/*
org.apache.solr.cloud.ZkCLI 로 언급된것은.. 배포하는 solr-4.10.1.zip파이을 압축해제하면
ZooKeeper has a utility that lets you pass command line parameters: zkcli.bat
(for Windows environments) and zkcli.sh
(for Unix environments).
zkcli
Parameters
Short | Parameter Usage | Meaning |
---|---|---|
|
| CLI Command to be executed: |
|
| Display help text. |
|
| For |
|
| For |
|
| For |
|
| For |
|
| Run ZooKeeper internally by passing the Solr run port; only for clusters on one machine. |
|
| ZooKeeper host address. |
The short form parameter options may be specified with a single dash (eg: -c mycollection
).
The long form parameter options may be specified using either a single dash (eg: -collection mycollection
) or a double dash (eg: --collection mycollection
)
ZooKeeper CLI Examples
Below are some examples of using the zkcli
CLI:
Uploading a Configuration Directory
Put arbitrary data into a new ZK file
Put a local file into a new ZK file
Linking a Collection to a Configuration Set
Bootstrapping All the Configuration Directories in solr.xml
Scripts
There are scripts in example/cloud-scripts
that handle the classpath and class name for you if you are using Solr out of the box with Jetty. Commands then become:
댓글 0
번호 | 제목 | 날짜 | 조회 수 |
---|---|---|---|
4 | core 'gc_shard3_replica2' is already locked라는 오류가 발생할때 조치사항 | 2017.09.14 | 4740 |
3 | [Solr in Cloudera]Solr Data Directory변경 방법/절차 | 2023.04.21 | 5202 |
2 | 서버 5대에 solr 5.5.0 설치하고 index data를 HDFS에 저장/search하도록 설치/설정하는 방법 | 2016.04.08 | 5505 |
1 |
solr 6.2에 한글 형태소 분석기(arirang 6.x) 적용 및 테스트
![]() | 2017.06.27 | 5750 |