com.impetus.kundera.KunderaException:org.apache.thrift.transport.TTransportException:读取负帧大小

时间:2015-12-30 04:42:41

标签: kundera cassandra-2.1

我正在尝试通过在cassandra中插入60k行进行负载测试,并在几千之后遇到以下错误

com.impetus.kundera.KunderaException:org.apache.thrift.transport.TTransportException:读取负帧大小

代码详情

Cassndra版本:2.1.10

<persistence-unit name="abc_pu">
        <provider>com.impetus.kundera.KunderaPersistence</provider>
        <class>com.mycompany.model.abc.ClusteredData</class>
        <exclude-unlisted-classes>true</exclude-unlisted-classes>
        <properties>
            <property name="kundera.nodes" value="nosql.bankbazaar.com"/>
            <property name="kundera.port" value="9160"/>
            <property name="kundera.keyspace" value="mydb"/>
            <property name="kundera.dialect" value="cassandra"/>
            <property name="kundera.annotations.scan.package" value="com.myCompany.model.abc"/>
            <property name="kundera.client" value="Pelops"/>
            <property name="kundera.client.lookup.class" value="com.impetus.client.cassandra.pelops.PelopsClientFactory" />

        </properties>
    </persistence-unit>

使用的图书馆

<dependency>
            <groupId>com.impetus.kundera.client</groupId>
            <artifactId>kundera-cassandra</artifactId>
            <version>3.0</version>
            <exclusions>
                <exclusion>
                    <groupId>javax</groupId>
                    <artifactId>javaee-api</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>org.apache.cassandra</groupId>
            <artifactId>cassandra-all</artifactId>
            <version>2.1.9</version>
            <exclusions>
                <exclusion>
                        <groupId>ch.qos.logback</groupId>
                        <artifactId>logback-core</artifactId>
                    </exclusion>
                <exclusion>
                        <groupId>ch.qos.logback</groupId>
                        <artifactId>logback-classic</artifactId>
                </exclusion>
            </exclusions>
        </dependency>

        <dependency>
            <groupId>com.impetus.kundera.client</groupId>
            <artifactId>kundera-cassandra-ds-driver</artifactId>
            <version>3.0</version>
        </dependency>
        <dependency>
            <groupId>com.impetus.kundera.client</groupId>
            <artifactId>kundera-cassandra-pelops</artifactId>
            <version>3.0</version>
        </dependency>

1 个答案:

答案 0 :(得分:2)

请求您从Pelops迁移到Kundera的thrift或DataStax CQL驱动程序(也由Kundera支持)。这是链接:

https://github.com/impetus-opensource/Kundera/tree/4bc732ebeea971d0449e4bf67a70023e83a72a8b/src/kundera-cassandra/cassandra-ds-driver/src/test/java/com/impetus/client/crud