text
stringlengths 0
834k
|
|---|
echo.
|
echo Wildcards are supported when copying from local, trailing only and must be quoted.
|
echo.
|
echo rm deletes files or folders on Zookeeper
|
echo -r Recursively delete if ^<path^> is a directory. Command will fail if ^<path^>
|
echo has children and -r is not specified. Optional
|
echo ^<path^> : [zk:]/path/to/zk/node. ^<path^> may not be the root ('/')
|
echo.
|
echo mv moves (renames) znodes on Zookeeper
|
echo ^<src^>, ^<dest^> : Zookeeper nodes, the 'zk:' prefix is optional.
|
echo If ^<dest^> ends with '/', then ^<dest^> will be a parent znode
|
echo and the last element of the ^<src^> path will be appended.
|
echo Zookeeper nodes CAN have data, so moving a single file to a parent znode
|
echo will overlay the data on the parent Znode so specifying the trailing slash
|
echo is important.
|
echo.
|
echo ls lists the znodes on Zookeeper
|
echo -r recursively descends the path listing all znodes. Optional
|
echo ^<path^>: The Zookeeper path to use as the root.
|
echo.
|
echo Only the node names are listed, not data
|
echo.
|
echo mkroot makes a znode in Zookeeper with no data. Can be used to make a path of arbitrary
|
echo depth but primarily intended to create a 'chroot'.
|
echo.
|
echo ^<path^>: The Zookeeper path to create. Leading slash is assumed if not present.
|
echo Intermediate nodes are created as needed if not present.
|
echo.
|
goto done
|
:zk_short_usage
|
IF NOT ""!ERROR_MSG!""=="""" (
|
echo ERROR: !ERROR_MSG!
|
echo.
|
)
|
echo Usage: solr zk upconfig^|downconfig -d ^<confdir^> -n ^<configName^> [-z zkHost]
|
echo solr zk cp [-r] ^<src^> ^<dest^> [-z zkHost]
|
echo solr zk rm [-r] ^<path^> [-z zkHost]
|
echo solr zk mv ^<src^> ^<dest^> [-z zkHost]
|
echo solr zk ls [-r] ^<path^> [-z zkHost]
|
echo solr zk mkroot ^<path^> [-z zkHost]
|
echo.
|
IF ""%ZK_FULL%""==""true"" (
|
goto zk_full_usage
|
) ELSE (
|
echo Type bin/solr zk -help for full usage help
|
)
|
goto done
|
:auth_usage
|
echo Usage: solr auth enable [-type basicAuth] -credentials user:pass [-blockUnknown ^<true^|false^>] [-updateIncludeFileOnly ^<true^|false^>] [-V]
|
echo solr auth enable [-type basicAuth] -prompt ^<true^|false^> [-blockUnknown ^<true^|false^>] [-updateIncludeFileOnly ^<true^|false^>] [-V]
|
echo solr auth disable [-updateIncludeFileOnly ^<true^|false^>] [-V]
|
echo.
|
echo Updates or enables/disables authentication. Must be run on the machine hosting Solr.
|
echo.
|
echo -type ^<type^> The authentication mechanism to enable. Defaults to 'basicAuth'.
|
echo.
|
echo -credentials ^<user:pass^> The username and password of the initial user
|
echo Note: only one of -prompt or -credentials must be provided
|
echo.
|
echo -prompt ^<true^|false^> Prompts the user to provide the credentials
|
echo Note: only one of -prompt or -credentials must be provided
|
echo.
|
echo -blockUnknown ^<true^|false^> When true, this blocks out access to unauthenticated users. When not provided,
|
echo this defaults to false (i.e. unauthenticated users can access all endpoints, except the
|
echo operations like collection-edit, security-edit, core-admin-edit etc.^). Check the reference
|
echo guide for Basic Authentication for more details.
|
echo.
|
echo -updateIncludeFileOnly ^<true^|false^> Only update the solr.in.sh or solr.in.cmd file, and skip actual enabling/disabling""
|
echo authentication (i.e. don't update security.json^)""
|
echo.
|
echo -z zkHost Zookeeper connection string. Unnecessary if ZK_HOST is defined in solr.in.cmd.
|
echo.
|
echo -d ^<dir^> Specify the Solr server directory""
|
echo.
|
echo -s ^<dir^> Specify the Solr home directory. This is where any credentials or authentication""
|
echo configuration files (e.g. basicAuth.conf^) would be placed.""
|
echo.
|
echo -V Enable more verbose output
|
echo.
|
goto done
|
REM Really basic command-line arg parsing
|
:parse_args
|
set ""arg=%~1""
|
set ""firstTwo=%arg:~0,2%""
|
IF ""%SCRIPT_CMD%""=="""" set SCRIPT_CMD=start
|
IF [%1]==[] goto process_script_cmd
|
IF ""%1""==""-help"" goto usage
|
IF ""%1""==""-usage"" goto usage
|
IF ""%1""==""/?"" goto usage
|
IF ""%1""==""-f"" goto set_foreground_mode
|
IF ""%1""==""-foreground"" goto set_foreground_mode
|
IF ""%1""==""-V"" goto set_verbose
|
IF ""%1""==""-verbose"" goto set_verbose
|
IF ""%1""==""-v"" goto set_debug
|
IF ""%1""==""-q"" goto set_warn
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.