I’ve got an issue that doesn’t match the troubleshooting guide as far as I can tell. One of the job steps fails with this at the error output:
D, [2017-08-18T18:49:52.533000 #12] DEBUG -- : Initializing EMR jobflow
D, [2017-08-18T18:50:19.737000 #12] DEBUG -- : EMR jobflow j-17 started, waiting for jobflow to complete...
I, [2017-08-18T18:50:19.742000 #12] INFO -- : SnowplowTracker::Emitter initialized with endpoint http://dokvqiql64pip.cloudfront.net:80/i
I, [2017-08-18T18:50:21.620000 #12] INFO -- : Attempting to send 1 request
I, [2017-08-18T18:50:21.625000 #12] INFO -- : Sending GET request to http://dokvqiql64pip.cloudfront.net:80/i...
I, [2017-08-18T18:50:21.884000 #12] INFO -- : GET request to http://dokpip.cloudfront.net:80/i finished with status code 200
I, [2017-08-18T19:04:36.213000 #12] INFO -- : Attempting to send 1 request
I, [2017-08-18T19:04:36.217000 #12] INFO -- : Sending GET request to http://dokvqiql64pip.cloudfront.net:80/i...
I, [2017-08-18T19:04:36.306000 #12] INFO -- : GET request to http://dokpip.cloudfront.net:80/i finished with status code 200
F, [2017-08-18T19:04:38.275000 #12] FATAL -- :
Snowplow::EmrEtlRunner::EmrExecutionError (EMR jobflow j-17JR3DGT92QRJ failed, check Amazon EMR console and Hadoop logs for details (help: https://github.com/snowplow/snowplow/wiki/Troubleshooting-jobs-on-Elastic-MapReduce). Data files not archived.
Snowplow ETL: TERMINATING [STEP_FAILURE] ~ elapsed time n/a [2017-08-18 18:58:37 +0000 - ]
- 1. Elasticity S3DistCp Step: Raw s3://traqqy-collector-logs/ -> Raw Staging S3: COMPLETED ~ 00:02:07 [2017-08-18 18:58:40 +0000 - 2017-08-18 19:00:47 +0000]
- 2. Elasticity S3DistCp Step: Raw S3 -> Raw HDFS: COMPLETED ~ 00:01:40 [2017-08-18 19:00:49 +0000 - 2017-08-18 19:02:29 +0000]
- 3. Elasticity Spark Step: Enrich Raw Events: FAILED ~ 00:01:36 [2017-08-18 19:02:31 +0000 - 2017-08-18 19:04:08 +0000]
- 4. Elasticity S3DistCp Step: Shredded S3 -> Shredded Archive S3: CANCELLED ~ elapsed time n/a [ - ]
- 5. Elasticity S3DistCp Step: Enriched S3 -> Enriched Archive S3: CANCELLED ~ elapsed time n/a [ - ]
- 6. Elasticity Custom Jar Step: Load PostgreSQL enriched events storage Storage Target: CANCELLED ~ elapsed time n/a [ - ]
- 7. Elasticity S3DistCp Step: Raw Staging S3 -> Raw Archive S3: CANCELLED ~ elapsed time n/a [ - ]
- 8. Elasticity S3DistCp Step: Shredded HDFS _SUCCESS -> S3: CANCELLED ~ elapsed time n/a [ - ]
- 9. Elasticity S3DistCp Step: Shredded HDFS -> S3: CANCELLED ~ elapsed time n/a [ - ]
- 10. Elasticity Spark Step: Shred Enriched Events: CANCELLED ~ elapsed time n/a [ - ]
- 11. Elasticity Custom Jar Step: Empty Raw HDFS: CANCELLED ~ elapsed time n/a [ - ]
- 12. Elasticity S3DistCp Step: Enriched HDFS _SUCCESS -> S3: CANCELLED ~ elapsed time n/a [ - ]
- 13. Elasticity S3DistCp Step: Enriched HDFS -> S3: CANCELLED ~ elapsed time n/a [ - ]):
uri:classloader:/emr-etl-runner/lib/snowplow-emr-etl-runner/emr_job.rb:572:in `run'
uri:classloader:/gems/contracts-0.11.0/lib/contracts/method_reference.rb:43:in `send_to'
uri:classloader:/gems/contracts-0.11.0/lib/contracts/call_with.rb:76:in `call_with'
uri:classloader:/gems/contracts-0.11.0/lib/contracts/method_handler.rb:138:in `block in redefine_method'
uri:classloader:/emr-etl-runner/lib/snowplow-emr-etl-runner/runner.rb:92:in `run'
uri:classloader:/gems/contracts-0.11.0/lib/contracts/method_reference.rb:43:in `send_to'
uri:classloader:/gems/contracts-0.11.0/lib/contracts/call_with.rb:76:in `call_with'
uri:classloader:/gems/contracts-0.11.0/lib/contracts/method_handler.rb:138:in `block in redefine_method'
uri:classloader:/emr-etl-runner/bin/snowplow-emr-etl-runner:41:in `<main>'
org/jruby/RubyKernel.java:979:in `load'
uri:classloader:/META-INF/main.rb:1:in `<main>'
org/jruby/RubyKernel.java:961:in `require'
uri:classloader:/META-INF/main.rb:1:in `(root)'
uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1:in `<main>'
On the Amazon EMR console stderr end like this:
17/08/18 19:04:04 INFO Client: Application report for application_15 (state: RUNNING)
17/08/18 19:04:05 INFO Client: Application report for application_15 (state: FINISHED)
17/08/18 19:04:05 INFO Client:
client token: N/A
diagnostics: N/A
ApplicationMaster host: 192.168.14.14
ApplicationMaster RPC port: 0
queue: default
start time: 15
final status: FAILED
tracking URL: http://ip-west-1.compute.internal:20888/proxy/application_15blah
user: hadoop
Exception in thread "main" org.apache.spark.SparkException: Application application_15blah finished with failed status
at org.apache.spark.deploy.yarn.Client.run(Client.scala:1167)
at org.apache.spark.deploy.yarn.Client$.main(Client.scala:1213)
at org.apache.spark.deploy.yarn.Client.main(Client.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:738)
at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:187)
at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:212)
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:126)
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
17/08/18 19:04:05 INFO ShutdownHookManager: Shutdown hook called
17/08/18 19:04:05 INFO ShutdownHookManager: Deleting directory /mnt/tmp/spark-bablah
Command exiting with ret '1'
additional info: it’s a clouddfront collector saving into s3 buckets setup before the lascaux release, but I think I’ve got all the permission up to date and correct, and emretl is being ran in a container on my local laptop