Get the ZooKeeper connection string from either the zk-host command-line option or if not configured, from the 'zkHost' system property aka the 'ZK_HOST' environment variable. If neither is configured, we attempt looking it up from a running Solr instance based on the solr-url option.
(CommandLine cli)
| 297 | } |
| 298 | return value; |
| 299 | } |
| 300 | |
| 301 | /** |
| 302 | * Get the ZooKeeper connection string from either the zk-host command-line option or if not |
| 303 | * configured, from the 'zkHost' system property aka the 'ZK_HOST' environment variable. If |
| 304 | * neither is configured, we attempt looking it up from a running Solr instance based on the |
| 305 | * solr-url option. |
| 306 | */ |
| 307 | public static String getZkHost(CommandLine cli) throws Exception { |
| 308 | |
| 309 | String zkHost = getCliOptionOrPropValue(cli, CommonCLIOptions.ZK_HOST_OPTION, "zkHost", null); |