You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Ken Krugler <kk...@transpac.com> on 2014/08/20 23:54:48 UTC

MiniMRClientCluster and JAVA_HOME

Hi all,

I'm having fun trying to update some mini-cluster test code to Hadoop 2.2.0

One thing I ran into is that it seems as though MiniMRClientCluster depends on there being a /bin/java command.

Without this being a symlink to my real JAVA_HOME/bin/java I get the dreaded "/bin/bash: /bin/java: No such file or directory" error 127 when trying to run test jobs using the mini-cluster.

I've verified this is the same when running the TestMiniMRClientCluster tests (from Hadoop 2.2.0 source).

Is there some implicit assumption that this has to be set? If so, that's a problem for build servers.

If not, then what else needs to be configured in order to avoid this issue?

Thanks,

-- Ken

PS - And why, oh why is "target" hard-coded all over the place in the mini-cluster code as the directory (from CWD) for logs, data blocks, etc?

--------------------------
Ken Krugler
+1 530-210-6378
http://www.scaleunlimited.com
custom big data solutions & training
Hadoop, Cascading, Cassandra & Solr


Re: MiniMRClientCluster and JAVA_HOME

Posted by Andre Kelpe <ak...@concurrentinc.com>.
On Wed, Aug 20, 2014 at 11:54 PM, Ken Krugler <kk...@transpac.com>
wrote:

>
>
> PS - And why, oh why is "target" hard-coded all over the place in the
> mini-cluster code as the directory (from CWD) for logs, data blocks, etc?
>
>
https://issues.apache.org/jira/browse/YARN-1442

- André


-- 
André Kelpe
andre@concurrentinc.com
http://concurrentinc.com

Re: MiniMRClientCluster and JAVA_HOME

Posted by Andre Kelpe <ak...@concurrentinc.com>.
On Wed, Aug 20, 2014 at 11:54 PM, Ken Krugler <kk...@transpac.com>
wrote:

>
>
> PS - And why, oh why is "target" hard-coded all over the place in the
> mini-cluster code as the directory (from CWD) for logs, data blocks, etc?
>
>
https://issues.apache.org/jira/browse/YARN-1442

- André


-- 
André Kelpe
andre@concurrentinc.com
http://concurrentinc.com

Re: MiniMRClientCluster and JAVA_HOME

Posted by Andre Kelpe <ak...@concurrentinc.com>.
On Wed, Aug 20, 2014 at 11:54 PM, Ken Krugler <kk...@transpac.com>
wrote:

>
>
> PS - And why, oh why is "target" hard-coded all over the place in the
> mini-cluster code as the directory (from CWD) for logs, data blocks, etc?
>
>
https://issues.apache.org/jira/browse/YARN-1442

- André


-- 
André Kelpe
andre@concurrentinc.com
http://concurrentinc.com

Re: MiniMRClientCluster and JAVA_HOME

Posted by Andre Kelpe <ak...@concurrentinc.com>.
On Wed, Aug 20, 2014 at 11:54 PM, Ken Krugler <kk...@transpac.com>
wrote:

>
>
> PS - And why, oh why is "target" hard-coded all over the place in the
> mini-cluster code as the directory (from CWD) for logs, data blocks, etc?
>
>
https://issues.apache.org/jira/browse/YARN-1442

- André


-- 
André Kelpe
andre@concurrentinc.com
http://concurrentinc.com