BookmarkSubscribeRSS Feed
Deron
Calcite | Level 5

I'm currently using the Cloudera ODBC driver for Impala to bulkload datasets to Hadoop.  Part of the underlying workflow is the dataset is written to a temporary file in text format and then transferred to HDFS.  Is there a setting to have that text file compressed in order to speed up this transfer (that is, compressed on the client, uploaded, and then uncompressed on the host HDFS system)?  The dataset is written to a text file and then transferred to a directory in HDFS (/tmp); having this text file compressed before the transfer would greatly speed up the process.

 

The client is a SAS 9.4 (M4) workstation with ACCESS to Impala (V9.43), on a Windows 7 machine.  The host HDFS is a Kerberized environment running Cloudera distro of Hadoop.  Connection is via ssh tunnel to the host.

 

Below is an example of the SAS syntax for creating the table using the bulkload option.

 

/* Connect to cluster using Impala ODBC driver */
libname hdp impala dsn='DPL Impala 64bit' schema= test ; 

/* Create the table using bulkload*/
data hdp.my_table (bulkload=yes dbcreate_table_opts='stored as parquet') ;
    set work.my_table ;
run;

 

3 REPLIES 3
ChrisNZ
Tourmaline | Level 20

There is no such setting as far as I know.

Maybe the network can layer compress packets? 

Hive shoudl be faster to send to HDFS. 

 

Deron
Calcite | Level 5

Thanks for posting and the idea. I will pursue that if I get time, but I guess for now I will have to manually load large datasets instead of using the SAS-Impala "bulkload" option.  So, I'm pretty much back where I started after spending many hours getting SAS-Hadoop connectivity figured out via the ssh tunnel.

ChrisNZ
Tourmaline | Level 20
Impala for reading. Hive for writing seems to be the rule of thumb

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
  • 3 replies
  • 757 views
  • 2 likes
  • 2 in conversation