Five Major Enhancements of SAS Embedded Process for Hadoop for SAS 9.4 M3

The SAS In-Database Embedded Process is the key technology which enables the SAS® Scoring Accelerator, SAS® Code Accelerator, and SAS® Data Quality Accelerator products to function. The EP is the computation engine we place near the data, which reduces unnecessary data movement and speeds up processing and efficiency. The EP also allows products such as the SAS® Data Loader for Hadoop to work remotely with data and it provides the ability to read and write multiple streams of data concurrently.

The EP’s capabilities as part of SAS In-Database technology can vary from one supported data provider to another – as documented here. For this post, we’ll look closely at the SAS Embedded Process for Hadoop.

Alongside the release of SAS 9.4 Maintenance 3 in the summer of 2015, the EP was upgraded with new capabilities as well. The EP now brings more computation to the data by introducing support for new data providers and more analytic capabilities, all of which is delivered through improved installation procedures and running with a new execution architecture. Let’s take a closer look.

What new things can the EP do?

Some significant enhancements were added to EP with SAS 9.4M3:

Code Accelerator supports:

a SET statement with embedded SQL

a SET statement that specifies multiple input tables

the MERGE statement

reading and writing of HDFS-SPD Engine file formats

Scoring Accelerator supports:

model scoring using analytic stores

the SAS_HADOOP_CONFIG_PATH environment variable for use with run and publish model macros (eliminates the need for a merged configuration file!)

These changes allow the EP to provide more functionality while also simplifying its operation. Nice!

Additional details on what’s new can be found in the SAS® 9.4 In-Database Products: User’s Guide, Sixth Edition document.

What new providers does the EP work with?

The previous version of the EP supported the following Hadoop data providers:

Cloudera

Hortonworks

And now the EP also supports the following Hadoop distributions:

MapR

IBM BigInsights

Pivotal HD

SAS tracks which Hadoop distributions are supported in various scenarios.

Because most other Hadoop distributions are built using the open-source Apache Hadoop codebase and/or support the common Hadoop APIs, then it’s possible our SAS technology will work with them, too. SAS therefore has a support statement about alternative Hadoop distributions which explains how we manage that support.

How do the new deployment methods work?

Installing the EP has been improved in a couple of ways.

The original command-line installation process has been simplified

Some tasks have been consolidated to eliminate a few steps

JAR files can be kept local to the EP's directory structure

SAS Deployment Manager can create a parcel or stack

Use Cloudera Manager to deploy the parcel to the cluster

Use Ambari to deploy the stack to Hortonworks

The command-line technique is the most flexible and can be used for all supported Hadoop distributions. The command-line technique must be used for MapR, IBM BigInsights, and Pivotal HD as well as older and alternative Hadoop distributions.

The parcel/stack technique, on the other hand, provides a familiar deployment option for folks already comfortable using those third-party tools.

Additional details on deployment options are described in the SAS(R) 9.4 In-Database Products: Administrator’s Guide, Sixth Edition document.

How does the EP run now?

If you’ve worked with the EP for Hadoop before, then you probably are familiar with its operation. In particular, the older version of the EP was deployed to each Data Node host of the Hadoop cluster and ran as an OS-level service. This means it was defined in the init.d system to automatically run as a service. A system administrator could use the service command to start, stop, and check the status of the EP processes individually on each host.

Here’s what the old EP status check looked like in a small, 3-node Hadoop cluster:

Note that the OS-level process id (pid) is listed along with the command executed on each host. Each of these processes are independently controlled outside of MapReduce. If any one of these processes is terminated without also disabling the associated MapReduce node, then any jobs which rely on the EP will fail.

With this new release of the EP, there is no longer any OS-level service component. The EP runs purely as MapReduce jobs on the Hadoop cluster, instantiating on demand, no longer as persistent services. It is still necessary for the EP to have its requisite JAR files deployed to each of the Data Node hosts, but there are no longer any long-running EP processes sitting idle when no real work is going on.

And here’s what the new EP status check looks like on the same small, 3-node Hadoop cluster:

Note that for the new EP, this status check simply confirms if the correct JARs are available on the remote hosts (and assumes the local host which is performing this check already has those same JARs). This new approach to EP execution is less likely to be impacted by the inadvertent termination of one or more OS-level services as represented in the old EP status check above.

See the SASEP-ADMIN.SH Script section of the SAS® 9.4 In-Database Products: Administrator’s Guide, Sixth Edition document for an explanation on managing the EP using the script parameters.

What backward compatibilities does the EP provide?

The EP for Hadoop released along with SAS 9.4 M3 is backward-compatible in a several ways. Without diving into all possible software versioning variations and assuming proper qualifications, the new EP can be deployed independently and will work with:

SAS 9.3 and later, including:

LASR and High-Performance Analytics software

SAS code written and tested before the 9.4 M3 release of SAS

MapReduce1 (as associated with older SAS-supported Hadoop distributions)

This means that, assuming all other deployed software is at minimum version levels, the EP for Hadoop software can be upgraded first and independently from everything else so your customer can have many of the advantages (but not all!) this new release offers without impacting any other aspects of the software deployment.

Of course, some of the advantages offered along with EP necessitate upgrading other components, too. A simple example is eliminating the merged configuration file and relying on the SAS_HADOOP_CONFIG_FILES directive instead. That’s really on the SAS environment side of things – and so SAS 9.4 must be upgraded to M3 to take advantage of that. The flip side is that if you also upgrade to SAS 9.4 M3, but do not change any saved program files which specify a merged configuration file, then they will continue to run okay assuming you’ve updated that merged configuration file with the information needed to contact the new EP (if anything changed).

See Backward Compatibility and the Upgrading from or Reinstalling a Previous Version sections of the SAS ® 9.4 In-Database Products: Administrator’s Guide, Sixth Edition document for more information.

Five Major Enhancements of SAS Embedded Process for Hadoop for SAS 9.4 M3 was published on SAS Users.