安装包 pykafka 代码如下: from pykafka import KafkaClient client = KafkaClient(hosts="test43:9092") print(client.topics) topic = client.topics[b'rokid'] #topic名称 consumer = topic.get_simple_consumer() for record in consumer: if record is not None: value…
读取redis中的数据时出现:MISCONF Redis is configured to save RDB snapshots 以下为异常详细信息: Exception in thread "main" redis.clients.jedis.exceptions.JedisDataException: MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist o…
select 列名 as 字段名 from openBowSet('MSDASQL.1','driver=Microsoft Excel Driver(*.xls);dbq=文件存放地址','select * from [Sheet1$]') sql 读取excel中的数据 注意:需要指定excel模板…