date


Setting date format parameter on a sqoop-import job


I am having trouble casting a date column to a string using sqoop-import from an oracle database to an HDFS parquet file. I am using the following:
sqoop-import -Doraoop.oracle.session.initialization.statements="alter session set nls_date_format='YYYYMMDD'"
My understanding is that this should execute the above statement before it begins transferring data. I have also tried
-Duser.nls_date_format="YYYYMMDD"
But this doesn't work either, the resulting parquet file still contains the original date format as listed in the table. If it matters, I am running these in a bash script and also casting the same date columns to string using --map-column-java "MY_DATE_COL_NAME=String"What am I doing wrong?
Thanks very much.

Related Links

Batch File timestamp for today and tomorrow
Failed to change character into date in SAS
Timestamp formatting
Highcharts multiple values for 1 date?
Calculate the the Date breakdown without Joda
how do i set time and date as variable in a batch file?
xsl date fromat transfomation
Conditionally formatting cells in Google Sheets (old) to change colour on/after a certain date
Convert date to Decimal Format in hive
Issue with dates in a range
Conditional formatting by month based on year
Decoding a Time and Date Format
Change date format in multiple text files in powershell
Robocopy files older than 1980
Preventing repetitive data in date fields ActionsScript2
Excel VBA XIRR retuning Error when non-US date format is used

Categories

HOME
sendgrid
image
asp.net-core
vbscript
react-router
filtering
spring-jdbc
leon
c#-2.0
ojdbc
indesign
uber-api
portia
paradox
virtualization
kibana-4
gz
opentracing
seaborn
shared-hosting
nas
java-3d
tapestry
zurb-foundation-6
wijmo
wpfdatagrid
user-interaction
instant-messaging
directx-10
winrt-xaml-toolkit
protovis
windows-dev-center
rotational-matrices
environment-modules
revolution-slider
dartium
gesture
occlusion
code-search-engine
node-gyp
estimote
cubic-spline
hibernate-tools
pnotify
yii2-extension
directory-structure
nbconvert
titanium-android
gnome-shell-extensions
specrun
google-cdn
heidisql
database-optimization
merge-conflict-resolution
connect-by
holder.js
prettytensor
ios4
reactive-banana
appfabric-cache
createprocessasuser
skos
notify
bigbluebutton
rake-task
codeigniter-url
java.util.concurrent
id3v2
uitouch
hyprlinkr
android-2.2-froyo
fmod
ms-project-server-2010
sabredav
clipper
browser-detection
quickdialog
coderush
google-email-migration
dbproviderfactories
punbb
eclipse-templates
pydot
genshi
hamachi
coda-slider
fixed-width
brewmp
swing-app-framework

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile