<?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: Oozie ssh action in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Oozie-ssh-action/m-p/310053#M224008</link>
    <description>&lt;P&gt;changing the code to for loop worked&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;for line in `hdfs dfs -cat /d/dl/rlsolutions/code/oozie-workflows/rl_solutions/hiveScripts/tables.txt` do tablename=`echo $line | cut -d'.' -f2` sqoop import --connect "jdbc:sqlserver://pppppp:1433;database=xxxxxxxx" --username yyyyyyyyy--password '$$$$$$$' --table $tablename --target-dir hdfs://nameservice1/d/dl/rlsolutions/raw/$tablename -m 1 --as-avrodatafile done&lt;/DIV&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 19 Jan 2021 21:53:36 GMT</pubDate>
    <dc:creator>saidvs</dc:creator>
    <dc:date>2021-01-19T21:53:36Z</dc:date>
    <item>
      <title>Oozie ssh action</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Oozie-ssh-action/m-p/309835#M223934</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am new to CDH and excuse if its a simple or an easy mistake.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have shell action in oozie which is failing to read a file.&lt;/P&gt;
&lt;P&gt;I have simple wrapper script, reading a file and passing the value in file to the next step, but its failing saying file or directory not exist. I could read/see the same file in server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Really appreicate your help on this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;below is my script&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;#!/bin/bash&lt;/DIV&gt;
&lt;DIV&gt;#to test a sample sqoop script&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;while read line;&lt;/DIV&gt;
&lt;DIV&gt;do tablename=`echo $line | cut -d'.' -f2` sqoop import --connect "jdbc:sqlserver://ppppppp:1433;database=yyyy" --username userid --password '******' --table $tablename --target-dir hdfs://nameservice1/d/dl/rlsolutions/raw/{$tablename} -m 1 --as-avrodatafile&lt;/DIV&gt;
&lt;DIV&gt;done &amp;lt; /d/dl/rlsolutions/code/oozie-workflows/rl_solutions/hiveScripts/tables.txt&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;error:&lt;/DIV&gt;
&lt;DIV&gt;./sample3.sh: line 10: /d/dl/rlsolutions/code/oozie-workflows/rl_solutions/hiveScripts/tables.txt: No such file or directory&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 14:40:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Oozie-ssh-action/m-p/309835#M223934</guid>
      <dc:creator>saidvs</dc:creator>
      <dc:date>2022-09-16T14:40:05Z</dc:date>
    </item>
    <item>
      <title>Re: Oozie ssh action</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Oozie-ssh-action/m-p/310053#M224008</link>
      <description>&lt;P&gt;changing the code to for loop worked&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;for line in `hdfs dfs -cat /d/dl/rlsolutions/code/oozie-workflows/rl_solutions/hiveScripts/tables.txt` do tablename=`echo $line | cut -d'.' -f2` sqoop import --connect "jdbc:sqlserver://pppppp:1433;database=xxxxxxxx" --username yyyyyyyyy--password '$$$$$$$' --table $tablename --target-dir hdfs://nameservice1/d/dl/rlsolutions/raw/$tablename -m 1 --as-avrodatafile done&lt;/DIV&gt;&lt;PRE&gt;&amp;nbsp;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jan 2021 21:53:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Oozie-ssh-action/m-p/310053#M224008</guid>
      <dc:creator>saidvs</dc:creator>
      <dc:date>2021-01-19T21:53:36Z</dc:date>
    </item>
  </channel>
</rss>

