spark连接cassandra配置说明
来源:互联网 发布:春晓软件注册码 编辑:程序博客网 时间:2024/06/08 16:39
Cassandra Authentication Parameters
All parameters should be prefixed with spark.cassandra.
auth.conf.factory
DefaultAuthConfFactoryName of a Scala module or class implementing AuthConfFactory providing custom authentication configurationCassandra Connection Parameters
All parameters should be prefixed with spark.cassandra.
connection.compression
Compression to use (LZ4, SNAPPY or NONE)connection.factory
DefaultConnectionFactoryName of a Scala module or class implementingCassandraConnectionFactory providing connections to the Cassandra clusterconnection.host
localhostContact point to connect to the Cassandra clusterconnection.keep_alive_ms
250Period of time to keep unused connections openconnection.local_dc
NoneThe local DC to connect to (other nodes will be ignored)connection.port
9042Cassandra native connection portconnection.reconnection_delay_ms.max
60000Maximum period of time to wait before reconnecting to a dead nodeconnection.reconnection_delay_ms.min
1000Minimum period of time to wait before reconnecting to a dead nodeconnection.timeout_ms
5000Maximum period of time to attempt connecting to a nodequery.retry.count
10Number of times to retry a timed-out queryquery.retry.delay
4 * 1.5The delay between subsequent retries (can be constant, like 1000; linearly increasing, like 1000+100; or exponential, like 1000*2)read.timeout_ms
120000Maximum period of time to wait for a read to returnCassandra DataFrame Source Parameters
All parameters should be prefixed with spark.cassandra.
table.size.in.bytes
NoneUsed by DataFrames Internally, will be updated in a future release toretrieve size from C*. Can be set manually nowCassandra SQL Context Options
All parameters should be prefixed with spark.cassandra.
sql.cluster
defaultSets the default Cluster to inherit configuration fromsql.keyspace
NoneSets the default keyspaceCassandra SSL Connection Options
All parameters should be prefixed with spark.cassandra.
connection.ssl.enabled
falseEnable secure connection to Cassandra clusterconnection.ssl.enabledAlgorithms
Set(TLS_RSA_WITH_AES_128_CBC_SHA, TLS_RSA_WITH_AES_256_CBC_SHA)SSL cipher suitesconnection.ssl.protocol
TLSSSL protocolconnection.ssl.trustStore.password
NoneTrust store passwordconnection.ssl.trustStore.path
NonePath for the trust store being usedconnection.ssl.trustStore.type
JKSTrust store typeRead Tuning Parameters
All parameters should be prefixed with spark.cassandra.
input.consistency.level
LOCAL_ONEConsistency level to use when readinginput.fetch.size_in_rows
1000Number of CQL rows fetched per driver requestinput.metrics
trueSets whether to record connector specific metrics on writeinput.split.size_in_mb
64Approx amount of data to be fetched into a Spark partitionWrite Tuning Parameters
All parameters should be prefixed with spark.cassandra.
output.batch.grouping.buffer.size
1000How many batches per single Spark task can be stored inmemory before sending to Cassandraoutput.batch.grouping.key
PartitionDetermines how insert statements are grouped into batches. Available values arenone
: a batch may contain any statementsreplica_set
: a batch may contain only statements to be written to the same replica setpartition
: a batch may contain only statements for rows sharing the same partition key value
output.batch.size.bytes
1024Maximum total size of the batch in bytes. Overridden byspark.cassandra.output.batch.size.rowsoutput.batch.size.rows
NoneNumber of rows per single batch. The default is 'auto'which means the connector will adjust the numberof rows based on the amount of datain each rowoutput.concurrent.writes
5Maximum number of batches executed in parallel by a single Spark taskoutput.consistency.level
LOCAL_ONEConsistency level for writingoutput.metrics
trueSets whether to record connector specific metrics on writeoutput.throughput_mb_per_sec
2.147483647E9*(Floating points allowed)* Maximum write throughput allowed per single core in MB/s.
Limit this on long (+8 hour) runs to 70% of your max throughput as seen on a smaller job for stability
1 0
- spark连接cassandra配置说明
- cassandra的配置说明
- cassandra的连接池配置
- Cassandra客户端连接的说明---Java版
- Cassandra客户端连接的说明---PHP版
- Spark配置参数说明
- Spark 连接 Hbase 配置
- cassandra配置
- Cassandra配置
- Spark+Cassandra优化
- Cassandra key说明
- 基于Zookeeper的Spark HA配置说明
- Cassandra连接池
- PHP连接MSSQL配置说明
- c3p0连接池配置说明
- C3P0连接池配置说明
- hibernate,连接c3p0配置说明
- Spring Data Cassandra 说明文档
- 芒果iOS开发之通过RGB值设置背景颜色
- org.springframework.dao.EmptyResultDataAccessException: Incorrect result size: expected 1, actual 0
- 前端构建工具gulpjs的使用介绍及技巧
- QTextEidt添加图片 拖动图片
- Android Studio1.4 preview 3 环境下加载so
- spark连接cassandra配置说明
- 无法加载 DLL “ SQLite.Interop.dll”
- SQL中系统临时表的使用和禁忌 及 Exec(SQLScript) 的使用
- 别墅装修——环境同样需要优化
- DIV CSS3 text-shadow字体阴影
- java socket网络编程
- 收集资料
- Redis Sentinel初体验
- module_param()