aquiles是.net下基于Thrift协议访问Cassandra的第三方类库,官方地址是:
1.下载类库文件:
2.添加引用
Aquiles.Core.dll
Aquiles.Cassandra10.dll
Thrift.dll
3.添加配置文件
<?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <section name="aquilesConfiguration" type="Aquiles.Core.Configuration.AquilesConfigurationSection,Aquiles.Core"/> </configSections> <aquilesConfiguration> <clusters> <add friendlyName="Test_Cluster"> <connection poolType="SIZECONTROLLEDPOOL" factoryType="FRAMED"> </connection> <endpointManager type="ROUNDROBIN" defaultTimeout="6000"> <cassandraEndpoints> <add address="*.*.*.*" port="9160"/> <add address="*.*.*.*" port="9160"/> <add address="*.*.*.*" port="9160"/> </cassandraEndpoints> </endpointManager> </add> </clusters> </aquilesConfiguration> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/> </startup> </configuration>