Support Questions
Find answers, ask questions, and share your expertise

ozzie shell script not executing? Error Main class [org.apache.oozie.action.hadoop.ShellMain], exit code 1- JA018?

Explorer

job.properties

nameNode=hdfs://ns613.mycyberhosting.com:54310

jobTracker=ns613.mycyberhosting.com:8032

queueName=default

user.name=root

oozie.libpath=${nameNode}/user/root/share/lib/lib_20160905172157

oozie.use.system.libpath=true seeds_shRoot=seeds_sh oozie.wf.application.path=${nameNode}/user/${user.name}/${seeds_shRoot}/apps/shell

workflow.xml

<?xml version="1.0" encoding="UTF-8"?>

<workflow-app xmlns="uri:oozie:workflow:0.4" name="seeds-shell-wf">

<start to="seed-shell"/>

<action name="seed-shell">

<shell xmlns="uri:oozie:shell-action:0.1">

<job-tracker>${jobTracker}</job-tracker>

<name-node>${nameNode}</name-node>

<exec>job.sh</exec>

<env-var>HADOOP_USER_NAME=root</env-var>

<file>/user/root/seeds_sh/job.sh#job.sh</file>

</shell> <ok to="end"/>

<error to="kill"/> </action>

<kill name="kill">

<message>Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>

</kill> <end name="end"/> </workflow-app>

script- job.sh

/home/c1/apache-nutch-2.3.1/runtime/deploy/bin/crawl /user/root/seeds_sh/input-data/seeds_test 2http://ns613.mycyberhosting.com:8983/solr/ddcds 1

7 REPLIES 7

Re: ozzie shell script not executing? Error Main class [org.apache.oozie.action.hadoop.ShellMain], exit code 1- JA018?

Explorer

You need to check the launcher job for more information. Please check and provide more information from there.

Re: ozzie shell script not executing? Error Main class [org.apache.oozie.action.hadoop.ShellMain], exit code 1- JA018?

Explorer

where to look for launcher job logs

Re: ozzie shell script not executing? Error Main class [org.apache.oozie.action.hadoop.ShellMain], exit code 1- JA018?

Guru

we need some input there but your namenode and jobtracker ports don't look good at a first glance (usually 8020 and 8050)

Re: ozzie shell script not executing? Error Main class [org.apache.oozie.action.hadoop.ShellMain], exit code 1- JA018?

Explorer

namenode and resourcemanager are configured with these ports only namenode 54310 and resourcemanager 8032

Re: ozzie shell script not executing? Error Main class [org.apache.oozie.action.hadoop.ShellMain], exit code 1- JA018?

Guru

please post the logs : oozie.log, and you'll find the launcher logs in the resourcemanager UI

Re: ozzie shell script not executing? Error Main class [org.apache.oozie.action.hadoop.ShellMain], exit code 1- JA018?

Explorer

@Laurent Edel attaching the log files here...please help me out to resolve the issue... Thanks..stderr-master-node.txtsyslog-master-node.txtstderr-slave-node.txtstdout-slave-node.txtsyslog-slave-node.txt.....these are the resourcemanager logs..

Re: ozzie shell script not executing? Error Main class [org.apache.oozie.action.hadoop.ShellMain], exit code 1- JA018?

Explorer

oozie logsoozie-log.txt