[ 
https://issues.apache.org/jira/browse/HIVE-10610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15021879#comment-15021879
 ] 

Qiuzhuang Lian commented on HIVE-10610:
---------------------------------------

We still run into this issue in hive-1.2.1 with parallelly running hive shell 
embedded in Java, e.g. in sqoop hive import. Somtimes it throws error as 
follows per sqoop. According to log, it seems that Java shell process executing 
hive command is under non-existing linux dir. 

[20151123 14:29:24-DEBUG][HiveImport.java:334][RMI TCP 
Connection(60)-172.17.209.254]-- Using external Hive process.
[20151123 14:29:24-INFO][LoggingAsyncSink.java:85][Thread-441]-- shell-init: 
error retrieving current directory: getcwd: cannot access parent directories: 
No such file or directory
[20151123 14:29:24-INFO][LoggingAsyncSink.java:85][Thread-441]-- chdir: error 
retrieving current directory: getcwd: cannot access parent directories: No such 
file or directory
[20151123 14:29:24-INFO][LoggingAsyncSink.java:85][Thread-441]-- chdir: error 
retrieving current directory: getcwd: cannot access parent directories: No such 
file or directory
[20151123 14:29:24-INFO][LoggingAsyncSink.java:85][Thread-441]-- shell-init: 
error retrieving current directory: getcwd: cannot access parent directories: 
No such file or directory
[20151123 14:29:24-INFO][LoggingAsyncSink.java:85][Thread-441]-- chdir: error 
retrieving current directory: getcwd: cannot access parent directories: No such 
file or directory
[20151123 14:29:24-INFO][LoggingAsyncSink.java:85][Thread-441]-- chdir: error 
retrieving current directory: getcwd: cannot access parent directories: No such 
file or directory
[20151123 14:29:24-INFO][LoggingAsyncSink.java:85][Thread-441]-- chdir: error 
retrieving current directory: getcwd: cannot access parent directories: No such 
file or directory
[20151123 14:29:24-INFO][LoggingAsyncSink.java:85][Thread-440]-- Unable to 
determine Hadoop version information.
[20151123 14:29:24-INFO][LoggingAsyncSink.java:85][Thread-440]-- 'hadoop 
version' returned:
[20151123 14:29:24-INFO][LoggingAsyncSink.java:85][Thread-441]-- shell-init: 
error retrieving current directory: getcwd: cannot access parent directories: 
No such file or directory
[20151123 14:29:24-INFO][LoggingAsyncSink.java:85][Thread-441]-- chdir: error 
retrieving current directory: getcwd: cannot access parent directories: No such 
file or directory
[20151123 14:29:24-INFO][LoggingAsyncSink.java:85][Thread-441]-- chdir: error 
retrieving current directory: getcwd: cannot access parent directories: No such 
file or directory
[20151123 14:29:24-INFO][LoggingAsyncSink.java:85][Thread-441]-- chdir: error 
retrieving current directory: getcwd: cannot access parent directories: No such 
file or directory
[20151123 14:29:24-INFO][LoggingAsyncSink.java:85][Thread-440]-- Error occurred 
during initialization of VM java.lang.Error: Properties init: Could not 
determine current working directory. at java.lang.System.initProperties(Native 
Method) at java.lang.System.initializeSystemClass(System.java:1119)
[20151123 14:29:24-ERROR][ImportTool.java:609][RMI TCP 
Connection(60)-172.17.209.254]-- Encountered IOException running import job: 
java.io.IOException: Hive exited with status 5

> hive command fails to get hadoop version
> ----------------------------------------
>
>                 Key: HIVE-10610
>                 URL: https://issues.apache.org/jira/browse/HIVE-10610
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Shwetha G S
>            Assignee: Shwetha G S
>             Fix For: 1.2.0
>
>         Attachments: HIVE-10610.patch
>
>
> NO PRECOMMIT TESTS
> If debug level logging is enabled, hive command fails with the following 
> exception:
> {noformat}
> apache-hive-1.2.0-SNAPSHOT-bin$ ./bin/hive
> Unable to determine Hadoop version information from 13:54:07,683
> 'hadoop version' returned:
> 2015-05-05 13:54:08,014 DEBUG - [main:] ~ version: 2.5.0-cdh5.3.3 
> (VersionInfo:171) Hadoop 2.5.0-cdh5.3.3 Subversion 
> http://github.com/cloudera/hadoop -r 82a65209d6e9e4a2b41fdbcd8190c7ea38730627 
> Compiled by jenkins on 2015-04-08T22:00Z Compiled with protoc 2.5.0 From 
> source with checksum 1531e104cdad7489656f44875f3334b This command was run 
> using 
> /Users/sshivalingamurthy/installs/hadoop-2.5.0-cdh5.3.3/share/hadoop/common/hadoop-common-2.5.0-cdh5.3.3.jar
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to