<?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 Executing Shell script in HDFS in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Executing-Shell-script-in-HDFS/m-p/168236#M29726</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a shell script in HDFS echo.sh, which contains&lt;/P&gt;&lt;P&gt;echo Hello&lt;/P&gt;&lt;P&gt;I want to execute the shell script from Unix shell as below.&lt;/P&gt;&lt;P&gt;sh &amp;lt;HDFS_SCRIPT_PATH&amp;gt;/echo.sh fails saying no such file.&lt;/P&gt;&lt;P&gt;Kindly let me know how can i do it.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mamta Chawla&lt;/P&gt;</description>
    <pubDate>Thu, 26 May 2016 02:19:02 GMT</pubDate>
    <dc:creator>colorsoflife</dc:creator>
    <dc:date>2016-05-26T02:19:02Z</dc:date>
    <item>
      <title>Executing Shell script in HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Executing-Shell-script-in-HDFS/m-p/168236#M29726</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a shell script in HDFS echo.sh, which contains&lt;/P&gt;&lt;P&gt;echo Hello&lt;/P&gt;&lt;P&gt;I want to execute the shell script from Unix shell as below.&lt;/P&gt;&lt;P&gt;sh &amp;lt;HDFS_SCRIPT_PATH&amp;gt;/echo.sh fails saying no such file.&lt;/P&gt;&lt;P&gt;Kindly let me know how can i do it.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mamta Chawla&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2016 02:19:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Executing-Shell-script-in-HDFS/m-p/168236#M29726</guid>
      <dc:creator>colorsoflife</dc:creator>
      <dc:date>2016-05-26T02:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Executing Shell script in HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Executing-Shell-script-in-HDFS/m-p/168237#M29727</link>
      <description>&lt;P&gt;are you using variables in the absolute path ?&lt;/P&gt;&lt;P&gt;you can test out the location of the file first. I am assuming &amp;lt;HDFS_SCRIPT_PATH&amp;gt; must be a path which is available on the system, something like &lt;STRONG&gt;/home/hdfs/&lt;/STRONG&gt;echo.sh. If you want to ensure that it exists, you can try listing it, like "ls &lt;STRONG&gt;/home/hdfs/&lt;/STRONG&gt;echo.sh". If it says that there is no such file or directory, you need to have the correct path and locate the actual location of this file. &lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2016 02:22:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Executing-Shell-script-in-HDFS/m-p/168237#M29727</guid>
      <dc:creator>srai1</dc:creator>
      <dc:date>2016-05-26T02:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: Executing Shell script in HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Executing-Shell-script-in-HDFS/m-p/168238#M29728</link>
      <description>&lt;P&gt;yes, we can't submit/run shell scripts directly from local.&lt;/P&gt;&lt;P&gt;we need tp set up NFS mount and give a try.&lt;/P&gt;&lt;P&gt;link for setting up NFS mount &lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.4/bk_hdfs_nfs_gateway/content/user-guide-hdfs-nfs-instructions.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.4/bk_hdfs_nfs_gateway/content/user-guide-hdfs-nfs-instructions.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2016 02:24:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Executing-Shell-script-in-HDFS/m-p/168238#M29728</guid>
      <dc:creator>divakarreddy_a</dc:creator>
      <dc:date>2016-05-26T02:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Executing Shell script in HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Executing-Shell-script-in-HDFS/m-p/168239#M29729</link>
      <description>&lt;P&gt;Ah, completely missed out the first line, indeed, we cannot execute a file thats inside HDFS. &lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2016 02:34:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Executing-Shell-script-in-HDFS/m-p/168239#M29729</guid>
      <dc:creator>srai1</dc:creator>
      <dc:date>2016-05-26T02:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Executing Shell script in HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Executing-Shell-script-in-HDFS/m-p/168240#M29730</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/1473/colorsoflife.html" nodeid="1473"&gt;@Mamta Chawla&lt;/A&gt;&lt;P&gt;There are 3 ways.&lt;/P&gt;&lt;P&gt;1. hadoop fs -cat /tmp/test.sh|exec sh &lt;/P&gt;&lt;P&gt;2. You can install HDP NFS and mount the hdfs directory on local file system from where you can execute your script.&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.4/bk_hdfs_nfs_gateway/content/user-guide-hdfs-nfs-instructions.html"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.4/bk_hdfs_nfs_gateway/content/user-guide-hdfs-nfs-instructions.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;3. You can write an oozie shell workflow and call your .sh HDFS file inside the workflow.&lt;/P&gt;&lt;P&gt;&lt;A href="http://rogerhosto.com/apache-oozie-shell-script-example/" target="_blank"&gt;http://rogerhosto.com/apache-oozie-shell-script-example/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2016 02:35:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Executing-Shell-script-in-HDFS/m-p/168240#M29730</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-05-26T02:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Executing Shell script in HDFS</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Executing-Shell-script-in-HDFS/m-p/168241#M29731</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/1473/colorsoflife.html" nodeid="1473"&gt;@Mamta Chawla&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Please feel free to accept an answer which helped you, so that this thread can be closed. Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2016 22:45:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Executing-Shell-script-in-HDFS/m-p/168241#M29731</guid>
      <dc:creator>jyadav</dc:creator>
      <dc:date>2016-05-26T22:45:45Z</dc:date>
    </item>
  </channel>
</rss>

