Search in sources :

Example 1 with SmartDFSClient

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;
}
Also used : HdfsAction(org.smartdata.actions.hdfs.HdfsAction) SmartAction(org.smartdata.actions.SmartAction) SmartDFSClient(org.smartdata.client.SmartDFSClient)

Aggregations

SmartAction (org.smartdata.actions.SmartAction)1 HdfsAction (org.smartdata.actions.hdfs.HdfsAction)1 SmartDFSClient (org.smartdata.client.SmartDFSClient)1