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

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1340 views
  • 2 likes
  • 2 in conversation