hive-0.13安裝
hadoop2.4.1完全分散式安裝 hadoop2.4.1完全分散式安裝 :http://blog.itpub.net/26613085/viewspace-1219710/
[hadoop@master ~]$ id
groups=500(hadoop)
[hadoop@master ~]$ pwd
/home/hadoop
[hadoop@master ~]$ ll
total 269008
-rwxrwxrwx
1 hadoop hadoop 54246778 Jul 17 14:01
apache-hive-0.13.1-bin.tar.gz
drwxrwxr-x 4 hadoop hadoop 4096 Jul 15 22:42 dfs
drwxr-xr-x 10 hadoop hadoop 4096 Jul 15 23:30 hadoop-2.4.1
-rwxrwxrwx 1 root root 138656756 Jul 15 17:12 hadoop-2.4.1.tar.gz
drwxrwxr-x 8 hadoop hadoop 4096 Jul 17 00:27 hbase-0.98.2-hadoop2
-rwxrwxrwx 1 hadoop hadoop 82246622 Jul 16 23:22 hbase-0.98.2-hadoop2-bin.tar.gz
drwxrwxr-x 3 hadoop hadoop 4096 Jul 15 23:30 tmp
drwxrwxr-x 3 hadoop hadoop 4096 Jul 17 00:27 zookeeper
[hadoop@master ~]$ tar
-zxvf apache-hive-0.13.1-bin.tar.gz
[hadoop@master ~]$ ll
drwxrwxr-x 8 hadoop hadoop 4096 Jul 17 14:02 apache-hive-0.13.1-bin
-rwxrwxrwx 1 hadoop hadoop 54246778 Jul 17 14:01 apache-hive-0.13.1-bin.tar.gz
drwxrwxr-x 4 hadoop hadoop 4096 Jul 15 22:42 dfs
drwxr-xr-x 10 hadoop hadoop 4096 Jul 15 23:30 hadoop-2.4.1
-rwxrwxrwx 1 root root 138656756 Jul 15 17:12 hadoop-2.4.1.tar.gz
drwxrwxr-x 8 hadoop hadoop 4096 Jul 17 00:27 hbase-0.98.2-hadoop2
-rwxrwxrwx 1 hadoop hadoop 82246622 Jul 16 23:22 hbase-0.98.2-hadoop2-bin.tar.gz
drwxrwxr-x 3 hadoop hadoop 4096 Jul 15 23:30 tmp
drwxrwxr-x 3 hadoop hadoop 4096 Jul 17 00:27 zookeeper
[hadoop@master ~]$ cd
apache-hive-0.13.1-bin/conf
[hadoop@master conf]$ vi hive-site.xml
[root@master hadoop]# vi
/etc/profile
export HIVE_HOME=/home/hadoop/apache-hive-0.13.1-bin
export PATH=$HIVE_HOME/bin:$PATH
[root@master hadoop]#source /etc/profile
[root@master hadoop]# su – hadoop
[hadoop@master ~]$ hive
Logging initialized using configuration in
jar:file:/home/hadoop/apache-hive-0.13.1-bin/lib/hive-common-0.13.1.jar!/hive-log4j.properties
hive> create table
tt(id int,name string); hive>
select * from tt;
OK Time taken: 0.693 seconds
hive> select * from tt;
OKTime taken:
1.054 seconds
檢視下hadoop的檔案結構,可以發現有了一些變化
[hadoop@master conf]$
hadoop fs -ls /user/hive/warehouse
14/07/17 16:46:05 WARN
util.NativeCodeLoader: Unable to load native-hadoop library for your
platform... using builtin-java classes where applicable
Found 1 items
drwxr-xr-x - hadoop supergroup 0 2014-07-17 16:44 /user/hive/warehouse/tt
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26613085/viewspace-1221351/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- codis安裝 (java 安裝 + zookeeper 安裝 + go 安裝 + codis 安裝JavaGo
- 安裝npm 解除安裝npm 安裝apidocNPMAPI
- mysql安裝 (yum 安裝)MySql
- MMM安裝、MHA安裝
- mysql安裝------RPM包安裝及解除安裝MySql
- oracle安裝:OUI安裝Oracle(圖形介面安裝)OracleUI
- ffmpeg安裝之mac安裝Mac
- docker安裝及解除安裝Docker
- 02 安裝git、安裝TortoiseGitGit
- Ubuntu解除安裝和安裝Ubuntu
- Orace RAC安裝-DNS安裝DNS
- caffe安裝系列——安裝OpenCVOpenCV
- SPARK 安裝之scala 安裝Spark
- mac 安裝opencv homebrew安裝MacOpenCV
- Oracle 安裝與解除安裝Oracle
- solaris mysql 安裝 解除安裝MySql
- BiocManager安裝,devtools安裝dev
- JDK安裝和解除安裝JDK
- 安裝HomeBrew提示已安裝並無法解除安裝
- SQL Server 2012 安裝——安裝 OR 解除安裝SQLServer
- win10安裝版怎麼安裝_安裝版win10安裝教程Win10
- mysql安裝-----二進位制包安裝及解除安裝MySql
- cocoapods安裝/解除安裝/使用
- Mac Redis安裝與解除安裝MacRedis
- [ 安裝 ] Zeppelin安裝步驟!
- Ubuntu安裝和解除安裝mongodbUbuntuMongoDB
- linux 安裝yum 安裝phpLinuxPHP
- [雲原生]Docker - 安裝&解除安裝Docker
- JDK的安裝與解除安裝JDK
- selenium 安裝與 chromedriver安裝Chrome
- ORACLE TEXT安裝與解除安裝Oracle
- Centos 安裝yum,安裝ansibleCentOS
- zabbix安裝—–nginx安裝和配置Nginx
- LAMP原始碼安裝+wordpress安裝LAMP原始碼
- mysql非安裝包安裝教程MySql
- kratos安裝及依賴安裝
- Linux安裝解除安裝MySQLLinuxMySql
- MySQL 5.7 原始碼安裝、Yum倉庫安裝、RPM安裝、二進位制安裝MySql原始碼