I am trying to run my jar (with cascading dependencies) that tries to join on a common field from two files. The jar runs fine in my local machine, but in aws the cluster doesnt even startup.
The cluster terminates as the bootstrap action fails with the error
Terminated with errors On the master instance (i-8b5170aa), bootstrap action 1 returned a non-zero return code
Here is the bootstrap action i specified while creating the cluster
Bootstrap Actions
Custom action s3://my-bucket/project/dataMerger-1.0-jar-with-dependencies.jar s3://my-bucket/inputData/input1.txt, s3://my-bucket/inputData/input2.dat,, s3://my-bucket/inputData/mergedOutput
Here are the content of the logs.
j-1GWFGNLBY1CGD/node/i-4e52746f/bootstrap-actions/1/controller
2014-02-26T21:45:19.180Z INFO Fetching file 's3://my-bucket/project/dataMerger-1.0-jar-with-dependencies.jar'
2014-02-26T21:45:29.333Z INFO Working dir /mnt/var/lib/bootstrap-actions/1
2014-02-26T21:45:29.333Z INFO Executing /mnt/var/lib/bootstrap-actions/1/dataMerger-1.0-jar-with-dependencies.jar s3://my-bucket/inputData/input1.txt s3://my-bucket/inputData/input2.dat s3://my-bucket/inputData/mergedOutput
2014-02-26T21:45:29.838Z INFO Execution ended with ret val 2
2014-02-26T21:45:29.839Z ERROR Execution failed with code '2'
j-1GWFGNLBY1CGD/node/i-4e52746f/bootstrap-actions/1/stderr
/mnt/var/lib/bootstrap-actions/1/dataMerger-1.0-jar-with-dependencies.jar: line 1: PK : command not found
/mnt/var/lib/bootstrap-actions/1/dataMerger-1.0-jar-with-dependencies.jar: line 3: ZD: command not found
/mnt/var/lib/bootstrap-actions/1/dataMerger-1.0-jar-with-dependencies.jar: line 4: ú: command not found
/mnt/var/lib/bootstrap-actions/1/dataMerger-1.0-jar-with-dependencies.jar: line 3: ùZDéÆoËѰ META-INF/MANIFEST.MFEÕ±: No such file or directory
/mnt/var/lib/bootstrap-actions/1/dataMerger-1.0-jar-with-dependencies.jar: line 4: syntax error near unexpected token `)'
/mnt/var/lib/bootstrap-actions/1/dataMerger-1.0-jar-with-dependencies.jar: line 4: `¬0 Ä·=êw» §‘¡ Ÿ⁄: Apï≥9mö ]ZÌ€K q˝˛·˜ê‚ %€ ≤ƒ19≥)J≠jÓ˙8#ˇ˘@¯öƒ¸ÇV-#d∂Yú© –ıh<Ãò¥j¶H˘„¬0Ä<aXæ Ï>‹◊EUîÁj´ïáòlK ‚à â‡B∏É ˘∂N¥z PK '
I searched online for a few hours and i didnt get anything useful. why does this jar that run in my machine doesnt run in aws. does it ring a bell to anyone ? any help is appreciated :)
Thanks
Srini