从机器上拷贝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哦
然后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哦
本文介绍在Ubuntu系统中安装Hive的过程及遇到的问题解决办法。包括设置HADOOP_HOME和HIVE_HOME环境变量,创建Hive表时常见的错误及其解决方法。
3036

被折叠的 条评论
为什么被折叠?



