text
stringlengths 0
834k
|
|---|
-classpath ""%DEFAULT_SERVER_DIR%\solr-webapp\webapp\WEB-INF\lib\*;%DEFAULT_SERVER_DIR%\lib\ext\*"" ^
|
org.apache.solr.util.SolrCLI !ZK_OP! -zkHost !ZK_HOST! -src !ZK_SRC! -dst !ZK_DST! -recurse !ZK_RECURSE! %ZK_VERBOSE%
|
) ELSE IF ""!ZK_OP!""==""mv"" (
|
IF ""%ZK_SRC%""=="""" (
|
set ERROR_MSG=""<src> must be specified for 'mv' command""
|
goto zk_short_usage
|
)
|
IF ""%ZK_DST%""=="""" (
|
set ERROR_MSG=""<dest> must be specified for 'mv' command""
|
goto zk_short_usage
|
)
|
""%JAVA%"" %SOLR_SSL_OPTS% %AUTHC_OPTS% %SOLR_ZK_CREDS_AND_ACLS% -Dsolr.install.dir=""%SOLR_TIP%"" ^
|
-Dlog4j.configurationFile=""file:///%DEFAULT_SERVER_DIR%\resources\log4j2-console.xml"" ^
|
-classpath ""%DEFAULT_SERVER_DIR%\solr-webapp\webapp\WEB-INF\lib\*;%DEFAULT_SERVER_DIR%\lib\ext\*"" ^
|
org.apache.solr.util.SolrCLI !ZK_OP! -zkHost !ZK_HOST! -src !ZK_SRC! -dst !ZK_DST! %ZK_VERBOSE%
|
) ELSE IF ""!ZK_OP!""==""rm"" (
|
IF ""%ZK_SRC""=="""" (
|
set ERROR_MSG=""Zookeeper path to remove must be specified when using the 'rm' command""
|
goto zk_short_usage
|
)
|
""%JAVA%"" %SOLR_SSL_OPTS% %AUTHC_OPTS% %SOLR_ZK_CREDS_AND_ACLS% -Dsolr.install.dir=""%SOLR_TIP%"" ^
|
-Dlog4j.configurationFile=""file:///%DEFAULT_SERVER_DIR%\resources\log4j2-console.xml"" ^
|
-classpath ""%DEFAULT_SERVER_DIR%\solr-webapp\webapp\WEB-INF\lib\*;%DEFAULT_SERVER_DIR%\lib\ext\*"" ^
|
org.apache.solr.util.SolrCLI !ZK_OP! -zkHost !ZK_HOST! -path !ZK_SRC! -recurse !ZK_RECURSE! %ZK_VERBOSE%
|
) ELSE IF ""!ZK_OP!""==""ls"" (
|
IF ""%ZK_SRC""=="""" (
|
set ERROR_MSG=""Zookeeper path to remove must be specified when using the 'ls' command""
|
goto zk_short_usage
|
)
|
""%JAVA%"" %SOLR_SSL_OPTS% %AUTHC_OPTS% %SOLR_ZK_CREDS_AND_ACLS% -Dsolr.install.dir=""%SOLR_TIP%"" ^
|
-Dlog4j.configurationFile=""file:///%DEFAULT_SERVER_DIR%\resources\log4j2-console.xml"" ^
|
-classpath ""%DEFAULT_SERVER_DIR%\solr-webapp\webapp\WEB-INF\lib\*;%DEFAULT_SERVER_DIR%\lib\ext\*"" ^
|
org.apache.solr.util.SolrCLI !ZK_OP! -zkHost !ZK_HOST! -path !ZK_SRC! -recurse !ZK_RECURSE! %ZK_VERBOSE%
|
) ELSE IF ""!ZK_OP!""==""mkroot"" (
|
IF ""%ZK_SRC""=="""" (
|
set ERROR_MSG=""Zookeeper path to create must be specified when using the 'mkroot' command""
|
goto zk_short_usage
|
)
|
""%JAVA%"" %SOLR_SSL_OPTS% %AUTHC_OPTS% %SOLR_ZK_CREDS_AND_ACLS% -Dsolr.install.dir=""%SOLR_TIP%"" ^
|
-Dlog4j.configurationFile=""file:///%SOLR_SERVER_DIR%\resources\log4j2-console.xml"" ^
|
-classpath ""%DEFAULT_SERVER_DIR%\solr-webapp\webapp\WEB-INF\lib\*;%DEFAULT_SERVER_DIR%\lib\ext\*"" ^
|
org.apache.solr.util.SolrCLI !ZK_OP! -zkHost !ZK_HOST! -path !ZK_SRC! %ZK_VERBOSE%
|
) ELSE (
|
set ERROR_MSG=""Unknown zk option !ZK_OP!""
|
goto zk_short_usage
|
)
|
goto done
|
:run_auth
|
IF ""%1""==""-help"" goto usage
|
IF ""%1""==""-usage"" goto usage
|
REM Options parsing.
|
REM Note: With the following technique of parsing, it is not possible
|
REM to have an option without a value.
|
set ""AUTH_PARAMS=%1""
|
set ""option=""
|
for %%a in (%*) do (
|
if not defined option (
|
set arg=%%a
|
if ""!arg:~0,1!"" equ ""-"" set ""option=!arg!""
|
) else (
|
set ""option!option!=%%a""
|
if ""!option!"" equ ""-d"" set ""SOLR_SERVER_DIR=%%a""
|
if ""!option!"" equ ""-s"" set ""SOLR_HOME=%%a""
|
if not ""!option!"" equ ""-s"" if not ""!option!"" equ ""-d"" (
|
set ""AUTH_PARAMS=!AUTH_PARAMS! !option! %%a""
|
)
|
set ""option=""
|
)
|
)
|
IF ""%SOLR_SERVER_DIR%""=="""" set ""SOLR_SERVER_DIR=%DEFAULT_SERVER_DIR%""
|
IF NOT EXIST ""%SOLR_SERVER_DIR%"" (
|
set ""SCRIPT_ERROR=Solr server directory %SOLR_SERVER_DIR% not found!""
|
goto err
|
)
|
IF ""%SOLR_HOME%""=="""" set ""SOLR_HOME=%SOLR_SERVER_DIR%\solr""
|
IF EXIST ""%cd%\%SOLR_HOME%"" set ""SOLR_HOME=%cd%\%SOLR_HOME%""
|
IF NOT EXIST ""%SOLR_HOME%\"" (
|
IF EXIST ""%SOLR_SERVER_DIR%\%SOLR_HOME%"" (
|
set ""SOLR_HOME=%SOLR_SERVER_DIR%\%SOLR_HOME%""
|
) ELSE (
|
set ""SCRIPT_ERROR=Solr home directory %SOLR_HOME% not found!""
|
goto err
|
)
|
)
|
if ""!AUTH_PORT!""=="""" (
|
for /f ""usebackq"" %%i in (`dir /b ""%SOLR_TIP%\bin"" ^| findstr /i ""^solr-.*\.port$""`) do (
|
set SOME_SOLR_PORT=
|
For /F ""Delims="" %%J In ('type ""%SOLR_TIP%\bin\%%i""') do set SOME_SOLR_PORT=%%~J
|
if NOT ""!SOME_SOLR_PORT!""=="""" (
|
for /f ""tokens=2,5"" %%j in ('netstat -aon ^| find ""TCP "" ^| find "":0 "" ^| find "":!SOME_SOLR_PORT! ""') do (
|
IF NOT ""%%k""==""0"" set AUTH_PORT=!SOME_SOLR_PORT!
|
)
|
)
|
)
|
)
|
""%JAVA%"" %SOLR_SSL_OPTS% %AUTHC_OPTS% %SOLR_ZK_CREDS_AND_ACLS% -Dsolr.install.dir=""%SOLR_TIP%"" ^
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.