Hive and PIG/Grunt shell hangs on cygwin

2019-03-02 01:38发布

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

2条回答
唯我独甜
2楼-- · 2019-03-02 02:00

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

查看更多
Rolldiameter
3楼-- · 2019-03-02 02:05

This seems to be a bug. Other people are reporting the same problem here and here. Someone solved this problem following the tutorial linked here; you can try that and see if it fixes it in your case.

查看更多
登录 后发表回答