Hi all, I met a issue when using plugin script( for elasticsearch 0.90.2)
shell command:
./bin/plugin --url
https://oss-es-plugins.s3.amazonaws.com/elasticsearch-jetty/elasticsearch-jetty-0.90.2.zip
*
*
*
the output is:
Usage:
-u, --url [plugin location] : Set exact URL to download the
plugin from
-i, --install [plugin name] : Downloads and installs listed
plugins []
-r, --remove [plugin name] : Removes listed plugins
-l, --list : List installed plugins
-v, --verbose : Prints verbose messages
-h, --help : Prints this help message
[*] Plugin name could be:
elasticsearch/plugin/version for official elasticsearch plugins
(download from download.elasticsearch.org)
groupId/artifactId/version for community plugins (download from
maven central or oss sonatype)
username/repository for site plugins (download from github
master)
Message:
Command [--url] unknown.
and I tested the "-u" parameter , the output is same.
I checked the code of org.elasticsearch.plugins.PluginManager
*
*
the main method contains 2 loops , the first one handle the "-u" ,"--url"
and "-v",
the second loop handle all the other commands except the "-u", the last
if-else statements wll be ran when "-u" or "-url" is met.
if (command.equals("-i") || command.equals("--install")
......
} else if (command.equals("-r") || command.equals("--remove")
......
} else if (command.equals("-l") || command.equals("--list")) {
......
} else if (command.equals("-h") || command.equals("--help")) {
} else {
displayHelp("Command [" + args[c] + "] unknown.");
// Unknown command. We break...
System.exit(1);
}
I compared the code from 0.90.1 to 0.90.2 , this code introduced only for
0.90.2.
Please check if it is a code error or what I was doing wrong.
Many thanks,
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.