incubator-s4-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Natacha Crooks <ns...@cam.ac.uk>
Subject Re: Deploying new App
Date Thu, 12 Jul 2012 14:18:12 GMT
I was indeed running in the wrong directory, but still got an error when
doing that. Noticing the "suggestions" below the error message again, I
noticed they put ' ' around the -p={}, which worked for me. Any chance it
would be possible to edit the wiki to reflect this?

Thank you very much for your help and prompt replies.

Regards

On 12 July 2012 15:02, Matthieu Morel <mmorel@apache.org> wrote:

> On 7/12/12 3:10 PM, Natacha Crooks wrote:
>
>> Thanks! That typo wasn't there originally... I hadn't been creating an
>> app the correct way... so it wasn't getting compiled by the gradlew
>> script... (which admittedly is an equally stupid error since it means I
>> can't read the wiki)...
>>
>> Do you have any idea of what is going wrong here? I've tripled checked
>> there aren't any stupid typos... but ... (number is also the name of the
>> stream in the InputAdapter
>>
>>   ./s4 adapter -appClass=imp.s4.example.**simple.noNaCl.InputAdapter
>> -c=cluster2 -p={adapter.output.stream=**number}
>> java.lang.NullPointerException
>> at org.apache.s4.tools.Tools$**Task.dispatch(Tools.java:35)
>> at org.apache.s4.tools.Tools.**main(Tools.java:76)
>> 13:06:36.672 [main] ERROR org.apache.s4.tools.Tools - Cannot dispatch to
>> task [adapter]: wrong arguments
>> [[-s4ScriptPath=/data/ncrooks/**svn/stream-paas/S4/incubator-**s4/s4,
>> -appClass=imp.s4.example.**simple.noNaCl.InputAdapter, -c=cluster2,
>> -p=adapter.output.stream=**number]]
>>
>
> The adapter command is a facility to ease the testing of your apps, and it
> has to be run from the root of your S4 project (not the S4 platform). In
> the walkthrough, it runs from the "myApp" directory for instance.
>
> Can you check that?
>
> Thanks,
>
> Matthieu
>
>
>> Thanks a lot, and preemptive apologies if this is an equally stupid
>> mistake.
>>
>> On 12 July 2012 13:56, Matthieu Morel <mmorel@apache.org
>> <mailto:mmorel@apache.org>> wrote:
>>
>>     On 7/12/12 1:01 PM, Natacha Crooks wrote:
>>
>>         Hi everyone, I have just started using S4, and am struggling with
>>         deploying my new app.
>>
>>         I get the following message:
>>
>>         11:57:43.794 [main] INFO  org.apache.s4.core.Main - Starting S4
>>         node.
>>         This node will automatically download applications published for
>> the
>>         cluster it belongs to
>>         11:59:47.293 [ZkClient-EventThread-13-__**localhost:2181] INFO
>>            o.a.s.d.__**DistributedDeploymentManager - Detected new
>>         application(s) to
>>         deploy {}[noNacl]
>>         11:59:47.388 [ZkClient-EventThread-13-__**localhost:2181] INFO
>>
>>            org.apache.s4.core.Server - Local app deployment: using s4r
>>         file name
>>         [noNacl] as application name
>>         11:59:48.045 [ZkClient-EventThread-13-__**localhost:2181] INFO
>>
>>            org.apache.s4.core.Server - App class name is:
>>         11:59:48.049 [ZkClient-EventThread-13-__**localhost:2181] ERROR
>>
>>         org.apache.s4.core.Server - Could not load s4 application form
>>         s4r file
>>         [{/tmp/deploy-test/cluster1/__**noNacl.s4r}]
>>         java.lang.__**ClassNotFoundException: null
>>         at
>>         org.apache.s4.base.util.__**MultiClassLoader.loadClass(__**
>> MultiClassLoader.java:71)
>>         ~[s4-base-0.5.0-SNAPSHOT.jar:_**_0.5.0-SNAPSHOT]
>>         at
>>         org.apache.s4.base.util.__**MultiClassLoader.loadClass(__**
>> MultiClassLoader.java:43)
>>         ~[s4-base-0.5.0-SNAPSHOT.jar:_**_0.5.0-SNAPSHOT]
>>
>>
>>
>>         This is after having run ./s4 s4r
>>         -a=N=imp.s4.example.simple.__**noNaCl.NaClApp
>>         -b=`pwd`/test-apps/__**noNaclSimple/build.gradle noNaClsimple
>>
>>         (which builds
>>         successfully),
>>
>>
>>     The syntax is incorrect, it should be ./s4 s4r
>>     -a=imp.s4.example.simple.__**noNaCl.NaClApp
>>     -b=`pwd`/test-apps/__**noNaclSimple/build.gradle noNaClsimple
>>
>>
>>     (no "=N")
>>
>>     Thanks for reporting that, I added the following ticket for tracking
>>     the issue : https://issues.apache.org/__**jira/browse/S4-79<https://issues.apache.org/__jira/browse/S4-79>
>>
>>     <https://issues.apache.org/**jira/browse/S4-79<https://issues.apache.org/jira/browse/S4-79>
>> >
>>
>>     Hope this helps,
>>
>>     Matthieu
>>
>>
>>
>>
>>
>>     and when running ./s4 deploy
>>
>>         -s4r=`pwd`/test-apps/__**noNaclSimple/build/libs/__**
>> noNaclSimple-0.0.0-SNAPSHOT.__**s4r
>>
>>         -c=cluster1 -appName=noNacl.
>>
>>         Thanks a lot for the help.
>>         Regards
>>
>>         --
>>         Natacha Crooks
>>         St John's College, Cambridge
>>
>>
>>
>>
>>
>>
>> --
>> Natacha Crooks
>> St John's College, Cambridge
>>
>>
>
>


-- 
Natacha Crooks
St John's College, Cambridge

Mime
View raw message