![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
hive
安心做个小废物
这个作者很懒,什么都没留下…
展开
-
pyspark ValueError: Some of types cannot be determined after inferring
场景:当pandas的DF转换成spark的DF的时候报错 ValueError: Some of types cannot be determined after inferring报错原因是 存在字段spark无法推断它的类型解决方案,直接全部转换成strb['request_market'] = b['request_market'].astype(str)b['request_vin'] = b['request_vin'].astype(str)b['request_br...原创 2021-01-27 18:24:46 · 4557 阅读 · 0 评论 -
Mysql忘记密码 ERROR 1045 (28000): Access denied for user ‘root‘@‘localhost‘ (using passwor:yes)
linux下当我输入mysql -uroot -p 之后让我输入密码输入完密码后 报错ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using passwor:yes)分析了一下报错的原因是密码错误引起的,我这边是忘记了密码(所以下面的操作是重置密码步骤)修改 /etc/my.cnf 文件,在文件中添加skip-grant-tables(如图), 保存之后 重启mysql 命令 s...原创 2021-01-07 17:22:09 · 6820 阅读 · 1 评论 -
SQL 中常用的日期函数以及SQL中常见的日期转换
1.SQL 中常用的日期函数当前的时间:now()当前年月日curdate()当前的时刻curtime()日期的运算datediff('2020-10-20','1996-10-29')date_diff(time,time1):返回两个日期之间(time,time1)的天数timediff(time,time1):两个日期相减 time-time1,返回 time 差值timestampdiff(unit,begin,end):返回end-begin的结果,其中begin和end.原创 2020-11-03 10:33:31 · 1768 阅读 · 0 评论 -
sql delete和truncate两者的区别
原创 2020-07-09 13:50:09 · 259 阅读 · 0 评论 -
Error: Could not open client transport with JDBC Uri: jdbc:hive2://slave3:10000: java.net.ConnectExc
HIVE客户端连接服务端:拒绝连接问题报错如下:WARN jdbc.HiveConnection: Failed to connect to slave3:10000Could not open connection to the HS2 server. Please check the server URI and if the URI is correct, then ask the administrator to check the server status.Error: Could.原创 2020-07-01 22:19:20 · 1527 阅读 · 0 评论