错误处理
无影风Victorz
纸上得来终觉浅,绝知此事要躬行 https://github.com/vicotorz
展开
-
【错误排查】使用工具连接Docker-mysql报错“Public Key Retrieval is not allowed”
如果用户使用了 sha256_password 认证,密码在传输过程中必须使用 TLS 协议保护,但是如果 RSA 公钥不可用,可以使用服务器提供的公钥;可以在连接中通过 ServerRSAPublicKeyFile 指定服务器的 RSA 公钥,或者AllowPublicKeyRetrieval=True参数以允许客户端从服务器获取公钥;但是需要注意的是 AllowPublicKeyRetrieval=True可能会导致恶意的代理通过中间人攻击(MITM)获取到明文密码,所以默认是关闭的,必须显式开启。原创 2022-10-18 15:18:42 · 1050 阅读 · 1 评论 -
IDEA中编译maven打包中出现 Perhaps you are running on a JRE rather than a JDK的问题解决
报错信息:排查过程:检查了$JAVA_HOME 路径:发现本地配置的JAVA_HOME路径仅仅为JRE环境,缺少javac等文件。确定为JRE环境导致maven编译不通过问题修正:由于自己电脑配置多个java环境,使用:/usr/libexec/java_home -v 查看机器版本。使用jdk环境的目录替换了./etc/.bash_profile中的$JAVA_HOME配置。如果没有本地没有jdk配置,需要重新安装java环境后指定路径即可...原创 2021-05-11 18:55:12 · 328 阅读 · 0 评论 -
【错误处理】Java之替换“\n”符号
在去除字符串中的换行符(\n)的时候,写成str.replace("\\n", "")才能正确执行。str.replace("\n","") ,str.replaceAll("\\n",""),str.replaceAll("\n","")均替换失败参考: http://www.oschina.net/code/snippet_107039_6026——java去除字符串中的空格、回车、换行符、制表符 http://blog.csdn.net/coolwzjcool/article/.原创 2020-05-21 18:05:29 · 3230 阅读 · 1 评论 -
【错误处理】git-am is in progress
gitpull的时候出现这样的错误。Itlookslikegit-amisinprogress.Cannotrebase.用如下方法解决:rm-rf.git/rebase-apply如果采用的是sourcetree,执行控制台命令中执行上述语句即可。参考:http://www.voidcn.com/article/p-fikodend-bnx.html...原创 2020-03-18 09:58:59 · 1338 阅读 · 0 评论 -
【问题】Maven本地存在jar包,但是编译不过(Could not find artifact...)
原因是因为包含下载未成功的文件(.lastUpdated),远程仓库配置信息(_remote.repositories)每次在更新maven项目的时候,每一个jar包路径下的_remote.repositories文件都会同setting.xml中设置的仓库地址id进行判断,如果没有匹配,会自动更新该jar包的相关文件,如果未联网则会出现jar无法发现的错误,导致即使jar存在,maven项目...原创 2020-02-14 10:10:01 · 3700 阅读 · 0 评论 -
【问题】Intellij 搜索全局快捷键失效解决办法
在使用Intellij IDEA时,使用ctrl + shift + F 全局搜索时,由于输入法干扰导致失效。更改以下配置即可:原创 2019-12-13 21:07:45 · 139 阅读 · 0 评论 -
【错误处理】Hive报错:For direct MetaStore DB connections, we don't support retries at the client level
在使用hive时,出现了这样的错误:FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask. MetaException(message:For direct MetaStore DB connections, we don't support retries at the clien...原创 2018-08-31 19:40:08 · 1643 阅读 · 3 评论 -
Maven编译报错:Cannot run program "bash" :CreateProcess error=2,系统找不到指定的文件
运行报错:Caused by: java.io.IOException: Cannot run program "bash" (in directory "F:\IdeaProjects\hive-1.1.0-cdh5.7.0\common"): CreateProcess error=2, 系统找不到指定的文件。这是因为在Windows环境不能执行bash。那么需要能执行bash环境...原创 2019-09-09 14:52:39 · 4469 阅读 · 0 评论 -
【错误处理】HDFS出现的问题:File /hdfsapi/test/a.txt could only be replicated to 0 nodes instead of
最近在阿里云上进行伪分布式Hadoop开发,在本地windows的java程序对HDFS进行访问时,出现了如下问题: File /hdfsapi/test/a.txt could only be replicated to 0 nodes instead of minReplication (=1)经过多方查询,了解到问题的原因:客户端操作hdfs时候...原创 2018-05-22 21:47:28 · 2019 阅读 · 5 评论 -
【错误处理】MYSQL-远程连接错误:Host 'xxxxx' is not allowed to connect to this MySQL server
当前mysql只允许localhost连接。需要在localhost的那台机器上登入mysql后,将 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localhost"改为"%"mysql>use mysql;mysql>update user set host = '%' where user = 'root';mysql>selec...原创 2019-06-05 14:29:42 · 521 阅读 · 0 评论 -
【错误处理】hadoop hdfs 读写错误解决:java.io.IOException: Filesystem closed
报错信息:java.io.IOException: Filesystem closed参考:https://blog.csdn.net/posa88/article/details/41018031?utm_source=blogxgwz7参考:https://blog.csdn.net/qiumengkai/article/details/48682143?utm_source=blo...原创 2019-05-22 22:11:26 · 4094 阅读 · 0 评论 -
【错误处理】IDEA中抽象类报错cannot access xxx,无法访问
在idea中,某一个类实现抽象类以后,一直显示cannot access xxx,即使override抽象方法也无济于事。解决方法:重启一下idea。应该为idea的bug原创 2018-12-10 20:55:05 · 17869 阅读 · 4 评论 -
【错误处理】Could not find any valid local directory for xxxx
Could not find any valid local directory for xxxx经过分析查询,是本地hadoop.tmp.dir或者最终输出data目录存储空间不足造成的。删除/tmp目录下的文件再次执行,执行成功!...原创 2019-04-21 00:47:38 · 2134 阅读 · 0 评论