<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: how to execute oozie shell action with script having curl command in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/how-to-execute-oozie-shell-action-with-script-having-curl/m-p/98191#M61331</link>
    <description>&lt;P&gt;@ Kulkarni while running your script I am getting the following error in horton works&lt;/P&gt;&lt;P&gt;sudo  oozie job -oozie &lt;A href="http://XXXXXXXXXXXXXXXXXXXXXX:11000/oozie" target="_blank"&gt;http://XXXXXXXXXXXXXXXXXXXXXX:11000/oozie&lt;/A&gt;
-config /home/ubuntu/testing/shell/job.properties –submit&lt;/P&gt;&lt;P&gt;While running I am
getting following error&lt;/P&gt;&lt;P&gt;Error: E0803 : E0803:
IO error, E0603: SQL error in operation, &amp;lt;openjpa-2.2.2-r422266:1468616
fatal store error&amp;gt; org.apache.openjpa.persistence.RollbackException: The
transaction has been rolled back.  See
the nested exceptions for details on the errors that occurred. FailedObject:
org.apache.oozie.CoordinatorJobBean@5ee81cbc&lt;/P&gt;</description>
    <pubDate>Mon, 18 Jan 2016 20:38:04 GMT</pubDate>
    <dc:creator>sathish_mtech01</dc:creator>
    <dc:date>2016-01-18T20:38:04Z</dc:date>
    <item>
      <title>how to execute oozie shell action with script having curl command</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-execute-oozie-shell-action-with-script-having-curl/m-p/98189#M61329</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I need to create oozie workflow that exeuctes a shell script. The shell script has curl command which downloads a specific file from the download link. &lt;/P&gt;&lt;P&gt;As commands in shell scripts are only able to recognize hdfs directories, how could i execute the script.?&lt;/P&gt;&lt;P&gt;Lets say below is the Sample code:&lt;/P&gt;&lt;P&gt;curl -o ~/test.jar &lt;A href="http://central.maven.org/maven2/commons-lang/commons-lang/2.6/commons-lang-2.6.jar"&gt;http://central.maven.org/maven2/commons-lang/commons-lang/2.6/commons-lang-2.6.jar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;hdfs dfs -copyFromLocal ~/test.jar /user/sr/test2&lt;/P&gt;&lt;P&gt;How can i execute the script with above two commands using oozie.?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2015 08:44:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-execute-oozie-shell-action-with-script-having-curl/m-p/98189#M61329</guid>
      <dc:creator>srujanakuntumal</dc:creator>
      <dc:date>2015-12-09T08:44:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to execute oozie shell action with script having curl command</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-execute-oozie-shell-action-with-script-having-curl/m-p/98190#M61330</link>
      <description>&lt;P&gt;Hi Srujana,&lt;/P&gt;&lt;P&gt;I have attached sample shell action oozie coordinator code for your reference. &lt;/P&gt;&lt;P&gt;Below are the contents of attached tar file &lt;/P&gt;&lt;P&gt;1. coordinator.xml - contains your scheduling frequency &lt;/P&gt;&lt;P&gt;
2. workflow.xml - contains workflow actions &lt;/P&gt;&lt;P&gt;
3. myscript.sh - sample shell script ( here your hbase major compaction command will go ) &lt;/P&gt;&lt;P&gt;
4. job.properties - contains environmental details - you need to modify this file to add your cluster environment details &lt;/P&gt;&lt;P&gt;Once you are done with modifications, upload myscript.sh, workflow.xml &amp;amp; coordinator.xml to HDFS at ${oozie.coord.application.path} location. &lt;/P&gt;&lt;P&gt;Run below command to submit coordinator: &lt;/P&gt;&lt;P&gt;oozie job -oozie &lt;A href="http://&amp;lt;oozie-server-host"&gt;http://:11000/oozie&lt;/A&gt;&amp;gt;:11000/oozie -config /$path-to-job.properties/job.properties -run &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/665-sample-shell-oozie.tar.gz"&gt;sample-shell-oozie.tar.gz&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/665-sample-shell-oozie.tar.gz"&gt;&lt;/A&gt;Note - Add your above commands to myscript.sh&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2015 22:51:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-execute-oozie-shell-action-with-script-having-curl/m-p/98190#M61330</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2015-12-09T22:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to execute oozie shell action with script having curl command</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-execute-oozie-shell-action-with-script-having-curl/m-p/98191#M61331</link>
      <description>&lt;P&gt;@ Kulkarni while running your script I am getting the following error in horton works&lt;/P&gt;&lt;P&gt;sudo  oozie job -oozie &lt;A href="http://XXXXXXXXXXXXXXXXXXXXXX:11000/oozie" target="_blank"&gt;http://XXXXXXXXXXXXXXXXXXXXXX:11000/oozie&lt;/A&gt;
-config /home/ubuntu/testing/shell/job.properties –submit&lt;/P&gt;&lt;P&gt;While running I am
getting following error&lt;/P&gt;&lt;P&gt;Error: E0803 : E0803:
IO error, E0603: SQL error in operation, &amp;lt;openjpa-2.2.2-r422266:1468616
fatal store error&amp;gt; org.apache.openjpa.persistence.RollbackException: The
transaction has been rolled back.  See
the nested exceptions for details on the errors that occurred. FailedObject:
org.apache.oozie.CoordinatorJobBean@5ee81cbc&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2016 20:38:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-execute-oozie-shell-action-with-script-having-curl/m-p/98191#M61331</guid>
      <dc:creator>sathish_mtech01</dc:creator>
      <dc:date>2016-01-18T20:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to execute oozie shell action with script having curl command</title>
      <link>https://community.cloudera.com/t5/Support-Questions/how-to-execute-oozie-shell-action-with-script-having-curl/m-p/98192#M61332</link>
      <description>&lt;P&gt;I fixed it finally by &lt;/P&gt;&lt;P&gt;As oozie uses derby db - checking  the db
location to see if there are any lock files&lt;/P&gt;&lt;P&gt;cd /hadoop/oozie/data/oozie-db&lt;/P&gt;&lt;P&gt;ubuntu@ixxxxxxxxx:/hadoop/oozie/data/oozie-db$ ls &lt;/P&gt;&lt;P&gt;dbex.lck  db.lck  log  README_DO_NOT_TOUCH_FILES.txt  seg0  service.properties  tmp
&lt;/P&gt;&lt;P&gt;rm dbex.lck&lt;/P&gt;&lt;P&gt;rm db.lck&lt;/P&gt;&lt;P&gt;Then finally went to Ambari UI hortonworks restarted the oozie, works finally..&lt;/P&gt;&lt;P&gt;Futher information please relay on a single user to avoid problem in future purpose...&lt;/P&gt;</description>
      <pubDate>Mon, 18 Jan 2016 21:41:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/how-to-execute-oozie-shell-action-with-script-having-curl/m-p/98192#M61332</guid>
      <dc:creator>sathish_mtech01</dc:creator>
      <dc:date>2016-01-18T21:41:35Z</dc:date>
    </item>
  </channel>
</rss>

