![](https://img-blog.csdnimg.cn/20191222215310236.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Exceptions
开发中遇见错误以及异常的处理方法
来自偶然的尘土
生命、生存、生活!
展开
-
Pycharm里注释颜色异常
Pycharm版本:Pycharm 2020.1.1 (Community Edition)python版本:2.7背景:在写代码中发现注释颜色是一块明显的黄色,如图提示信息为 :byte literal contains characters> 255处理方法:设置脚本字符编码#!/usr/bin/env python# -*-coding: utf -8-*-...原创 2020-06-05 23:43:06 · 1232 阅读 · 0 评论 -
MySQL8修改密码报错 :“You have an error in your SQL syntax”
MySQL版本:Server version: 8.0.20 MySQL Community Server - GPL win10系统使用MySQL8版本以前的命令修改密码:set password=password('新密码');这个提示语法错误;在MySQL8新版中修改密码的命令给严格限制了,应该使用:alter user'root'@'localhost' identified with mysql_native_password by 'new_password' ;..原创 2020-06-05 23:30:53 · 2127 阅读 · 6 评论 -
Hadoop错误之YarnException
在使用azkaban做任务调度时候发现Hadoop错误:头信息为下面内容:19/07/02 18:37:38 INFO mapreduce.Job: map 0% reduce 0%19/07/02 18:37:38 INFO mapreduce.Job: Job job_1562063149428_0002 failed with state FAILED due to: App...原创 2019-07-02 19:29:41 · 775 阅读 · 0 评论 -
本地yum源安装软件时遇见--skip-broken rpm -Va --nofiles --nodigest
在本地安装impala时遇见: You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest解决方案:在网上找了一堆答案,起到作用的其中一个方法方案: 检查自己yum配置是否存在问题,检查无误后重新清掉yum缓冲即可...原创 2019-07-03 19:07:41 · 5028 阅读 · 2 评论 -
处理CDH环境Hadoop:NameNode is not formatted
缘由:搭建impala配置hdfs-site.xml后需要 ,重新启动整个集群(确保集群使用状况);重启后出现master无法启动java.io.IOException: NameNode is not formatted. at org.apache.hadoop.hdfs.server.namenode.FSImage.recoverTransitionRead(FSImage.jav...原创 2019-10-24 13:19:45 · 1771 阅读 · 0 评论 -
root权限下操作root权限不够大????
DN服务重新启动失败:java.io.IOException: the path component: '/var/run/hdfs-sockets' is world-writable. Its permissions are 0777. Please fix this or select a different socket path.root is not God,...转载 2019-07-05 23:27:30 · 1481 阅读 · 0 评论