Options
- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Solved
Go to solution
Sqoop import using last-value from a hdfs file
Labels:
- Labels:
-
Apache Sqoop
New Contributor
Created on ‎09-05-2018 05:03 AM - edited ‎09-16-2022 06:40 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I was trying to sqoop data using --last-value property whose value will be read from a hdfs file.
the hdfs file has following content-
'1900-01-01 00:00:00.000'
mylastValue=`hadoop fs -cat propertiesFile.txt`
when I use --last-value ${mylastValue}
The sqoop argument splits at the space in the lastValue passed and I get Error parsing arguments.
the hdfs file has following content-
'1900-01-01 00:00:00.000'
mylastValue=`hadoop fs -cat propertiesFile.txt`
when I use --last-value ${mylastValue}
The sqoop argument splits at the space in the lastValue passed and I get Error parsing arguments.
1 ACCEPTED SOLUTION
Mentor
Created ‎09-05-2018 05:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is a shell behaviour, not Sqoop.
"When referencing a variable, it is generally advisable to enclose its name
in double quotes."
"Use double quotes to prevent word splitting. An argument enclosed in
double quotes presents itself as a single word, even if it contains
whitespace separators."
- http://tldp.org/LDP/abs/html/quotingvar.html
"When referencing a variable, it is generally advisable to enclose its name
in double quotes."
"Use double quotes to prevent word splitting. An argument enclosed in
double quotes presents itself as a single word, even if it contains
whitespace separators."
- http://tldp.org/LDP/abs/html/quotingvar.html
1 REPLY 1
Mentor
Created ‎09-05-2018 05:14 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This is a shell behaviour, not Sqoop.
"When referencing a variable, it is generally advisable to enclose its name
in double quotes."
"Use double quotes to prevent word splitting. An argument enclosed in
double quotes presents itself as a single word, even if it contains
whitespace separators."
- http://tldp.org/LDP/abs/html/quotingvar.html
"When referencing a variable, it is generally advisable to enclose its name
in double quotes."
"Use double quotes to prevent word splitting. An argument enclosed in
double quotes presents itself as a single word, even if it contains
whitespace separators."
- http://tldp.org/LDP/abs/html/quotingvar.html
