![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Hive
命运的左岸
日拱一卒,功不唐捐
展开
-
hive
安装1.前提 配置Java hadoop/etc/profileJAVA_HOMEHADOOP_HOME2.解压tar -zxvf cdd ../bin启动 hadoop sbin目录中start-all.shcd ./hive/bin./hive show databases ;create database p...原创 2017-06-28 22:50:09 · 79 阅读 · 0 评论 -
mysql安装
一、上传mysql-servie.rpmmysql-client.rpm二、检查是否安装过rpm -qa | grep -i mysql-q 查询-a 全部(系统默认会安装一部分软件)若有,则删除rpm -ev --nodeps mysql-libs-5.1.71-1.el6.x86_64-- nodes 直接删除会提示失败,软件之间存在依赖关系...原创 2017-06-30 21:38:57 · 68 阅读 · 0 评论 -
hive mysql
一、cd /hive/bin./hive create database test ;show databases ;../hive/bin/hive show databases;为空创建的数据结果存放在 metastore.db 中会检索当前目录中metastore.db存放的 信息第二种启动方式,是在其他目录中进行启动的,检索不到met...原创 2017-06-30 23:26:55 · 102 阅读 · 0 评论 -
hive
一、内部表,先有表,后有数据外部表,先有数据,后有表create table stu(id int,name string) ;在 hadoop hdfs 上新建 aaa 路径,上传 txt 建立外部表create external table stu(id int ,name string ) row format delimited fields termina...原创 2017-07-02 21:23:27 · 73 阅读 · 0 评论 -
hive 自定义函数
HIVE - UDF use define funcion 用户自定义hive 的function toUpper(str) 将 str 转换为 大写一、新增 java 工程1.新增 lib 文件夹解压 hive.jar 复制 lib 下的 jar 包 至 lib 文件夹右键 add builde path2.新增 包 com.hive.te...原创 2017-07-09 22:03:36 · 89 阅读 · 0 评论 -
hive java api
1.启动 hadoop start-all.sh2.启动hive ./hive --service hiveserver2 3.新建Java 工程导入jar包导入hive\lib目录下的hive-jdbc-1.2.0-standalone.jar导入hadoop-2.7.1\share\hadoop\common下的hadoop-common-2.7.1.jar...原创 2017-07-10 21:47:30 · 101 阅读 · 0 评论 -
sqoop
sqoop 实现hdfs 与 msql 之间互传sqoop识别jdk hadoop 的安装目录,所需直接解压无需配置mysql --> hdfs ./sqoop import --connect jdbc:mysql:///park --username root --password root --table student --target-dir '/park/s...原创 2017-07-22 22:40:43 · 85 阅读 · 0 评论