问题解决
文章平均质量分 82
熊言森林
我们都是小怪兽,总有一天要被奥特曼打败。
我们都是程序猿,总有一天要被BUG所淹没。
展开
-
外网通过python开发Kafka生产者出现KafkaTimeoutError:Timeout after waiting for 10 secs
在本地内外测试都能发送成功,消费者也能消费到,把测试脚本发到外网的主机运行脚本出现发不出去,且没报错,后面通过Kafka发送的回调函数发现有KafkaTimeoutError:Timeout after waiting for 10 secs错误Python测试脚本:import jsonfrom kafka import KafkaProducerdef send_method_bigjson(bootstrap_servers, topic_name, data): produc原创 2020-07-22 18:04:55 · 5685 阅读 · 1 评论 -
spark启动错误: java.lang.ClassNotFoundException: org.apache.parquet.Log
报错信息:Exception in thread "main" java.util.ServiceConfigurationError: org.apache.spark.sql.sources.DataSourceRegister: Provider org.apache.spark.sql.execution.datasources.parquet.ParquetFileFormat could not be instantiated at java.util.ServiceLoader.fai原创 2020-05-30 11:38:48 · 2426 阅读 · 0 评论 -
DataNode启动失败:org.apache.hadoop.hdfs.server.datanode.DataNode: Initialization failed for Block pool
实验环境VMware15;CentOS7;hadoop2.7设置架构图问题描述对Resource Manager做HA配置完通过start-all.sh启动集群时,发现有2个节点的node3,node4的DataNode没有启动。确认配置信息没问题后,观察node3中的datanode日志发现:Initialization failed for Block pool问题...原创 2020-03-14 15:25:30 · 5076 阅读 · 3 评论 -
python向Mysql存入数据1366, "Incorrect string value: '\\xF0\\x9F\\x98\\xAC\\xE3\\x80...'
写的爬虫小项目,爬取贴吧帖子的标题和阅读量,将数据存入MySQL错误信息:(1366, "Incorrect string value: '\\xF0\\x9F\\x98\\xAC\\xE3\\x80...' for column 'title' at row 1")存入错误的数据:「提问!????」学院附近有什么好ci的嘛原因:Mysql里UTF8编码最多只能支持3个字节,而E...原创 2019-10-20 16:51:30 · 791 阅读 · 0 评论 -
windows10环境 pip is configured with locations that require TLS/SSL错误
报错信息:pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available原因:Anaconda 环境变量未配置完全解决方法:配置完整的环境变量D:\Anaconda3D:\Anaconda3\ScriptsD:\Anacond...原创 2019-10-18 20:48:11 · 691 阅读 · 0 评论 -
关于pip install错误问题个人总结
首先问题就是安装源这个可以去https://blog.csdn.net/chenghuikai/article/details/55258957中学习也可以直接使用 - i 来指定使用哪个 url,如下图所示:pip install -i http://pypi.douban.com/simple/ 包名但是我发现还是装不上去出现许多警告WARNING: The repository ...原创 2019-09-02 19:44:31 · 2882 阅读 · 1 评论 -
字符串\x00 \xf8的意义
\x00 表示 0x00\xf8 表示 0xf8即十六进制数原创 2019-09-04 21:39:30 · 3918 阅读 · 0 评论 -
Spring问题:Class<SpringRunner> cannot be resolved to a type
使用@RunWith注解,提示报错@RunWith(SpringRunner.class)报错信息Class<SpringRunner> cannot be resolved to a type解决方法,添加import,导入jar包import org.springframework.test.context.junit4.SpringRunner;或者...原创 2019-09-28 11:08:16 · 1356 阅读 · 0 评论 -
Spring问题:java.lang.IllegalStateException: Failed to load ApplicationContext
JUnit测试时报错:java.lang.IllegalStateException: Failed to load ApplicationContext解决方法://1.查看xml配置文件的地址是否出错@ContextConfiguration("/bmi-beans.xml")//2.查看配置文件内容是否有错//3.检测是否是字符集出错...原创 2019-09-29 20:26:24 · 222 阅读 · 0 评论