To enable users to publish
scoring model files to a Hadoop Distributed File System (HDFS) from
SAS Model Manager using the SAS Embedded Process:
-
-
Create an HDFS directory
where the model files can be stored.
Note: The path to this directory
is used when a user publishes a model from the SAS Model Manager user
interface to Hadoop.
-
Grant users Write access
permission to the HDFS directory.
-
Add these lines of code
to the autoexec_usermods.sas file that is located in the Windows directory
\SAS-configuration-directory\Lev#\SASApp\WorkspaceServer\
:
%let HADOOP_Config = %str(merged-configuration-filepath);
%let HADOOP_Auth = Kerberos or blank;
UNIX Specifics: The
location of the autoexec_usermods.sas file for UNIX is /SAS-confirguration-directory/Lev#/SASApp/WorkspaceServer/
.
HADOOP_Config is used
to replace the use of a merged configuration file. The configuration
files are copied to a location on the client machine and the HADOOP_Config
variable is set to that location. If your Hadoop server is configured
with Kerberos, set the HADOOP_Auth variable to Kerberos. Otherwise,
leave it blank.
For more information about
the merged configuration file, see
How to Merge Configuration File Properties.
-
(Optional) If you want
users to be able to copy the publish code and execute it using Base
SAS, then this line of code must be added to the sasv9.cfg file that
is located in the Windows directory
\SASHome\SASFoundation\9.4\
:
-AUTOEXEC ‘\SAS-confirguration-directory\Lev#\SASApp\WorkspaceServer\
autoexec_usermods.sas'
UNIX Specifics: The
location of the sasv9.cfg file for UNIX is /SASHome/SASFoundation/9.4/
.