grails - Amazon Redshift: query execution hangs -
i use amazon redshift , query execution hangs without error messages e.g. query execute:
select extract(year date), extract(week date),count(*) some_table date>'2015-01-01 00:00:00' , date<'2015-12-31 23:59:59' group extract(year date), extract(week date)
and not:
select extract(year date), extract(week date),count(*) some_table date>'2014-01-01 00:00:00' , date<'2014-12-27 23:59:59' group extract(year date), extract(week date)
but happens when deploy project server , on local machine queries executed without problems.
i set in code autocommit=true
connection. things listed above grails using library
compile 'com.amazonaws:aws-java-sdk-redshift:1.9.39'
any ideas?
this might not exact answer, it's long comment.
you may want check mtu
setting on server performing execution.
redshift want's operate on 1500
bytes frame , ec2 instances set jumbo frame default (9000
)
in order run queries without problems need have same mtu
setting.
to check have, run command:
ip addr show eth0
an example output this:
eth0: <broadcast,multicast,up,lower_up> mtu 9001 qdisc pfifo_fast state qlen 1000
in case mtu 9001 need change 1500 running:
/sbin/ifconfig eth0 mtu 1500 up
Comments
Post a Comment