%MM_PublishPortfolioModelsHadoop

The %MM_PublishPortfolioModelsHadoop macro is used for publishing models from a portfolio to Hadoop.

Syntax

%MM_PublishPortfolioModelsHadoop (
hadoopServer=Hadoop-server,
hadoopUser=Hadoop-user,
hadoopPassword=Hadoop-password,
hadoopDir=model-directory-path,
modelDS=model-property-dataset-name,
outputDir=output-directory-path
);

Required Arguments

hadoopServer=Hadoop-server

Specifies the name of the Hadoop Distributed File System server.

hadoopUser=Hadoop-user

Specifies the user name for Hadoop.

hadoopPassword=Hadoop-password

Specifies the password for the Hadoop user.

hadoopDir=model-directory-path

Specifies the Hadoop directory path where to store the published model.

modelDS=SAS-dataset-name

Specifies the name of the model property SAS data set that is generated from the %MM_CreateModelDataset macro.

outputDir=output-directory-path

Specifies the directory path where to store the publish results.

Example: Publish Models to Hadoop

This example shows how to publish the champion models of a SAS Model Manager portfolio to Hadoop.
filename pubhd catalog 'SASHELP.modelmgr.MM_PublishPortfolioModelsHadoop.source';
%include pubhd ;
filename pubhd ;
 
%let hdServer=myHadoop.server.com;
%let hdPath=/tmp/mmng;
%let hdUser = %nrbquote(hadoop);
%let hdpassword=hadoop1;
%let HADOOP_Auth = ;
 
%MM_PublishPortfolioModelsHadoop(
    hadoopServer =&hdServer,
    hadoopUser =&hdUser,
    hadoopPassword=&hdPassword,
    hadoopDir =&hdpath,
    outputDir=%nrstr(C:\temp\FMScore),
    modelDS=_models
);
Last updated: February 14, 2017