我有蜂巢外部桌子,我可以显示它,但我不能使用它

时间:2015-10-20 09:21:55

标签: hadoop centos hive

我在censos7和hive-0.14

上有hadoop-2.6.0

我配置

hive.metastore.warehouse.dir = /user/hive/warehouse

所以我通过stock.hql创建外部表

create external table if not exists nstocks(
...)
row format delimited fields terminated by ','
location '/user/hadoop/stock' ( *.csv path ) 

我可以显示表nstcosk并描述表

show tables

descibe formatted nstocks(external table)

但是我找不到浏览hdfs(locatlhost:50070)

我无法使用这两个声明

time hadoop jar hadoop-mpareduce-examples-2.6.0.jar wordcount /user/hive/warehouse/nstocks /out/3

time hadoop jar hadoop-mpareduce-examples-2.6.0.jar wordcount /user/hadoop/stock/nstocks /out/3

因为

Input path does not exist: hdfs .... /nstocks Exception

如果你看到格式化nstocks描述(图片) nstocks表的位置是/ user / hadoop / stock

或hive.metastore.warehouse.dir = / user / hive / warehouse

我无法理解这个问题T_T 我怎样才能解决这个问题,帮助我PLZ

0 个答案:

没有答案