BookmarkSubscribeRSS Feed
Ashib91
Calcite | Level 5

Hi All,

 

Has anyone tried reading / importing hive tables in SAS ? The idea is to keep the schema of the tables intact while using them in SAS.

Can anyone help me on this ?

 

Regards,

Ashib

5 REPLIES 5
ChrisNZ
Tourmaline | Level 20

Do you have sas/access to Hadoop?

Ashib91
Calcite | Level 5

Hi Chris,

 

Thanks for your reply, is it possible to achieve this without SAS/Access ? If we try to read the hive tables by making a connection between SAS and hadoop using proc SQL, will the schema of tables remain intact ?

 

Meanwhile I will check about the SAS / Access option.

 

Regards,

Ashib

ChrisNZ
Tourmaline | Level 20

1. You could use ODBC.

 

2. I am unsure I understand your concern.

- You won't change anything in Hadoop by just by reading data

- SAS will see the structure that Hadoop presents.

 

Ashib91
Calcite | Level 5

I will try to make it more clear, suppose there is a hive table with datatypes such as bigint etc. and if I make a connection between SAS and hadoop and read this table, will I be able to read the table correctly ?

 

Regards,

Ashib

ChrisNZ
Tourmaline | Level 20
It will be a number to SAS and be read accurately if it is smaller than 2^53 (on a PC or Unix machine).

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 5 replies
  • 908 views
  • 0 likes
  • 2 in conversation