amazonka-emr-1.4.5: Amazon Elastic MapReduce SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.EMR.AddJobFlowSteps

Contents

Description

AddJobFlowSteps adds new steps to a running job flow. A maximum of 256 steps are allowed in each job flow.

If your job flow is long-running (such as a Hive data warehouse) or complex, you may require more than 256 steps to process your data. You can bypass the 256-step limitation in various ways, including using the SSH shell to connect to the master node and submitting queries directly to the software running on the master node, such as Hive and Hadoop. For more information on how to do this, see Add More than 256 Steps to a Job Flow in the Amazon EMR Developer's Guide .

A step specifies the location of a JAR file stored either on the master node of the job flow or in Amazon S3. Each step is performed by the main function of the main class of the JAR file. The main class can be specified either in the manifest of the JAR or by using the MainFunction parameter of the step.

Amazon EMR executes each step in the order listed. For a step to be considered complete, the main function must exit with a zero exit code and all Hadoop jobs started while the step was running must have completed and run successfully.

You can only add steps to a job flow that is in one of the following states: STARTING, BOOTSTRAPPING, RUNNING, or WAITING.

Synopsis

Creating a Request

addJobFlowSteps Source #

Creates a value of AddJobFlowSteps with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • ajfsJobFlowId - A string that uniquely identifies the job flow. This identifier is returned by RunJobFlow and can also be obtained from ListClusters .
  • ajfsSteps - A list of StepConfig to be executed by the job flow.

data AddJobFlowSteps Source #

The input argument to the AddJobFlowSteps operation.

See: addJobFlowSteps smart constructor.

Instances

Eq AddJobFlowSteps Source # 
Data AddJobFlowSteps Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AddJobFlowSteps -> c AddJobFlowSteps #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AddJobFlowSteps #

toConstr :: AddJobFlowSteps -> Constr #

dataTypeOf :: AddJobFlowSteps -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c AddJobFlowSteps) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AddJobFlowSteps) #

gmapT :: (forall b. Data b => b -> b) -> AddJobFlowSteps -> AddJobFlowSteps #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AddJobFlowSteps -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AddJobFlowSteps -> r #

gmapQ :: (forall d. Data d => d -> u) -> AddJobFlowSteps -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> AddJobFlowSteps -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> AddJobFlowSteps -> m AddJobFlowSteps #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AddJobFlowSteps -> m AddJobFlowSteps #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AddJobFlowSteps -> m AddJobFlowSteps #

Read AddJobFlowSteps Source # 
Show AddJobFlowSteps Source # 
Generic AddJobFlowSteps Source # 
Hashable AddJobFlowSteps Source # 
ToJSON AddJobFlowSteps Source # 
NFData AddJobFlowSteps Source # 

Methods

rnf :: AddJobFlowSteps -> () #

AWSRequest AddJobFlowSteps Source # 
ToPath AddJobFlowSteps Source # 
ToHeaders AddJobFlowSteps Source # 
ToQuery AddJobFlowSteps Source # 
type Rep AddJobFlowSteps Source # 
type Rep AddJobFlowSteps = D1 (MetaData "AddJobFlowSteps" "Network.AWS.EMR.AddJobFlowSteps" "amazonka-emr-1.4.5-2XQZ9dXfwaxDxdqyS6qAjg" False) (C1 (MetaCons "AddJobFlowSteps'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ajfsJobFlowId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_ajfsSteps") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [StepConfig]))))
type Rs AddJobFlowSteps Source # 

Request Lenses

ajfsJobFlowId :: Lens' AddJobFlowSteps Text Source #

A string that uniquely identifies the job flow. This identifier is returned by RunJobFlow and can also be obtained from ListClusters .

ajfsSteps :: Lens' AddJobFlowSteps [StepConfig] Source #

A list of StepConfig to be executed by the job flow.

Destructuring the Response

addJobFlowStepsResponse Source #

Creates a value of AddJobFlowStepsResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data AddJobFlowStepsResponse Source #

The output for the AddJobFlowSteps operation.

See: addJobFlowStepsResponse smart constructor.

Instances

Eq AddJobFlowStepsResponse Source # 
Data AddJobFlowStepsResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AddJobFlowStepsResponse -> c AddJobFlowStepsResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AddJobFlowStepsResponse #

toConstr :: AddJobFlowStepsResponse -> Constr #

dataTypeOf :: AddJobFlowStepsResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c AddJobFlowStepsResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AddJobFlowStepsResponse) #

gmapT :: (forall b. Data b => b -> b) -> AddJobFlowStepsResponse -> AddJobFlowStepsResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AddJobFlowStepsResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AddJobFlowStepsResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> AddJobFlowStepsResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> AddJobFlowStepsResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> AddJobFlowStepsResponse -> m AddJobFlowStepsResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AddJobFlowStepsResponse -> m AddJobFlowStepsResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AddJobFlowStepsResponse -> m AddJobFlowStepsResponse #

Read AddJobFlowStepsResponse Source # 
Show AddJobFlowStepsResponse Source # 
Generic AddJobFlowStepsResponse Source # 
NFData AddJobFlowStepsResponse Source # 

Methods

rnf :: AddJobFlowStepsResponse -> () #

type Rep AddJobFlowStepsResponse Source # 
type Rep AddJobFlowStepsResponse = D1 (MetaData "AddJobFlowStepsResponse" "Network.AWS.EMR.AddJobFlowSteps" "amazonka-emr-1.4.5-2XQZ9dXfwaxDxdqyS6qAjg" False) (C1 (MetaCons "AddJobFlowStepsResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ajfsrsStepIds") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_ajfsrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

ajfsrsStepIds :: Lens' AddJobFlowStepsResponse [Text] Source #

The identifiers of the list of steps added to the job flow.