自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(34)
  • 收藏
  • 关注

原创 mysql处理this is incompatible with sql_mode=only_full_group_by

SET @@global.sql_mode ='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';SET sql_mode ='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';

2022-12-19 13:54:49 4563 1

转载 Flink启动时报错:NoSuchMethodError: org.apache.commons.cli.Option.builder

Flink启动时报错:NoSuchMethodError: org.apache.commons.cli.Option.builder

2022-10-14 11:57:07 5440

原创 Flink启动StandaloneSessionClusterEntrypoint失败

2.权限问题:/opt/module/flink-1.12.0/bin/flink-daemon.sh:行140: /tmp/flink-atguigu-standalonesession.pid: 权限不够,这时我们要修改bin/config.sh 文件,自定义目录修改tmp临时文件位置,我这里是这样DEFAULT_ENV_PID_DIR="/opt/module/flink-1.12.0/tmp"

2022-10-14 11:24:28 7353

原创 hadoop崩溃怎么办

2.删除每一台机器的hadoop下的data和logs。1.stop-dfs.sh,杀死所有进程。3.start-dfs.sh,重启。

2022-08-25 14:46:08 476

转载 kafka调试中遇到Connection to node -1 could not be established. Broker may not be available怎么解决

这是因为你的配置文件中的PLAINTEXT跟你请求的内容不同。举例来说,我在配置文件里配置的listeners=PLAINTEXT//10.127.96.1519092,但是我想测试的时候请求的是./kafka-console-consumer.sh--bootstrap-serverlocalhost9092--topictopic1--from-beginning。...

2022-07-25 12:04:04 764

原创 Exception in thread “main“ org.apache.flink.runtime.client.JobExecutionException: Job execution fail

连接重置,可能是使用不同的方式或者是重复提交flink任务,导致socket端口占用导致。

2022-07-23 17:23:56 11247 2

转载 hdfs创建文件报错 mkdir: Cannot create directory /Flink. Name node is in safe mode.

原文链接https//blog.csdn.net/weixin_44393345/article/details/106253529。版权声明本文为CSDN博主「十一师兄」的原创文章,遵循CC4.0BY-SA版权协议,转载请附上原文出处链接及本声明。据资料是说hdfs刚刚启动,还在验证和适配,所以进入安全模式,等一会儿就好了,然后我等了几分钟并没有好。get-返回安全模式是否开启的信息。wait-等待,一直到安全模式结束。enter-进入安全模式。...

2022-07-22 22:23:44 859

转载 kafka tools :unable connect to broker 100

kafka tool 访问kafka,windows系统需要配在对应的的host文件里配置主机号,文件路径在,因为kafka tool是通过主机名来访问的。

2022-07-11 17:28:47 769

转载 Spark提交报错—Exception in thread “main“ java.lang.BootstrapMethodError: java.lang.NoClassDefFoundError

今天在将代码打包上传到集群上运行时报错:问题原因:maven依赖的scala版本与实际使用的scala版本不一致。解决方案:修改依赖中的scala版本,重新编译打包,再提交到集群即可。

2022-04-09 15:57:45 1396

转载 Phoenix创建二级索引遇到的问题

Phoenix创建二级索引遇到的问题创建二级索引:create local index “idx_tel” on “employee”(“family”.“tel”);报错:Error: ERROR 102 (08001): Malformed connection url. ERROR 102 (08001): ERROR 102 (08001): Malformed connection url. :node01:2181,node02:2181,node03:2181:2181:/hbase

2022-04-04 00:34:25 250

转载 Phoenix 启动报错: Error: ERROR 726 (43M10): Inconsistent namespace mapping properties. Cannot initiate

Phoenix 启动报错:Error: ERROR 726 (43M10): Inconsistent namespace mapping properties. Cannot initiate connection as SYSTEM:CATALOG is found but client does not have phoenix.schema.isNamespaceMappingEnabled enabled (state=43M10,code=726)解决方法如下:1、删除hbase和phoe

2022-04-03 20:02:26 740

转载 zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, (ERROR: KeeperErrorCode = NoNo)

启动HBase时,第三个节点的zookeeper的日志里报了如下错误:zookeeper.ClientCnxn: Session 0x0 for server null, unexpected error, closing socket connection and attempting reconnectjava.net.SocketException: Network is unreachable;原因:三个节点的date不一致解决:打开XShell,给每个节点同时更新时间,保持da

2022-03-31 21:46:56 2574

转载 ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing

今天突然启动hbase后,在命令行上执行list命令报错:ERROR: org.apache.hadoop.hbase.PleaseHoldException: Master is initializing尝试使用如下方式解决:停止hbase、hadoop、zk集群;删除datanode节点中的临时文件,删除zk下dataDir中的version-2文件;重新格式化namenode,和zkcf;重起zk、hadoop、hbase集群;但仍然报错,参考这篇文章http://blog.csd

2022-03-29 00:37:05 529

转载 hbase启动缓慢

今天重新部署了hadoop + hbase + zookeeper ,在hbase安装完成后,进入hbase shell,每次create两个表后,再次create就会卡住进入log后查看遇到:ERROR org.apache.hadoop.hbase.regionserver.metrics.SchemaMetrics: Inconsistent configuration. Previous configuration for using table name in metrics: tru

2022-03-28 16:43:48 679

转载 Zookeeper启动失败(java.net.BindException: 地址已在使用)

[hadoop@DEV22 ~]$ opt/zookeeper-3.4.8/bin/zkServer.sh startZooKeeper JMX enabled by defaultUsing config: /home/hadoop/opt/zookeeper-3.4.8/bin/../conf/zoo.cfgStarting zookeeper ... STARTED[hadoop@DEV22 ~]$ jps8637 Jps[hadoop@DEV22 ~]$ cat zookeeper.ou

2022-03-28 00:56:59 6885

转载 linux下配置zookeeper

一:准备安装包前提条件:需要安装配置好jdk (省略)zookeeper-3.4.6.tar.gz 放在/root下二:解压并安装tar -zxvf zookeeper-3.4.6.tar.gz -C /usr/local三:创建data目录进入zookeeper-3.4.6目录,创建data目录mkdir data #等会需要配置到zoo.cfg中四:创建配置文件并修改cd confcp zoo_sample.cfg zoo.cfg #创建配..

2022-03-28 00:36:14 551

转载 Redis第二天课堂笔记

**课程目标*** 能够理解Redis的主从复制架构* 能够理解Redis的Sentinel架构* 能够理解Redis集群架构## Redis的主从复制架构 441. Redis可以配置主从复制结构,主节点就是Master节点,从节点就是Slave,Slave会不断地从Master节点同步数据2. 一个Master节点可以对应多个Slave节点3. Slave节点会向Master节点发送SYNC的请求,Master接收到SYNC请求之后,做两件事情:(初始化) 1. 第一、...

2022-03-27 18:36:39 118

转载 Redis第一天课堂笔记

**课程目标*** 能够掌握Redis不同数据类型操作* 能够使用Java API操作Redis* 能够理解Redis的两种持久化方式* 能够理解Redis的主从复制架构* 能够理解Redis的Sentinel架构* 能够理解Redis集群架构## NoSQL+MQ阶段1. 海量数据的存储(HDFS)不能覆盖所有的大数据存储应用场景,所以要学习更多的一些分布式存储来解决大数据存储的一些特定场景的问题2. 通过NoSQL + Mq阶段去敲开一个阶段的大门## NoSQL数据库发展历

2022-03-27 18:35:21 75

转载 centos连不上网怎么办

每个人的情况可能不一样,下面列出几种我遇到过的情况和解决办法方法一:这是最常见的情况保证本地电脑的 服务 里面的VMware DHCP service和VMware NAT service两个服务是启动的。重启网络服务service network restart测试是否能连网, ping www.baidu.com如果不能联网,继续往下看方法二:这个方法是比较简单的,进入到 /etc/sysconfig/network-scripts 这...

2022-03-26 20:06:46 8350 1

转载 Navicat连接MySQL时弹出:1045:Access denied for user ‘root’@’localhost’

有两种解决方法:1.授权法GRANT ALL PRIVILEGES ON *.* TO 'user'@'%' IDENTIFIED BY 'password' WITH GRANT OPTION; // %:表示从任何主机连接到mysql服务器FLUSH PRIVILEGES;或者GRANT ALL PRIVILEGES ON *.* TO 'user'@'116.30.70.187' IDENTIFIED BY 'password' WITH GRANT OPTION;//表示从指.

2022-03-24 17:51:06 361

原创 全网最详细王道考研大题,c语言详解

#include <stdio.h>#include <stdlib.h>#include <string.h>#include <math.h>#define MaxSize 50typedef int ElemType ;//定义顺序表typedef struct{ ElemType data[MaxSize]; int length;}SqList;//定义单链表typedef struct LNode{ E.

2021-08-06 17:08:26 445

原创 王道日常(c语言)

//P38 13(将两个单调递增的序列合并成一个单调递减的序列)LinkList merge_L(LinkList &A,LinkList &B){ //声明相关变量 LNode *la=A->next,*lb=B->next,*r; //初始化A链表,断链 A->next=NULL; //开始遍历(两个链表都不可以为空) while(la && lb){ //比较 if(l.

2021-08-05 17:18:36 72

原创 c语言王道日常

//王道 P38 2void Del_x_4(LinkList &L,ElemType x){ LNode *p=L->next,*pre=L,*q; //遍历链表 while(p!=NULL){ //找到数值相同节点,删除 if(p->data==x){ q=p; p=p->next; pre->next=p; free.

2021-08-03 11:34:21 65

原创 王道题目日常发布(哥德巴赫猜想,字符串合并)

//删除s-t其中的元素void del_s_t(ElemType s,ElemType t,SqList &L){ int i,j; //判断范围 if(s>=t || L.length==0){ printf("Error!"); } //找到第一个要删除的元素 for(i=0;i<L.length && L.data[i]<s;i++); //判断范围 if(i>=L.l.

2021-07-26 16:10:21 132

原创 王道日常发布

//P17 2void reverse(SqList &L){ int temp; for(int i=0;i<L.length/2;i++){ temp=L.data[i]; L.data[i]=L.data[L.length-1-i]; L.data[L.length-1-i]=temp; }}//P17 3void del_x(SqList &L,ElemType e){ int i,k=0.

2021-07-24 23:25:24 81

原创 c语言文件操作,日常记事~~

void openFile(){ FILE *fp=fopen("d:/1.txt","w"); if(fp==NULL){ perror("Error"); } fclose(fp); fp=NULL;}void writeFile(){ //打开文件 FILE *fp=fopen("d:/1.txt","w"); char ch='a'; if(fp==NULL){ perror("Error".

2021-07-19 23:55:11 8974 2

原创 考研王道数据结构第一个大题(持续更新)

#include <stdio.h>#include <stdlib.h>#include <string.h>#include <math.h>#define MaxSize 50typedef int ElemType ;//定义顺序表typedef struct{ ElemType data[MaxSize]; int length;}SqList;//初始化顺序表void InitList(SqList &.

2021-07-16 21:51:30 154

原创 c语言求单词数目,水仙花数,斐波拉契数列,九九乘法表等等相关题目

#include<stdio.h>#include<math.h>#include<stdlib.h>#include<string.h>//获得字符void getChar(){ int age; printf("请输入年龄:"); age=getchar(); putchar(age);}//水仙花数void printDaffodil(){ int a,b,c; for(int i=100.

2021-07-15 23:31:51 936 4

原创 leetcode4:空间换取时间的有效字母异位词算法,理解十分简单

bool isAnagram(char * s, char * t){ //定义两个数组 char *stemp=(char *)malloc(sizeof(char)*26); char *ttemp=(char *)malloc(sizeof(char)*26); int slen=strlen(s); int tlen=strlen(t); //首先判断s和t长度是否相同 if(slen!=tlen) return false;...

2021-06-21 00:40:16 61

原创 leetcode03:反转字符串

voidreverseString(char*s,intsSize){intlow=0,high=sSize-1,temp;intmid=(low+high)/2;while(low<=high){temp=s[low];s[low]=s[high];s[high]=temp;low++;high--;}}...

2021-06-20 17:13:02 36

原创 leetcode02:整数反转

intreverse(intx){longres=0;while(x!=0){//取最后一位数字res=res*10+x%10;//取除最后一位的剩余数字x/=10;}return(int)res==res?(int)res:0;}...

2021-06-20 17:12:00 102

原创 leetcode1:字符串中第一个唯一字符

intfirstUniqChar(char*s){intlen=strlen(s);int*count=(int*)malloc(sizeof(int)*26);for(inti=0;i<26;i++){count[i]=0;}//统计次数for(inti=0;i<len;i++){count[s[i]-'a']++;}//第一个数字为一的唯一...

2021-06-20 17:10:21 49

原创 排序题目1

#include <stdio.h>#include <stdlib.h>typedef enum{RED,WHITE,BLUE} color;//交换函数void Swap(color &a,color &b){ color temp; temp=a; a=b; b=temp;}//ShellSort(基本思想:将数组用不同的步长划分为不同的子表,对子表内部进行相关的排序,使得子表间有序,最后设置步长为1,进行一次直接插.

2021-06-04 18:21:39 100

原创 数据结构基于顺序表相关的排序算法

#include <stdio.h>#include <stdlib.h>#include <math.h>#define maxsize 500//定义顺序表typedef struct SSTable{ int data[maxsize]; int len;}SSTable;//初始化顺序表void InitList(SSTable &ST){ for(int i=0;i<maxsize;i++){ .

2021-05-30 22:52:02 535 1

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除