Ingest Excel file Directly to Hive Table

Highlighted
Five Stars

Ingest Excel file Directly to Hive Table

Hi, I'm fairly new to Talend and I got a task to ingest Excel file directly to Hive table (Hortonworks). I tried with several component like tHiveRow (I don't know the query which will pass my input to the output), tDBOutPut via JDBC (Usually end up with noclassdeffounderror error. I believe it has somethings to do with driver or hive configuration), etc and they didn't work. The only solution I can think is to convert excel file to csv then ingest to Hive. So, my question is, is it possible to ingests Excel file directly to Hive Table without convert the source file? Also, could you guide me which approach should I use for this task?

 

Thank you

 


Accepted Solutions
Forteen Stars

Re: Ingest Excel file Directly to Hive Table

@splinter406 ,You can use tHiveLoad and check the below link,which has example.

https://help.talend.com/reader/hm5FaPiiOP31nUYHph0JwQ/J3o93uD7MPkWXfbRoo1AmA

Manohar B
Don't forget to give kudos/accept the solution when a replay is helpful.

View solution in original post


All Replies
Forteen Stars

Re: Ingest Excel file Directly to Hive Table

@splinter406 ,You can use tHiveLoad and check the below link,which has example.

https://help.talend.com/reader/hm5FaPiiOP31nUYHph0JwQ/J3o93uD7MPkWXfbRoo1AmA

Manohar B
Don't forget to give kudos/accept the solution when a replay is helpful.

View solution in original post

Five Stars

Re: Ingest Excel file Directly to Hive Table

I did try and it actually work..,well for the most part. The result with xls ingestion is not what I expected...here is the result: 

2019-09-20 15_16_21-WIN10STD - Desktop Viewer.png

 

However, I tried with .csv file and it worked like a charm!2019-09-20 15_20_32-WIN10STD - Desktop Viewer.png

I suspect that root cause must be how I create the table:

2019-09-20 15_24_33-WIN10STD - Desktop Viewer.png

 

Did I miss something?

 

Forteen Stars

Re: Ingest Excel file Directly to Hive Table

@splinter406 ,Yes exactly.

Manohar B
Don't forget to give kudos/accept the solution when a replay is helpful.
Five Stars

Re: Ingest Excel file Directly to Hive Table

Could you guide me how to create hive table to use with excel? or is it impossible to do so?

 

Thank you

Five Stars

Re: Ingest Excel file Directly to Hive Table

Never mind, after I did some research, I came to the conclusion that it is not possible to ingest excel file directly to hive. I have to convert the file to text file before ingestion. Anyway thanks for your help!

2019 GARTNER MAGIC QUADRANT FOR DATA INTEGRATION TOOL

Talend named a Leader.

Get your copy

OPEN STUDIO FOR DATA INTEGRATION

Kickstart your first data integration and ETL projects.

Download now

Put Massive Amounts of Data to Work

Learn how to make your data more available, reduce costs and cut your build time

Watch Now

How OTTO Utilizes Big Data to Deliver Personalized Experiences

Read about OTTO's experiences with Big Data and Personalized Experiences

Blog

Talend Integration with Databricks

Take a look at this video about Talend Integration with Databricks

Watch Now