[jira] [Commented] (CASSANDRA-10445) Cassandra-stress throws max frame size error when SSL certification is enabled
[ https://issues.apache.org/jira/browse/CASSANDRA-10445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15158895#comment-15158895 ] Vara commented on CASSANDRA-10445: -- It worked fine this time Cornel. Thanks for resolving the issue. > Cassandra-stress throws max frame size error when SSL certification is enabled > -- > > Key: CASSANDRA-10445 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10445 > Project: Cassandra > Issue Type: Bug >Reporter: Sam Goldberg > Labels: stress > Fix For: 2.1.x > > > Running cassandra-stress when SSL is enabled gives the following error and > does not finish executing: > {quote} > cassandra-stress write n=100 > Exception in thread "main" java.lang.RuntimeException: > org.apache.thrift.transport.TTransportException: Frame size (352518912) > larger than max length (15728640)! > at > org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:144) > at > org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:110) > at > org.apache.cassandra.stress.settings.SettingsSchema.createKeySpacesThrift(SettingsSchema.java:111) > at > org.apache.cassandra.stress.settings.SettingsSchema.createKeySpaces(SettingsSchema.java:59) > at > org.apache.cassandra.stress.settings.StressSettings.maybeCreateKeyspaces(StressSettings.java:205) > at org.apache.cassandra.stress.StressAction.run(StressAction.java:55) > at org.apache.cassandra.stress.Stress.main(Stress.java:109) > {quote} > I was able to reproduce this issue consistently via the following steps: > 1) Spin up 3 node cassandra cluster running 2.1.8 > 2) Perform cassandra-stress write n=100 > 3) Everything works! > 4) Generate keystore and truststore for each node in the cluster and > distribute appropriately > 5) Modify cassandra.yaml on each node to enable SSL: > client_encryption_options: > enabled: true > keystore: / > # require_client_auth: false > # Set trustore and truststore_password if require_client_auth is true > truststore: / > truststore_password: > # More advanced defaults below: > protocol: ssl > 6) Restart each node. > 7) Perform cassandra-stress write n=100 > 8) Get Frame Size error, cassandra-stress fails > This may be related to CASSANDRA-9325. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CASSANDRA-10445) Cassandra-stress throws max frame size error when SSL certification is enabled
[ https://issues.apache.org/jira/browse/CASSANDRA-10445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15158755#comment-15158755 ] Cornel Foltea commented on CASSANDRA-10445: --- Remove any quotes from user="vara.bonthu" password='xx' > Cassandra-stress throws max frame size error when SSL certification is enabled > -- > > Key: CASSANDRA-10445 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10445 > Project: Cassandra > Issue Type: Bug >Reporter: Sam Goldberg > Labels: stress > Fix For: 2.1.x > > > Running cassandra-stress when SSL is enabled gives the following error and > does not finish executing: > {quote} > cassandra-stress write n=100 > Exception in thread "main" java.lang.RuntimeException: > org.apache.thrift.transport.TTransportException: Frame size (352518912) > larger than max length (15728640)! > at > org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:144) > at > org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:110) > at > org.apache.cassandra.stress.settings.SettingsSchema.createKeySpacesThrift(SettingsSchema.java:111) > at > org.apache.cassandra.stress.settings.SettingsSchema.createKeySpaces(SettingsSchema.java:59) > at > org.apache.cassandra.stress.settings.StressSettings.maybeCreateKeyspaces(StressSettings.java:205) > at org.apache.cassandra.stress.StressAction.run(StressAction.java:55) > at org.apache.cassandra.stress.Stress.main(Stress.java:109) > {quote} > I was able to reproduce this issue consistently via the following steps: > 1) Spin up 3 node cassandra cluster running 2.1.8 > 2) Perform cassandra-stress write n=100 > 3) Everything works! > 4) Generate keystore and truststore for each node in the cluster and > distribute appropriately > 5) Modify cassandra.yaml on each node to enable SSL: > client_encryption_options: > enabled: true > keystore: / > # require_client_auth: false > # Set trustore and truststore_password if require_client_auth is true > truststore: / > truststore_password: > # More advanced defaults below: > protocol: ssl > 6) Restart each node. > 7) Perform cassandra-stress write n=100 > 8) Get Frame Size error, cassandra-stress fails > This may be related to CASSANDRA-9325. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CASSANDRA-10445) Cassandra-stress throws max frame size error when SSL certification is enabled
[ https://issues.apache.org/jira/browse/CASSANDRA-10445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15158748#comment-15158748 ] Vara commented on CASSANDRA-10445: -- I have tried that but i get the authentication error this time. I am able to login to CQLSH with my credentials without any issues(cqlsh --ssl -u "vara.bonthu" -p 'xx'). /usr/bin/cassandra-stress write n=10 -mode thrift user="vara.bonthu" password='xx' -log file=~/vara_write_100kfile.log -transport factory=org.apache.cassandra.thrift.SSLTransportFactory truststore=/etc/ssl/jks/truststore.jks truststore-password='' Exception in thread "main" java.lang.RuntimeException: AuthenticationException(why:Username and/or password are incorrect) at org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:144) at org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:110) at org.apache.cassandra.stress.settings.SettingsSchema.createKeySpacesThrift(SettingsSchema.java:111) at org.apache.cassandra.stress.settings.SettingsSchema.createKeySpaces(SettingsSchema.java:59) at org.apache.cassandra.stress.settings.StressSettings.maybeCreateKeyspaces(StressSettings.java:205) at org.apache.cassandra.stress.StressAction.run(StressAction.java:55) at org.apache.cassandra.stress.Stress.main(Stress.java:109) Caused by: AuthenticationException(why:Username and/or password are incorrect) at org.apache.cassandra.thrift.Cassandra$login_result$login_resultStandardScheme.read(Cassandra.java:8334) at org.apache.cassandra.thrift.Cassandra$login_result$login_resultStandardScheme.read(Cassandra.java:8320) at org.apache.cassandra.thrift.Cassandra$login_result.read(Cassandra.java:8262) at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:86) at org.apache.cassandra.thrift.Cassandra$Client.recv_login(Cassandra.java:582) at org.apache.cassandra.thrift.Cassandra$Client.login(Cassandra.java:569) at org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:135) ... 6 more I have also tried running in native mode -- cassandra-stress write n=10 -mode native cql3 -schema keyspace="keyspace1" -log file=~/vara_write_100kfile.log -transport factory=org.apache.cassandra.thrift.SSLTransportFactory truststore=/etc/ssl/jks/truststore.jks truststore-password='x' Unable to create stress keyspace: You have not logged in Exception in thread "Thread-259" Exception in thread "Thread-246" Exception in thread "Thread-257" java.lang.RuntimeException: java.io.IOException: Error creating the initializing the SSL Context at org.apache.cassandra.stress.settings.StressSettings.getJavaDriverClient(StressSettings.java:198) at org.apache.cassandra.stress.settings.StressSettings.getJavaDriverClient(StressSettings.java:171) at org.apache.cassandra.stress.StressAction$Consumer.run(StressAction.java:285) Caused by: java.io.IOException: Error creating the initializing the SSL Context at org.apache.cassandra.security.SSLFactory.createSSLContext(SSLFactory.java:147) at org.apache.cassandra.stress.util.JavaDriverClient.connect(JavaDriverClient.java:102) at org.apache.cassandra.stress.settings.StressSettings.getJavaDriverClient(StressSettings.java:189) ... 2 more Caused by: java.io.FileNotFoundException: conf/.keystore (No such file or directory) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.(FileInputStream.java:138) at java.io.FileInputStream.(FileInputStream.java:93) at org.apache.cassandra.security.SSLFactory.createSSLContext(SSLFactory.java:122) ... 4 more Exception in thread "Thread-228" java.lang.RuntimeException: java.io.IOException: Error creating the initializing the SSL Context at org.apache.cassandra.stress.settings.StressSettings.getJavaDriverClient(StressSettings.java:198) at org.apache.cassandra.stress.settings.StressSettings.getJavaDriverClient(StressSettings.java:171) at org.apache.cassandra.stress.StressAction$Consumer.run(StressAction.java:285) Caused by: java.io.IOException: Error creating the initializing the SSL Context at org.apache.cassandra.security.SSLFactory.createSSLContext(SSLFactory.java:147) at org.apache.cassandra.stress.util.JavaDriverClient.connect(JavaDriverClient.java:102) at org.apache.cassandra.stress.settings.StressSettings.getJavaDriverClient(StressSettings.java:189 > Cassandra-stress throws max frame size error when SSL certification is enabled > ---
[jira] [Commented] (CASSANDRA-10445) Cassandra-stress throws max frame size error when SSL certification is enabled
[ https://issues.apache.org/jira/browse/CASSANDRA-10445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15157366#comment-15157366 ] Cornel Foltea commented on CASSANDRA-10445: --- Add also: factory=org.apache.cassandra.thrift.SSLTransportFactory > Cassandra-stress throws max frame size error when SSL certification is enabled > -- > > Key: CASSANDRA-10445 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10445 > Project: Cassandra > Issue Type: Bug >Reporter: Sam Goldberg > Labels: stress > Fix For: 2.1.x > > > Running cassandra-stress when SSL is enabled gives the following error and > does not finish executing: > {quote} > cassandra-stress write n=100 > Exception in thread "main" java.lang.RuntimeException: > org.apache.thrift.transport.TTransportException: Frame size (352518912) > larger than max length (15728640)! > at > org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:144) > at > org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:110) > at > org.apache.cassandra.stress.settings.SettingsSchema.createKeySpacesThrift(SettingsSchema.java:111) > at > org.apache.cassandra.stress.settings.SettingsSchema.createKeySpaces(SettingsSchema.java:59) > at > org.apache.cassandra.stress.settings.StressSettings.maybeCreateKeyspaces(StressSettings.java:205) > at org.apache.cassandra.stress.StressAction.run(StressAction.java:55) > at org.apache.cassandra.stress.Stress.main(Stress.java:109) > {quote} > I was able to reproduce this issue consistently via the following steps: > 1) Spin up 3 node cassandra cluster running 2.1.8 > 2) Perform cassandra-stress write n=100 > 3) Everything works! > 4) Generate keystore and truststore for each node in the cluster and > distribute appropriately > 5) Modify cassandra.yaml on each node to enable SSL: > client_encryption_options: > enabled: true > keystore: / > # require_client_auth: false > # Set trustore and truststore_password if require_client_auth is true > truststore: / > truststore_password: > # More advanced defaults below: > protocol: ssl > 6) Restart each node. > 7) Perform cassandra-stress write n=100 > 8) Get Frame Size error, cassandra-stress fails > This may be related to CASSANDRA-9325. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CASSANDRA-10445) Cassandra-stress throws max frame size error when SSL certification is enabled
[ https://issues.apache.org/jira/browse/CASSANDRA-10445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15157229#comment-15157229 ] Vara commented on CASSANDRA-10445: -- Hi Cornel, I have increased "thrift_framed_transport_size_in_mb" size from 15MB to 337MB in all cassandra nodes and restarted cassandra but i am seeing the same exception. I have alos passed the transport option but no luuck cassandra-stress write n=10 -rate threads\>=5 threads\<=9 -mode thrift user='vara.bonthu' password='mypassword' -log file=~/vara_write_100kfile.log -transport truststore=/etc/ssl/jks/truststore.jks truststore-password='x' Excpetion log: - Exception in thread "main" java.lang.RuntimeException: org.apache.thrift.transport.TTransportException: Frame size (352518912) larger than max length (15728640)! at org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:144) at org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:110) at org.apache.cassandra.stress.settings.SettingsSchema.createKeySpacesThrift(SettingsSchema.java:111) at org.apache.cassandra.stress.settings.SettingsSchema.createKeySpaces(SettingsSchema.java:59) at org.apache.cassandra.stress.settings.StressSettings.maybeCreateKeyspaces(StressSettings.java:205) at org.apache.cassandra.stress.StressAction.run(StressAction.java:55) at org.apache.cassandra.stress.Stress.main(Stress.java:109) Caused by: org.apache.thrift.transport.TTransportException: Frame size (352518912) larger than max length (15728640)! > Cassandra-stress throws max frame size error when SSL certification is enabled > -- > > Key: CASSANDRA-10445 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10445 > Project: Cassandra > Issue Type: Bug >Reporter: Sam Goldberg > Labels: stress > Fix For: 2.1.x > > > Running cassandra-stress when SSL is enabled gives the following error and > does not finish executing: > {quote} > cassandra-stress write n=100 > Exception in thread "main" java.lang.RuntimeException: > org.apache.thrift.transport.TTransportException: Frame size (352518912) > larger than max length (15728640)! > at > org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:144) > at > org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:110) > at > org.apache.cassandra.stress.settings.SettingsSchema.createKeySpacesThrift(SettingsSchema.java:111) > at > org.apache.cassandra.stress.settings.SettingsSchema.createKeySpaces(SettingsSchema.java:59) > at > org.apache.cassandra.stress.settings.StressSettings.maybeCreateKeyspaces(StressSettings.java:205) > at org.apache.cassandra.stress.StressAction.run(StressAction.java:55) > at org.apache.cassandra.stress.Stress.main(Stress.java:109) > {quote} > I was able to reproduce this issue consistently via the following steps: > 1) Spin up 3 node cassandra cluster running 2.1.8 > 2) Perform cassandra-stress write n=100 > 3) Everything works! > 4) Generate keystore and truststore for each node in the cluster and > distribute appropriately > 5) Modify cassandra.yaml on each node to enable SSL: > client_encryption_options: > enabled: true > keystore: / > # require_client_auth: false > # Set trustore and truststore_password if require_client_auth is true > truststore: / > truststore_password: > # More advanced defaults below: > protocol: ssl > 6) Restart each node. > 7) Perform cassandra-stress write n=100 > 8) Get Frame Size error, cassandra-stress fails > This may be related to CASSANDRA-9325. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CASSANDRA-10445) Cassandra-stress throws max frame size error when SSL certification is enabled
[ https://issues.apache.org/jira/browse/CASSANDRA-10445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15157043#comment-15157043 ] Cornel Foltea commented on CASSANDRA-10445: --- Also, `-transport` must be specified when the cluster is client-to-node ssl encrypted https://docs.datastax.com/en/cassandra/2.1/cassandra/tools/toolsCStress_t.html > Cassandra-stress throws max frame size error when SSL certification is enabled > -- > > Key: CASSANDRA-10445 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10445 > Project: Cassandra > Issue Type: Bug >Reporter: Sam Goldberg > Labels: stress > Fix For: 2.1.x > > > Running cassandra-stress when SSL is enabled gives the following error and > does not finish executing: > {quote} > cassandra-stress write n=100 > Exception in thread "main" java.lang.RuntimeException: > org.apache.thrift.transport.TTransportException: Frame size (352518912) > larger than max length (15728640)! > at > org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:144) > at > org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:110) > at > org.apache.cassandra.stress.settings.SettingsSchema.createKeySpacesThrift(SettingsSchema.java:111) > at > org.apache.cassandra.stress.settings.SettingsSchema.createKeySpaces(SettingsSchema.java:59) > at > org.apache.cassandra.stress.settings.StressSettings.maybeCreateKeyspaces(StressSettings.java:205) > at org.apache.cassandra.stress.StressAction.run(StressAction.java:55) > at org.apache.cassandra.stress.Stress.main(Stress.java:109) > {quote} > I was able to reproduce this issue consistently via the following steps: > 1) Spin up 3 node cassandra cluster running 2.1.8 > 2) Perform cassandra-stress write n=100 > 3) Everything works! > 4) Generate keystore and truststore for each node in the cluster and > distribute appropriately > 5) Modify cassandra.yaml on each node to enable SSL: > client_encryption_options: > enabled: true > keystore: / > # require_client_auth: false > # Set trustore and truststore_password if require_client_auth is true > truststore: / > truststore_password: > # More advanced defaults below: > protocol: ssl > 6) Restart each node. > 7) Perform cassandra-stress write n=100 > 8) Get Frame Size error, cassandra-stress fails > This may be related to CASSANDRA-9325. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CASSANDRA-10445) Cassandra-stress throws max frame size error when SSL certification is enabled
[ https://issues.apache.org/jira/browse/CASSANDRA-10445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15144766#comment-15144766 ] Cornel Foltea commented on CASSANDRA-10445: --- https://docs.datastax.com/en/cassandra/2.1/cassandra/configuration/configCassandra_yaml_r.html?scroll=reference_ds_qfg_n1r_1k__thrift_framed_transport_size_in_mb 15728640=15MB (default) bump that thrift_framed_transport_size_in_mb up on the cassandra.yaml although ~336MB is a bit too much. Also have a look at https://docs.datastax.com/en/cassandra/2.1/cassandra/tools/toolsCStress_t.html > Cassandra-stress throws max frame size error when SSL certification is enabled > -- > > Key: CASSANDRA-10445 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10445 > Project: Cassandra > Issue Type: Bug >Reporter: Sam Goldberg > Labels: stress > Fix For: 2.1.x > > > Running cassandra-stress when SSL is enabled gives the following error and > does not finish executing: > {quote} > cassandra-stress write n=100 > Exception in thread "main" java.lang.RuntimeException: > org.apache.thrift.transport.TTransportException: Frame size (352518912) > larger than max length (15728640)! > at > org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:144) > at > org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:110) > at > org.apache.cassandra.stress.settings.SettingsSchema.createKeySpacesThrift(SettingsSchema.java:111) > at > org.apache.cassandra.stress.settings.SettingsSchema.createKeySpaces(SettingsSchema.java:59) > at > org.apache.cassandra.stress.settings.StressSettings.maybeCreateKeyspaces(StressSettings.java:205) > at org.apache.cassandra.stress.StressAction.run(StressAction.java:55) > at org.apache.cassandra.stress.Stress.main(Stress.java:109) > {quote} > I was able to reproduce this issue consistently via the following steps: > 1) Spin up 3 node cassandra cluster running 2.1.8 > 2) Perform cassandra-stress write n=100 > 3) Everything works! > 4) Generate keystore and truststore for each node in the cluster and > distribute appropriately > 5) Modify cassandra.yaml on each node to enable SSL: > client_encryption_options: > enabled: true > keystore: / > # require_client_auth: false > # Set trustore and truststore_password if require_client_auth is true > truststore: / > truststore_password: > # More advanced defaults below: > protocol: ssl > 6) Restart each node. > 7) Perform cassandra-stress write n=100 > 8) Get Frame Size error, cassandra-stress fails > This may be related to CASSANDRA-9325. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CASSANDRA-10445) Cassandra-stress throws max frame size error when SSL certification is enabled
[ https://issues.apache.org/jira/browse/CASSANDRA-10445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15143048#comment-15143048 ] Vara commented on CASSANDRA-10445: -- Is there any feedback or workaround on this issue. Cassandra stress tool works fine without SSL but when we configured SSL in our cluster then i wasn't able to execute the stress tool. /usr/bin/cassandra-stress write n=10 -rate threads\>=5 threads\<=9 -mode thrift user='xxx' password='"xxx' -log file=~/vara_write_100kfile.log please see the error below -- Exception in thread "main" java.lang.RuntimeException: org.apache.thrift.transport.TTransportException: Frame size (352518912) larger than max length (15728640)! at org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:144) at org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:110) at org.apache.cassandra.stress.settings.SettingsSchema.createKeySpacesThrift(SettingsSchema.java:111) at org.apache.cassandra.stress.settings.SettingsSchema.createKeySpaces(SettingsSchema.java:59) at org.apache.cassandra.stress.settings.StressSettings.maybeCreateKeyspaces(StressSettings.java:205) at org.apache.cassandra.stress.StressAction.run(StressAction.java:55) at org.apache.cassandra.stress.Stress.main(Stress.java:109) Caused by: org.apache.thrift.transport.TTransportException: Frame size (352518912) larger than max length (15728640)! at org.apache.thrift.transport.TFramedTransport.readFrame(TFramedTransport.java:137) at org.apache.thrift.transport.TFramedTransport.read(TFramedTransport.java:101) at org.apache.thrift.transport.TTransport.readAll(TTransport.java:86) at org.apache.thrift.protocol.TBinaryProtocol.readAll(TBinaryProtocol.java:429) at org.apache.thrift.protocol.TBinaryProtocol.readI32(TBinaryProtocol.java:318) at org.apache.thrift.protocol.TBinaryProtocol.readMessageBegin(TBinaryProtocol.java:219) at org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:77) at org.apache.cassandra.thrift.Cassandra$Client.recv_login(Cassandra.java:582) at org.apache.cassandra.thrift.Cassandra$Client.login(Cassandra.java:569) at org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:135) ... 6 more > Cassandra-stress throws max frame size error when SSL certification is enabled > -- > > Key: CASSANDRA-10445 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10445 > Project: Cassandra > Issue Type: Bug >Reporter: Sam Goldberg > Labels: stress > Fix For: 2.1.x > > > Running cassandra-stress when SSL is enabled gives the following error and > does not finish executing: > {quote} > cassandra-stress write n=100 > Exception in thread "main" java.lang.RuntimeException: > org.apache.thrift.transport.TTransportException: Frame size (352518912) > larger than max length (15728640)! > at > org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:144) > at > org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:110) > at > org.apache.cassandra.stress.settings.SettingsSchema.createKeySpacesThrift(SettingsSchema.java:111) > at > org.apache.cassandra.stress.settings.SettingsSchema.createKeySpaces(SettingsSchema.java:59) > at > org.apache.cassandra.stress.settings.StressSettings.maybeCreateKeyspaces(StressSettings.java:205) > at org.apache.cassandra.stress.StressAction.run(StressAction.java:55) > at org.apache.cassandra.stress.Stress.main(Stress.java:109) > {quote} > I was able to reproduce this issue consistently via the following steps: > 1) Spin up 3 node cassandra cluster running 2.1.8 > 2) Perform cassandra-stress write n=100 > 3) Everything works! > 4) Generate keystore and truststore for each node in the cluster and > distribute appropriately > 5) Modify cassandra.yaml on each node to enable SSL: > client_encryption_options: > enabled: true > keystore: / > # require_client_auth: false > # Set trustore and truststore_password if require_client_auth is true > truststore: / > truststore_password: > # More advanced defaults below: > protocol: ssl > 6) Restart each node. > 7) Perform cassandra-stress write n=100 > 8) Get Frame Size error, cassandra-stress fails > This may be related to CASSANDRA-9325. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CASSANDRA-10445) Cassandra-stress throws max frame size error when SSL certification is enabled
[ https://issues.apache.org/jira/browse/CASSANDRA-10445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15000961#comment-15000961 ] Charles Crawford commented on CASSANDRA-10445: -- I am having the same issue. Any updates on a workaround or fix? > Cassandra-stress throws max frame size error when SSL certification is enabled > -- > > Key: CASSANDRA-10445 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10445 > Project: Cassandra > Issue Type: Bug >Reporter: Sam Goldberg > Labels: stress > Fix For: 2.1.x > > > Running cassandra-stress when SSL is enabled gives the following error and > does not finish executing: > {quote} > cassandra-stress write n=100 > Exception in thread "main" java.lang.RuntimeException: > org.apache.thrift.transport.TTransportException: Frame size (352518912) > larger than max length (15728640)! > at > org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:144) > at > org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:110) > at > org.apache.cassandra.stress.settings.SettingsSchema.createKeySpacesThrift(SettingsSchema.java:111) > at > org.apache.cassandra.stress.settings.SettingsSchema.createKeySpaces(SettingsSchema.java:59) > at > org.apache.cassandra.stress.settings.StressSettings.maybeCreateKeyspaces(StressSettings.java:205) > at org.apache.cassandra.stress.StressAction.run(StressAction.java:55) > at org.apache.cassandra.stress.Stress.main(Stress.java:109) > {quote} > I was able to reproduce this issue consistently via the following steps: > 1) Spin up 3 node cassandra cluster running 2.1.8 > 2) Perform cassandra-stress write n=100 > 3) Everything works! > 4) Generate keystore and truststore for each node in the cluster and > distribute appropriately > 5) Modify cassandra.yaml on each node to enable SSL: > client_encryption_options: > enabled: true > keystore: / > # require_client_auth: false > # Set trustore and truststore_password if require_client_auth is true > truststore: / > truststore_password: > # More advanced defaults below: > protocol: ssl > 6) Restart each node. > 7) Perform cassandra-stress write n=100 > 8) Get Frame Size error, cassandra-stress fails > This may be related to CASSANDRA-9325. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Commented] (CASSANDRA-10445) Cassandra-stress throws max frame size error when SSL certification is enabled
[ https://issues.apache.org/jira/browse/CASSANDRA-10445?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14945157#comment-14945157 ] Philip Thompson commented on CASSANDRA-10445: - If you compile and use the cassandra stress from trunk against your 2.1 cluster, does this still reproduce? > Cassandra-stress throws max frame size error when SSL certification is enabled > -- > > Key: CASSANDRA-10445 > URL: https://issues.apache.org/jira/browse/CASSANDRA-10445 > Project: Cassandra > Issue Type: Bug >Reporter: Sam Goldberg > Fix For: 2.1.x > > > Running cassandra-stress when SSL is enabled gives the following error and > does not finish executing: > {quote} > cassandra-stress write n=100 > Exception in thread "main" java.lang.RuntimeException: > org.apache.thrift.transport.TTransportException: Frame size (352518912) > larger than max length (15728640)! > at > org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:144) > at > org.apache.cassandra.stress.settings.StressSettings.getRawThriftClient(StressSettings.java:110) > at > org.apache.cassandra.stress.settings.SettingsSchema.createKeySpacesThrift(SettingsSchema.java:111) > at > org.apache.cassandra.stress.settings.SettingsSchema.createKeySpaces(SettingsSchema.java:59) > at > org.apache.cassandra.stress.settings.StressSettings.maybeCreateKeyspaces(StressSettings.java:205) > at org.apache.cassandra.stress.StressAction.run(StressAction.java:55) > at org.apache.cassandra.stress.Stress.main(Stress.java:109) > {quote} > I was able to reproduce this issue consistently via the following steps: > 1) Spin up 3 node cassandra cluster running 2.1.8 > 2) Perform cassandra-stress write n=100 > 3) Everything works! > 4) Generate keystore and truststore for each node in the cluster and > distribute appropriately > 5) Modify cassandra.yaml on each node to enable SSL: > client_encryption_options: > enabled: true > keystore: / > # require_client_auth: false > # Set trustore and truststore_password if require_client_auth is true > truststore: / > truststore_password: > # More advanced defaults below: > protocol: ssl > 6) Restart each node. > 7) Perform cassandra-stress write n=100 > 8) Get Frame Size error, cassandra-stress fails > This may be related to CASSANDRA-9325. -- This message was sent by Atlassian JIRA (v6.3.4#6332)