摘要: 查看数据库 show databases; 进入数据库 use 库名 查看表 show tables; select * from 表名 hdfs传输spark sql查询 hive找到指定路径sql查询 vim gouzheng.txt 文件名字 放入数据 1 赵强 22 m 山西阳泉 2 李鹏波 阅读全文
posted @ 2019-08-15 16:17 王坤华的博客 阅读(417) 评论(0) 推荐(0) 编辑
摘要: HIVE的连接模式== 本地连接模式 直接启动hive命令 HIVE的远程连接 这里要启动HIVE的服务 thirft进行编写 hiveserver2 —- > 前台启动 后台启动 前台启动 hiveserver2 后台启动 hiveserver2 & beeline !connect jdbc:h 阅读全文
posted @ 2019-08-15 11:30 王坤华的博客 阅读(592) 评论(0) 推荐(0) 编辑
摘要: HIVE基本操作: 本地运行 set hive.exec.mode.local.auto=true; 创建表: hive> CREATE TABLE pokes (foo INT, bar STRING); Creates a table called pokes with two columns, 阅读全文
posted @ 2019-08-15 11:29 王坤华的博客 阅读(162) 评论(0) 推荐(0) 编辑