org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.hdfs.server.namenode.SafeModeException): Cannot create directory /tmp/hive/root/5a62374a-9509-4d20-befb-de0e00c0e7ad/hive_2019-06-14_11-12-24_067_6655769013562582754-1/-mr-10016. Name node is in…
参考博客:http://blog.csdn.net/lanchengxiaoxiao/article/details/40982771 1.在cmd窗口通过sqlplus连接数据库 C:\Users\Administrator>sqlplus sys/@192.168.0.54/oanet as sysdba 2.找出打开数据库的时候报错的地方 SQL> select open_mode from v$database; 3.试着打开数据库 SQL> alter database ope…
SQL语句报错(一) 1.具体报错如下: ORA-01861:文字格式字符串不匹配 01861. 00000 - "literal does not match format string" *Cause:Literals in the put must be the same length as literals in the format string (with the exception of leading whitespace). If the "FX"…
今天当我从github上下载一个工程,并把它的库文件导入eclipse中,发现switch语句报错case expressions must be constant expressions : 解决方法是: 先把那个工程的properties->android->is Library勾选上的勾去掉 然后clean一下工程就好了: 因为这个工程我要作为另一个工程的库文件, 所以最后还是要继续勾选上is Library哦! 不过这次不会报错啦! 当然要想根本解决就是把switch-case语句换成…
假如我们数据库中有两张表Person和Book Person表: CREATE TABLE [dbo].[Person]( ,) NOT NULL, ) NULL, ) NULL, [CreateTime] [datetime] NULL, [UpdateTime] [datetime] NULL, CONSTRAINT [PK_Person] PRIMARY KEY CLUSTERED ( [ID] ASC )WITH (PAD_INDEX = OFF, STATISTICS_NORECOMP…
mysql5.7执行sql语句报错:In aggregated query without GROUP BY, expression #1 of SELECT list contains nonaggregated column 'yunva_changke.u.user_id'; this is incompatible with sql_mode=only_full_group_by 1.方法1,需要重启mysql服务 编辑/etc/my.cnf文件,加入如下参数,重启mysql sql_m…
数据库查询语句报错-ORA-00911: invalid character 根据自己经验总结下: 1.都是分号惹的祸,有时候sql语句后面有分好导致这种错误 2.还有一种是从别处copy过来的sql语句,中间的空格是中文导致的,这个很难发现 3.还有一种可能是字符编码问题,不过是这种问题的可能性很小 用户可以自己尝试下是哪一种导致的.…
使用场景:在spring data jpa下使用@Query("hql语句") 然后在项目启动的时候报错 hql语句报错:antlr.NoViableAltException: unexpected token: roleName 仔细查看了一下代码: @Query(value = "from Role as r left join r.department as d left join d.company as c where" + " (:depart…
shell脚本,if判断语句报错[: too many arguments 我遇到过两种情况: 1.第一中情况就是网上大家说的,字符串变量中可能存在空格,shell解析时将其认为是多个参数,再进行判断时,无法知道该获取哪个值,例如: 脚本ee.sh: strings1="hello world" strings2="hello world" if [ $strings1 = $strings2 ] then         echo "strings1 i…
刚搭建完mysql 8.0以后会: 一.表区分大小写, 二.执行正确的sql语句成功且会报:[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and ....错误. 版本是mysql 5.6或 myql 8.0以下方案解决 : 1.安装完后,执行sql语句没问题,但是会报错:在/etc/my.cnf数据库的配置文件加上下面这段配置然后重启mysql服务 sql_mode=STRICT_TRANS_TAB…