最近在安装nagios,出现几个错误记录: 一 检查nagios配置的时候出现错误如下: Warning: Duplicate definition found for host 'kelly' (config file '/usr/local/nagios/etc/objects/localhost.cfg', starting on line 25) Error: Could not add object property in file '/usr/local/nagios/etc/obj…
写在前面: 最近,老项目新增了日报优化的需求,丽姐让我用触发器去实现当数据插入或者更新的时候,实现对日报表数据更新操作.嗯嗯嗯呢,之前学习数据库的时候,有碰到过触发器,但都是一跳而过,也没怎么去真正的实践,这次就权当再次去学习吧~~ 1.触发器实例: --创建触发器 create or replace trigger test_trigger2 --触发器是在insert或update动作之后执行的 after insert or update --作用于dms.kqm_leaveapply表的…
错误记录与分析 错误1:java.net.BindException: Port in use: localhost:0 datanode节点启动时报错 日志信息如下: Exiting with status : java.net.BindException: Port 解决:在/etc/hosts文件开头添加如下内容 :: localhost 127.0.0.1 localhost 错误2:datanode节点磁盘空间爆满,导致datanode启动不能启动 解决: .查看数据 hadoop f…
错误记录:Data too long for column 'xxx' at row 1 使用Flask-sqlalchemy操作数据时报错: "Data too long for column 'chapter_list' at row 1" 在网上找了很久,发现不是编码问题,也不是字符集的问题. 于是根据报错提示同时测试一下数据长度,发现是:125968(Text是6万多),果然超标了.于是上网找长字段,发现了还有其他的字段,对应MEDIUMTEXT,LONGTEXT 方法: fr…
操作: 删除主键: alter table tablename drop parimary key 添加主键: alter table tablename add primary key(column1,column2,......) 修改某一列非空: alter table tablename alter column set not null 查询11-20行数据: 查询所有表名: list tables 赋予权限操作: grant paivilege on object-type ob…
一. The method iterator() is ambiguous ConsumerIterator<byte[],byte[]> it =stream.iterator(); 这句代码老是报错,The method iterator() is ambiguous <dependencies> <dependency> <groupId>org.apache.kafka</groupId> <artifactId>kafka…
zabbix部署好,在使用一段时间后,出现了不少报错,在此简单做一记录.1)Zabbix监控界面报错“Lack of free swap space”解决公司线上部署的zabbix3.0的监控界面首页报错说无交换内存主机“Lack of free swap space”解决此问题的步骤如下:选择Configuration->Templates(模板),在模板界面中选择Template OS Linux右侧的Triggers(触发器),在触发器页面中打开Lack of free swap spac…
最近使用flask-sqlalchemy时,进行测试的时候发现日志中打印出了MySql死锁错误,查看Mysql日志发现是因为有俩条sql出现了死锁: Deadlock found when trying to get lock; try restarting transaction 查看方法是执行:show engine innodb status\G 具体原因分析: 1. 涉及的俩个sql: update ks_saei_instances set status = :status where…
错误:Error:Error: Found item Attr/border_width more than one time 这个容易,属性相同了,按照提示查询一下找出来删了就行了,注意大小写很容易忽略 Error:Execution failed for task ':app:processDebugResources'. > com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecEx…