Hive和PIG / Grunt外壳挂在cygwin上 [英] Hive and PIG/Grunt shell hangs on cygwin

查看:213
本文介绍了Hive和PIG / Grunt外壳挂在cygwin上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我已经在C上安装了HIVE / PIG / Hadoop / Java6。 :驱动器。

我正在使用Cygwin版本:2.819。

我已经在cygwin上挂载了C:

我能够运行hadoop命令cygwin终端例如: fs -ls 等等

我也能够启动grunt和hive shell。

但真正的问题是:

我在grunt shell中输入的任何命令(例如: fs -ls records = LOAD ..... )我没有看到任何输出,它会挂起。如果我以show table的形式给出命令,与hive提示符类似;我没有看到任何输出,只是光标不断闪烁!任何键盘输入,并没有什么。系统似乎没有任何作用。



对我而言,一切看起来都不错,但肯定是出了问题: - )

我不确定我是否缺少一些东西。
任何帮助将不胜感激。我从.bashrc文件中附加我的类路径和环境变量:

$ p $ export $ JAVA_HOME = / c / Java / jdk1.6.0_34
export HADOOP_HOME = / c / Hadoop
export PIG_HOME = / c / PIG
export HIVE_HOME = / c / Hive

export HADOOP_BIN = $ HADOOP_HOME / bin / hadoop

export PATH = $ PATH:/c/Java/jdk1.6.0_34/bin
$ b export PATH = $ PATH:$ HADOOP_HOME / bin
export PATH = $ PATH:$ HIVE_HOME / bin

export PATH = $ PATH:$ PIG_HOME / bin


解决方案

以上链接对我来说没有帮助。以下解决方案 - 更改 CYGWIN快捷方式物业帮助。

I am running Hadoop on local mode on my windows 7 machine (32 Bit).

I've installed HIVE/PIG/Hadoop/Java6 all on the C: drive.
I am using Cygwin version: 2.819.
I've mounted C: on the cygwin.
I am able to run hadoop commands from the cygwin terminal for example : fs -ls etc.
I am also able to start grunt and hive shells.

But the real problem is:
Any command I enter on grunt shell (example: fs -ls or records = LOAD..... ) I do not see any output, it kind of hangs. Similarly with the hive prompt if I give the command as show tables ; I do not see any output just cursor keeps on blinking! Any keyboard inputs and gives NOTHING. System appears to be doing NOTHING.

To me everything looks fine but definitely something is going wrong :-)

I am not sure if I am missing something. Any help will be highly appreciated. I am attaching my classpath and environment variables from .bashrc file:

export JAVA_HOME=/c/Java/jdk1.6.0_34
export HADOOP_HOME=/c/Hadoop
export PIG_HOME=/c/PIG
export HIVE_HOME=/c/Hive

export HADOOP_BIN=$HADOOP_HOME/bin/hadoop

export PATH=$PATH:/c/Java/jdk1.6.0_34/bin

export PATH=$PATH:$HADOOP_HOME/bin
export PATH=$PATH:$HIVE_HOME/bin

export PATH=$PATH:$PIG_HOME/bin

解决方案

The above links did not help in my case. The following solution - to change the CYGWIN shortcut properties helped.

这篇关于Hive和PIG / Grunt外壳挂在cygwin上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆