上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 36 下一页
摘要: 创建表(条件之间不能有逗号 fields terminated by ',' 字段之间以逗号分隔)0: jdbc:hive2://localhost:10000/cr> create table if not exists teacher(id int,name s... 阅读全文
posted @ 2018-08-19 11:26 crr121 阅读(1694) 评论(0) 推荐(0)
摘要: beeline> !connect jdbc:hive2://localhost:10000/crConnecting to jdbc:hive2://localhost:10000/crEnter username for jdbc:hive2://localhos... 阅读全文
posted @ 2018-08-19 11:26 crr121 阅读(8297) 评论(0) 推荐(0)
摘要: hive的访问:终端访问 远程访问终端访问:安装hive,利用shell脚本访问 不可并发访问远程访问:通过JDBC连接数据仓库 支持并发访问启动hiveserver2服务:查看该命令可知hiveserver2,等价于hive --service hiveserve... 阅读全文
posted @ 2018-08-19 11:26 crr121 阅读(942) 评论(0) 推荐(0)
摘要: 0: jdbc:hive2://localhost:10000/cr> insert into student values(4,'sunny');WARNING: Hive-on-MR is deprecated in Hive 2 and may not be a... 阅读全文
posted @ 2018-08-19 11:26 crr121 阅读(2023) 评论(0) 推荐(0)
摘要: [xiaoqiu@s150 /soft/hive/conf]$ schematool -initSchema -dbType mysqlSLF4J: Class path contains multiple SLF4J bindings.SLF4J: Found bi... 阅读全文
posted @ 2018-08-19 11:25 crr121 阅读(511) 评论(0) 推荐(0)
摘要: 当执行下面的命令时出现上述errorMariaDB [(none)]> grant all privileges on hive_meta.* to 'xiaoqiu'@'%';ERROR 1133 (42000): Can't find any matching r... 阅读全文
posted @ 2018-08-19 11:25 crr121 阅读(1677) 评论(0) 推荐(0)
摘要: Access denied for user xiaoqiu@localhost (using password :NO) resolution:删除匿名用户(mysql.user表中user为空的用户)delete from user where mysql.us... 阅读全文
posted @ 2018-08-19 11:25 crr121 阅读(204) 评论(0) 推荐(0)
摘要: 现在有两张表customer和order,需要通过customerid实现customer和order的连接mapperpackage com.cr.JoinMap;import org.apache.hadoop.conf.Configuration;import ... 阅读全文
posted @ 2018-08-19 11:24 crr121 阅读(277) 评论(0) 推荐(0)
摘要: 背景:现在有两张表:customer、order,他们有个共同的cid,需要通过cid实现两张表的连接,并且通过cid进行分组排序思路:首先通过mapper从context里面获取到文件切片,从文件切片中得到路径,从而判断是customer.txt,还是order.t... 阅读全文
posted @ 2018-08-19 11:24 crr121 阅读(173) 评论(0) 推荐(0)
摘要: 换成root用户就可以了[root@s150 /home/xiaoqiu]# systemctl stop mariadb.service 阅读全文
posted @ 2018-08-19 11:24 crr121 阅读(2213) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 36 下一页