Plugin script doesn't works fine(es 0.90.2)

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.

There was a commit regarding the plugin manager for 0.90.3, so I am
assuming it is your issue:

You can always compile a local version of the PluginManager using the
elasticsearch jar and running it with the class file first in your
classpath.

--
Ivan

On Sun, Jun 30, 2013 at 7:36 PM, zerocool vbzerocool@gmail.com wrote:

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.

--
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.

Yeah. Ivan is right. This is the issue.

You can download the zip file and unzip it under plugins/jetty dir.

It will be loaded by elasticsearch when restarting.

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr | @scrutmydocs

Le 1 juil. 2013 à 05:42, Ivan Brusic ivan@brusic.com a écrit :

There was a commit regarding the plugin manager for 0.90.3, so I am assuming it is your issue: PluginManager fails with unknown command when passing url or verbose parameters · Issue #3245 · elastic/elasticsearch · GitHub

You can always compile a local version of the PluginManager using the elasticsearch jar and running it with the class file first in your classpath.

--
Ivan

On Sun, Jun 30, 2013 at 7:36 PM, zerocool vbzerocool@gmail.com wrote:
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.

--
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.

Thanks for you reply.

2013/7/1 Ivan Brusic [via Elasticsearch Users] <
ml-node+s115913n4037291h92@n3.nabble.com>

There was a commit regarding the plugin manager for 0.90.3, so I am
assuming it is your issue:
PluginManager fails with unknown command when passing url or verbose parameters · Issue #3245 · elastic/elasticsearch · GitHub

You can always compile a local version of the PluginManager using the
elasticsearch jar and running it with the class file first in your
classpath.

--
Ivan

On Sun, Jun 30, 2013 at 7:36 PM, zerocool <[hidden email]http://user/SendEmail.jtp?type=node&node=4037291&i=0

wrote:

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 [hidden email]http://user/SendEmail.jtp?type=node&node=4037291&i=1
.

For more options, visit https://groups.google.com/groups/opt_out.

--
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 [hidden email]http://user/SendEmail.jtp?type=node&node=4037291&i=2
.

For more options, visit https://groups.google.com/groups/opt_out.


If you reply to this email, your message will be added to the discussion
below:

http://elasticsearch-users.115913.n3.nabble.com/plugin-script-doesn-t-works-fine-es-0-90-2-tp4037289p4037291.html
To start a new topic under Elasticsearch Users, email
ml-node+s115913n115913h74@n3.nabble.com
To unsubscribe from Elasticsearch Users, click herehttp://elasticsearch-users.115913.n3.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=115913&code=dmJ6ZXJvY29vbEBnbWFpbC5jb218MTE1OTEzfDk1NDU4NzMxMA==
.
NAMLhttp://elasticsearch-users.115913.n3.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html!nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers!nabble%3Aemail.naml-instant_emails!nabble%3Aemail.naml-send_instant_email!nabble%3Aemail.naml

--
Jason You @Chengdu China