incubator-oozie-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dejace sr <deja...@gmail.com>
Subject Could be a config issue: Execute an unix command thru oozie java action.
Date Wed, 05 Oct 2011 23:28:29 GMT
Below could be a configuration issue in the compute or hadoop cluster.
Not sure what should be changed to avoid this problem.

Pls let me know your thoughts.

Thanks,
DJ

What I am trying to do?
Execute an unix command thru oozie java action.

Below are the errors I get:

1. >>> Invoking Main class now >>>

Command being executed = hadoop fs -lsr /user/dr/pipeline
Error occurred during initialization of VM
Could not reserve enough space for object heap
1
Execution failed


2. >>> Invoking Main class now >>>

Command being executed = ls -ltr
total 20
drwxr-xr-x 2 mapred mapred  4096 Oct  5 15:09 tmp
-rwxrwxrwx 1 mapred mapred 15248 Oct  5 15:09 action.xml
0
Execution Successful


oozie workflow.xml

<action name='test3'>
<java>
<job-tracker>${jobTracker}</job-tracker>
<name-node>${nameNode}</name-node>
<configuration>
<property>
<name>mapred.job.queue.name</name>
<value>default</value>
</property>
</configuration>

<main-class>CommandExecutor</main-class>
<arg>hadoop</arg>
<arg>fs</arg>
<arg>-lsr</arg>
<arg>/user/dr/pipeline</arg>
</java>

<ok to='end' />
<error to='fail' />
</action>


similar for "ls -ltr"

NOTE:
The java program CommandExecutor does not have any issue when ran on unix
command prompt
I am using apache's org.apache.commons.exec.Executor to execute external
programs/commands.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message