Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Ingesting calculation views from Hana into Hive with Sqoop

avatar
New Member

I'm having issues ingesting calculation views from Hana into Hive.

The issue is with the --table parameter. The calculation view's table name is "/path/to/hana/calculation"

How can I pass this to Sqoop?

1 ACCEPTED SOLUTION

avatar
Rising Star

Try this:

sqoop import \ 
--username username \ 
--P \ 
--connect jdbc:sap://hostname:portnumber/ \ 
--driver com.sap.db.jdbc.Driver \ 
--query "select * from \"schema\".\"/path/to/hana/calculation\" where \$CONDITIONS" \ 
--hcatalog-database hivedatabase \ 
--hcatalog-table hivetable \ 
--create-hcatalog-table \ 
--hcatalog-storage-stanza "stored as orc"

View solution in original post

1 REPLY 1

avatar
Rising Star

Try this:

sqoop import \ 
--username username \ 
--P \ 
--connect jdbc:sap://hostname:portnumber/ \ 
--driver com.sap.db.jdbc.Driver \ 
--query "select * from \"schema\".\"/path/to/hana/calculation\" where \$CONDITIONS" \ 
--hcatalog-database hivedatabase \ 
--hcatalog-table hivetable \ 
--create-hcatalog-table \ 
--hcatalog-storage-stanza "stored as orc"