报错解决方案
汤川汤川
悄悄把梦想都变成了现实
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Hive执行命令卡在Kill Command 无法运行的解决方案
执行简单查询select count(*) from test;任务开始运行之后卡住不动,也不报错,信息如下:hive (default)> select count(*) cnt from emp;Query ID = root_20200220175612_bb456a03-2298-4d20-82b9-c0a96ae859a0Total jobs = 1Launching ...原创 2020-02-20 23:21:26 · 4584 阅读 · 2 评论 -
Hive打不开解决方案.The last packet sent successfully to the server was 0 milliseconds ago
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failureThe last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any...原创 2020-02-20 23:07:43 · 2501 阅读 · 0 评论 -
TypeError: 'dict_keys' object is not subscriptable
运行Python3报错TypeError: 'dict_keys' object is not subscriptable这是因为在python3中keys不允许切片,先转List再切片就好了示例: 将下行的代码转为firstStr = inputTree.keys()[0]此行代码即可firstStr = list(inputTree.keys())[0]...原创 2019-05-10 09:31:28 · 11449 阅读 · 2 评论 -
TypeError: write() argument must be str, not bytes UnicodeDecodeError: 'gbk' codec can't decode byte
运行python3报错:TypeError: write() argument must be str, not bytes或者UnicodeDecodeError: 'gbk' codec can't decode byte 0x80 in position 0: illegal multibyte sequence出错原因: Python3给open函数添加了名为encoding的...原创 2019-05-10 09:37:03 · 502 阅读 · 0 评论 -
Python3中小括号()、中括号[]、花括号{}的区别
Python中小括号、中括号、花括号的区别介绍小括号()示例中括号[]示例花括号{}示例介绍在Python语言中最常见的括号有三种,分别是:小括号()、中括号[]、花括号{};其作用也不相同,分别用来代表不同的Python基本内置数据类型。小括号()Python中的小括号():代表tuple元祖数据类型,元祖是一种不可变序列。示例>>> a = (12,23)&g...原创 2019-05-10 09:47:11 · 7982 阅读 · 0 评论
分享