use of org.smartdata.client.SmartDFSClient in project SSM by Intel-bigdata.
the class CommandExecutor method createAction.
private SmartAction createAction(String name) throws IOException {
SmartAction smartAction = actionRegistry.createAction(name);
smartAction.setContext(smartContext);
if (smartAction instanceof HdfsAction) {
((HdfsAction) smartAction).setDfsClient(new SmartDFSClient(ssm.getNamenodeURI(), smartContext.getConf(), getRpcServerAddress()));
}
smartAction.getActionStatus().setId(currentActionId);
currentActionId++;
return smartAction;
}
Aggregations