- 博客(7)
- 收藏
- 关注
原创 Mysql用户密码修改-高效完整版本
起因:安全部门审查出来某一台服务器上存在弱密码,于是要求整改。翻看之后,发现是由于Mysql用户密码过于简单造成的。
2025-12-18 14:46:39
156
原创 StarRocks报错解决方案Failed to find enough host in all backends. need: 3, Current alive backend is [10003]
SQL 错误 [1064] [42000]: Failed to find enough host in all backends. need: 3, Current alive backend is [10003]错误原因是由于只有一台节点,没有副本,而StarRocks默认的是三副本(推荐3be集群)。我们项目测试的StarRocks组件只有一台backend节点。
2025-12-16 15:21:02
125
原创 hdfs 权限问题: AccessControlException: Permission denied: user=root
工作中经常需要使用在服务器上使用shell脚本对HDFS文件所有者为“hdfs、hadoop”的文件做修改或删除操作。正常情况下脚本运行在hdfs的linux宿主机,有hdfs用户,可以切换到hdfs用户再执行。现在使用华为云主机,shell脚本运行在pod中,只有root用户,没有hdfs用户。会出现如下报错:org.apache.hadoop.security.AccessControlException: Permission denied: user=root, access=WRITE,
2025-12-06 13:41:55
268
原创 Spark调优实战
首先解释一下名词:num-executors 线程数:一般设置在50-100之间,必须设置,不然默认启动的executor非常少,不能充分利用集群资源,运行速度慢executor-memory 线程内存:参考值4g-8g,num-executor乘以executor-memory不能超过队列最大内存,申请的资源最好不要超过最大内存的1/3-1/2executor-cores 线...
2020-03-03 15:15:23
559
2
原创 hive面试题
有一张很大的表:TRLOG该表大概有2T左右TRLOG:CREATE TABLE TRLOG(PLATFORM string,USER_ID int,CLICK_TIME string,CLICK_URL string)row format delimitedfields terminated by '\t';数据:PLATFORM USER_ID CLICK_TIME CL...
2018-10-16 10:19:12
14
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅