简体   繁体   English

在Windows(Cygwin)上安装Hive(Hadoop)

[英]Installing Hive (Hadoop) on windows (Cygwin)

I've just installed hadoop on windows using cygwin which works fine, and now I am installing Hive . 我刚刚使用cygwin在Windows上安装了hadoop,效果很好,现在我正在安装Hive I am running it as: 我将其运行为:

bin/hive -hiveconf java.io.tmpdir=/cygdrive/c/cygwin/tmp
OR
bin/hive -hiveconf java.io.tmpdir=/tmp

(both give the same problem) as I have found out there is a bug with the windows naming convension ( https://issues.apache.org/jira/browse/HIVE-2388... ) (都给同一个问题),因为我发现Windows命名约定存在一个错误( https://issues.apache.org/jira/browse/HIVE-2388 ...

When I run the above command, Hive seems to load fine, but when I enter " show tables; " I get no response. 当我运行上面的命令时,Hive似乎加载得很好,但是当我输入“ show tables; ”时,我没有任何响应。 This is the same for all queries. 所有查询都一样。 CREATE TABLE etc, there is no response CREATE TABLE等,没有响应

Its the same problem as this guy: http://mail-archives.apache.org/mod_mbox... 与这个人的问题相同: http://mail-archives.apache.org/mod_mbox ...

Any ideas? 有任何想法吗?

I resolved a similar issue and successfully ran HIVE after starting all Hadoop daemons 我启动了所有Hadoop守护程序后,解决了类似的问题并成功运行了HIVE

  • namenode 名字节点
  • datanode 数据节点
  • jobtracker 工作追踪器
  • Task Tracker 任务追踪器

Running queries from files using hive -f <filename> , instead of writing queries directly at the HIVE command prompt. 使用hive -f <filename>从文件运行查询,而不是直接在HIVE命令提示符下编写查询。 Additionally, you may also use bin/hive -e 'SHOW TABLES' 此外,您还可以使用bin/hive -e 'SHOW TABLES'

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM