Hadoop : Reading ORC files and putting into RDBMS?

2019-04-11 23:43发布

I have a hive table which is stored in ORC files format. I want to export the data to a Teradata database. I researched sqoop but could not find a way to export ORC files. Is there a way to make sqoop work for ORC ? or is there any other tool that I could use to export the data ?

Thanks.

1条回答
倾城 Initia
2楼-- · 2019-04-12 00:31

You can use Hcatalog

sqoop export --connect "jdbc:sqlserver://xxxx:1433;databaseName=xxx;USERNAME=xxx;PASSWORD=xxx" --table rdmsTableName --hcatalog-database hiveDB --hcatalog-table hiveTableName

查看更多
登录 后发表回答