Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 11-21-2017 03:19 PM
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
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
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
Thanks it worked
/Simon