Note that there are some explanatory texts on larger screens.

plurals
  1. POhadoop sqoop error while importing data using options file
    primarykey
    data
    text
    <p>i am new to hadoop and while practicing sqoop i have got this error message , the command i have used is i created an <code>import.txt</code> file and in that i used <code>import --connect jdbc:mysql://localhost/hadoopdb --username hadoop -P</code> and placed this file on HDFS.</p> <p>while importing i have given this file to the sqoop tool using the <code>--options-file</code> command. so the final command i have given at the command promt is as follows,</p> <pre><code>sqoop --options-file /user/cloudera/import.txt --table employee </code></pre> <p>after hiting the enter key i have got the following error message</p> <pre><code> sqoop --options-file /user/cloudera/import.txt --table employee 13/10/16 13:43:12 ERROR sqoop.Sqoop: Error while expanding arguments java.lang.Exception: Unable to read options file: /user/cloudera/import.txt at org.apache.sqoop.util.OptionsFileUtil.expandArguments(OptionsFileUtil.java:102) at com.cloudera.sqoop.util.OptionsFileUtil.expandArguments(OptionsFileUtil.java:33) at org.apache.sqoop.Sqoop.runTool(Sqoop.java:201) at org.apache.sqoop.Sqoop.runTool(Sqoop.java:229) at org.apache.sqoop.Sqoop.main(Sqoop.java:238) Caused by: java.io.FileNotFoundException: /user/cloudera/import.txt (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.&lt;init&gt;(FileInputStream.java:120) at java.io.FileReader.&lt;init&gt;(FileReader.java:55) at org.apache.sqoop.util.OptionsFileUtil.expandArguments(OptionsFileUtil.java:70) ... 4 more Unable to read options file: /user/cloudera/import.txt </code></pre> <p>can anyone tell me why the error is coming.</p> <p>Thanks in advance.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload