You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by vkulichenko <va...@gmail.com> on 2016/12/01 22:53:59 UTC

Re: about GAR files and task deployment

Hi,

Please properly subscribe to the mailing list so that the community can
receive email notifications for your messages. To subscribe, send empty
email to user-subscribe@ignite.apache.org and follow simple instructions in
the reply.


xjg125 wrote
> I test the DeploymentSpi  ,
> refer to the page for information about GAR files and task deployment. at
> "https://apacheignite.readme.io/docs/deployment-spi" ..
> 
> but have Exception  like this:
> 
> Exception in thread "main" class
> org.apache.ignite.IgniteDeploymentException: Unknown task name or failed
> to auto-deploy task (was task (re|un)deployed?):
> MapExampleCharacterCountTask
> 	at
> org.apache.ignite.internal.util.IgniteUtils$8.apply(IgniteUtils.java:794)
> 	at
> org.apache.ignite.internal.util.IgniteUtils$8.apply(IgniteUtils.java:792)
> 	at
> org.apache.ignite.internal.util.IgniteUtils.convertException(IgniteUtils.java:913)
> 	at
> org.apache.ignite.internal.IgniteComputeImpl.execute(IgniteComputeImpl.java:270)
> 	at deploytest.Test1.main(Test1.java:33)
> Caused by: class
> org.apache.ignite.internal.IgniteDeploymentCheckedException: Unknown task
> name or failed to auto-deploy task (was task (re|un)deployed?):
> MapExampleCharacterCountTask
> 	at
> org.apache.ignite.internal.processors.task.GridTaskProcessor.startTask(GridTaskProcessor.java:515)
> 	at
> org.apache.ignite.internal.processors.task.GridTaskProcessor.execute(GridTaskProcessor.java:447)
> 	at
> org.apache.ignite.internal.IgniteComputeImpl.execute(IgniteComputeImpl.java:267)
> 	... 1 more
> 
> 
> i use  http protocol :
> deploymentSpi.setUriList(Arrays.asList("http://freq=5000@127.0.0.1/deptest/deployment.html"));
> 
> i check the user/xxx/AppData\Local\Temp\gg.uri.deployment.tmp directory ,
> Has downloaded the gar file and extract。。
> 
> in logfile i find :
> 
> [14:36:40,943][INFO][grid-uri-scanner-#2%null%][UriDeploymentSpi] Found
> new or updated GAR units
> [uri=http://freq=5000@127.0.0.1/deptest/deployment.html/test2.gar,
> file=C:\Users\XieJG\AppData\Local\Temp\gg.uri.deployment.tmp\06747073-8f10-41d4-998e-45cab8030a69\test23190349051081653991.gar,
> tstamp=1480567856000]
> [14:36:40,972][WARNING][grid-uri-scanner-#2%null%][UriDeploymentSpi]
> Processing deployment without descriptor file (it will cause full
> classpath scan) [path=META-INF/ignite.xml,
> gar=C:\Users\XieJG\AppData\Local\Temp\gg.uri.deployment.tmp\06747073-8f10-41d4-998e-45cab8030a69\dirzip_test23190349051081653991.gar]
> 
> -------------------
> 
> I can't find the format of META-INF/ignite.xml。Can you give me an example?
> Including META-INF/ignite.xml and task class
> 
> thanks

What is the class name of your task? How do you execute it?

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/about-GAR-files-and-task-deployment-tp9322p9346.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: about GAR files and task deployment

Posted by vkulichenko <va...@gmail.com>.
Hi,

By a project on GitHub I actually meant that something that I can run right
away and be sure that I do absolutely the same that you do. Basically, a
unit test.

I tried to run your code anyway, but it works fine for me. Attached is the
test I created, please try to run it and check what you're doing wrong. The
only difference I see is that I used file: URL instead of http:, but this
should not change anything.

GarTest.java
<http://apache-ignite-users.70518.x6.nabble.com/file/n9618/GarTest.java>  

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/about-GAR-files-and-task-deployment-tp9322p9618.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: about GAR files and task deployment

Posted by vkulichenko <va...@gmail.com>.
It should work then. Can you create a small GitHub project that reproduces
the issue and share it with us? Most likely you're doing something wrong,
and this way we will be able to take a look and help you to fix.

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/about-GAR-files-and-task-deployment-tp9322p9386.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.

Re: about GAR files and task deployment

Posted by vkulichenko <va...@gmail.com>.
Is this the full class name? No package?

-Val



--
View this message in context: http://apache-ignite-users.70518.x6.nabble.com/about-GAR-files-and-task-deployment-tp9322p9374.html
Sent from the Apache Ignite Users mailing list archive at Nabble.com.