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

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

问题描述

我在 Windows 7 机器(32 位)上以本地模式运行 Hadoop.

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

我已经在 C: 驱动器上安装了 HIVE/PIG/Hadoop/Java6.
我使用的是 Cygwin 版本:2.819.
我已经在 cygwin 上安装了 C:.
我可以从 cygwin 终端运行 hadoop 命令,例如:fs -ls
我还可以启动 grunt 和 hive shell.

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.

但真正的问题是:
我在 grunt shell 上输入的任何命令(例如: fs -lsrecords = LOAD..... )我看不到任何输出,它有点挂起.如果我将命令作为 show tables 给出,则与 hive 提示类似;我没有看到任何输出只是光标一直闪烁!任何键盘输入,什么都不给.系统似乎什么也没做.

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 :-)

我不确定我是否遗漏了什么.任何帮助将不胜感激.我正在从 .bashrc 文件中附加我的类路径和环境变量:

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

推荐答案

以上链接对我的情况没有帮助.以下解决方案 - 更改 CYGWIN 快捷方式属性有帮助.

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

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

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