<?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 Bash script in HDFS isn't able to read file at same folder in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Bash-script-in-HDFS-isn-t-able-to-read-file-at-same-folder/m-p/85490#M45158</link>
    <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to run a bash script&amp;nbsp;located at a&amp;nbsp;HDFS folder via oozie workflow. This script has a lot o configurations to be done by the user, and they are passed to the script via a file the script has to read and is put at the same HDFS folder as the script. The script cannot read it, though, and I wonder if I should comply with some specific path configurations for this to work on HDFS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When this code here is reached:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;if  [ ! -e `pwd`/vars.sh  ] ; then
  echo "Unable to continue: file vars.sh doesn't exist!"
  exit 1
fi&lt;/PRE&gt;&lt;P&gt;the script exits. Is the "pwd" a problem? I know that it pressuposes that the oozie workflow would respect the path of execution of my script. Is this a mistake?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 14:05:54 GMT</pubDate>
    <dc:creator>raphaelt</dc:creator>
    <dc:date>2022-09-16T14:05:54Z</dc:date>
    <item>
      <title>Bash script in HDFS isn't able to read file at same folder</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Bash-script-in-HDFS-isn-t-able-to-read-file-at-same-folder/m-p/85490#M45158</link>
      <description>&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm trying to run a bash script&amp;nbsp;located at a&amp;nbsp;HDFS folder via oozie workflow. This script has a lot o configurations to be done by the user, and they are passed to the script via a file the script has to read and is put at the same HDFS folder as the script. The script cannot read it, though, and I wonder if I should comply with some specific path configurations for this to work on HDFS.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When this code here is reached:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;if  [ ! -e `pwd`/vars.sh  ] ; then
  echo "Unable to continue: file vars.sh doesn't exist!"
  exit 1
fi&lt;/PRE&gt;&lt;P&gt;the script exits. Is the "pwd" a problem? I know that it pressuposes that the oozie workflow would respect the path of execution of my script. Is this a mistake?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 14:05:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Bash-script-in-HDFS-isn-t-able-to-read-file-at-same-folder/m-p/85490#M45158</guid>
      <dc:creator>raphaelt</dc:creator>
      <dc:date>2022-09-16T14:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Bash script in HDFS isn't able to read file at same folder</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Bash-script-in-HDFS-isn-t-able-to-read-file-at-same-folder/m-p/85668#M45159</link>
      <description>There was a file missing in the workflow's file addition via hue. Solved adding the path to the specific file on HUE's oozie editor</description>
      <pubDate>Wed, 30 Jan 2019 15:19:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Bash-script-in-HDFS-isn-t-able-to-read-file-at-same-folder/m-p/85668#M45159</guid>
      <dc:creator>raphaelt</dc:creator>
      <dc:date>2019-01-30T15:19:08Z</dc:date>
    </item>
  </channel>
</rss>

