Apache Hive Installation
来源:互联网 发布:360软件卫士下载 编辑:程序博客网 时间:2024/05/17 18:01
1. Extract the latest hive package to /home/gl65073/hive
2. Set up env
$ export HIVE_HOME=/home/gl65073/hive
$ export PATH=$HIVE_HOME/bin:$PATH
$ $HADOOP_HOME/bin/hadoop fs -mkdir /tmp
$ $HADOOP_HOME/bin/hadoop fs -mkdir /user/hive/warehouse
$ $HADOOP_HOME/bin/hadoop fs -chmod g+w /tmp
$ $HADOOP_HOME/bin/hadoop fs -chmod g+w /user/hive/warehouse
3. Run hive CLI
$ $HIVE_HOME/bin/hive
4. Prepare test data file
$ cat /tmp/test.txt
vajava,adg
adsd,dds
adsd,asdf
asdf,
asdf,dddd
5. Load test data file into hive table
hive> create table pokes(k string, v string) row format delimited fields terminated by
','
stored as textfile;
OK
Time taken:
0.092
seconds
hive> load data local inpath
'/tmp/test.txt'
into table pokes;
Loading data to table
default
.pokes
Table
default
.pokes stats: [numFiles=
1
, totalSize=
46
]
OK
Time taken:
0.376
seconds
hive> select * from pokes;
OK
vajava adg
adsd dds
adsd asdf
asdf
asdf dddd
Time taken:
0.095
seconds, Fetched:
5
row(s)
0 0
- Apache Hive Installation
- Hive installation
- HIVE INSTALLATION
- apache installation
- Apache Axis2 Installation Guide
- Installation of Apache HTTPD
- apache maven installation
- Ubuntu + Apache Kafka Installation
- Apache Hbase installation
- Apache Zookeeper installation
- Apache Flume installation
- Apache Hive
- Apache Hive
- Apache Hive
- Hive学习5_Hive - Installation
- Hadoop and Spark and Hive Installation
- Hive----------Cannot find hadoop installation: $HADOOP_HOME m...
- 解决Hive installation issues: Hive metastore database is not initialized
- poj 1320 Street Numbers 解pell方程
- DBCP连接池原理分析
- Java反射机制详解
- SQL字符串截取
- Jenkins配置-Invoke ant
- Apache Hive Installation
- 腾讯打造全新云测试平台 破解软件测试行业死局
- SAP 获取工单和工序的状态
- 新手使用IDEA开发web容易出问题的一些地方
- hysbz 2038 小Z的袜子(莫队)
- java---计算器图形界面(无功能)
- LayoutInflater原理分析,深入了解View(一)
- Mysql事件学习
- c++小细碎(内容来自多次搜索,拾人牙慧)