首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

ubuntu装配hive

2012-07-03 
ubuntu安装hive从机器上拷贝hive包(因为我在windows上已经下载,并且安装不成功),解压;然后export HADOOP_H

ubuntu安装hive
从机器上拷贝hive包(因为我在windows上已经下载,并且安装不成功),解压;
然后export HADOOP_HOME和HIVE_HOME
安装成功。

bin/hive即可。

想不到在windows上搞不天不行,在ubuntu是这么easy。

===========

hadoop@ubuntu:~/hive-0.7.1$ bin/hive
Cannot find hadoop installation: $HADOOP_HOME must be set or hadoop must be in the path
配上hadoophome即可


hive> create table tt(id int,name string) row format delimited fields terminated by "," collection items terminated by "\n" stored as textfile;
FAILED: Error in metadata: MetaException(message:Got exception: java.io.FileNotFoundException File file:/user/hive/warehouse/tt does not exist.)
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
参考:
http://yymmiinngg.iteye.com/?show_full=true
$HADOOP_HOME/bin/hadoop fs -mkdir /user/hive/warehouse
注意是user不是usr哦

热点排行