- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
spcify location in create-hcatalog-table doing sqoop import
- Labels:
-
Apache Sqoop
Created ‎11-21-2017 03:19 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Im doing sqoop import of msybase database tables into orc hive tables, can i specify the location my orc file is created in this cmd
i have tried --hcatalog-home /bla/bla and --location /bla/bla it wont work
#!/bin/bash sqoop import "-Dorg.apache.sqoop.splitter.allow_text_splitter=true" \ --driver net.sourceforge.jtds.jdbc.Driver \ --connect jdbc:jtds:sybase://10.9.179.5:4000/db1 \ --username foo \ --P \ --query "select * from table1 where CAST(csrp_koersel_dto as DATE)>'2017-11-18' AND \$CONDITIONS" \ --split-by cpr_nr --hcatalog-database default --hcatalog-table sqoop_hccatalog_example_new1 --create-hcatalog-table --hcatalog-storage-stanza "stored as orcfile"
Created ‎11-21-2017 03:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you try appending location as well in --hcatalog-storage-stanza
--hcatalog-storage-stanza "stored as orcfile LOCATION /bla/bla"
Thanks,
Aditya
Created ‎11-21-2017 03:31 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can you try appending location as well in --hcatalog-storage-stanza
--hcatalog-storage-stanza "stored as orcfile LOCATION /bla/bla"
Thanks,
Aditya
Created ‎11-22-2017 10:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks it worked
/Simon
