I haven't had any errors in any of my EMR stages when using additional contexts until today.
COPY atomic.net_company_product_catalog_1 FROM 's3://xxxxxxxx/snowplow-shredded/good/run=2016-03-28-13-23-41/net.company/product_catalog/jsonschema/1-' CREDENTIALS 'aws_access_key_id=xxxxxxxxxxxxxxxxxxxx;aws_secret_access_key=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' JSON AS 's3://xxxxxxxx/snowplow-json-paths/net.company/product_catalog_1.json' REGION AS 'us-west-2' MAXERROR 1 TRUNCATECOLUMNS TIMEFORMAT 'auto' ACCEPTINVCHARS ;
COMMIT;: ERROR: Number of jsonpaths and the number of columns should match. JSONPath size: 14, Number of columns in table or column list: 15
Detail:
-----------------------------------------------
error: Number of jsonpaths and the number of columns should match. JSONPath size: 14, Number of columns in table or column list: 15
code: 8001
context:
query: 2417144
location: s3_utility.cpp:653
process: padbmaster [pid=29446]
-----------------------------------------------
/snowplow/snowplow-storage-loader!/storage-loader/lib/snowplow-storage-loader/redshift_loader.rb:88:in `load_events_and_shredded_types'
file:/snowplow/snowplow-storage-loader!/storage-loader/bin/snowplow-storage-loader:54:in `(root)'
org/jruby/RubyArray.java:1613:in `each'
file:/snowplow/snowplow-storage-loader!/storage-loader/bin/snowplow-storage-loader:51:in `(root)'
org/jruby/RubyKernel.java:1091:in `load'
file:/snowplow/snowplow-storage-loader!/META-INF/main.rb:1:in `(root)'
org/jruby/RubyKernel.java:1072:in `require'
file:/snowplow/snowplow-storage-loader!/META-INF/main.rb:1:in `(root)'
/tmp/jruby1410521194231941383extract/jruby-stdlib-1.7.20.1.jar!/META-INF/jruby.home/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:1:in `(root)'
Any ideas what could be causing this? the error says it's a mismatch in the number of columns, how could this be if tracking didn't change?